:root {
    --neon-cyan: #00ffaa;
    --neon-blue: #00aaff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --text-glow: 0 0 10px rgba(0, 255, 170, 0.5);
    --occupied-color: #ff0055;
    --available-color: #00ffaa;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0a1020 0%, #001f3f 50%, #004040 100%);
    background-attachment: fixed;
    color: white;
    overflow: hidden;
    /* Prevent body scroll, handle in main-scroll-view */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- SCROLL CONTAINER --- */
.main-scroll-view {
    flex: 1;
    overflow-y: auto;
    padding: 80px 20px 100px 20px;
    /* Space for Header/Footer */
    -webkit-overflow-scrolling: touch;
}

/* --- HEADER --- */
.aero-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.brand {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}

.rate-badge {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

/* --- GRID --- */
.pc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- GLASS CARD --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--neon-cyan);
}

.glass-card.occupied {
    border-color: rgba(255, 0, 85, 0.3);
}

.glass-card.occupied .pc-icon {
    color: var(--occupied-color);
    text-shadow: 0 0 15px var(--occupied-color);
}

.pc-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
    transition: color 0.3s;
}

.pc-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.pc-status {
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: bold;
}

/* --- FOOTER --- */
.aero-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    z-index: 100;
}

.nav-btn {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-cyan));
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    color: #000;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.4);
    transition: transform 0.2s;
}

.nav-btn:hover {
    transform: scale(1.05);
}

/* --- LOADER --- */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 170, 0.3);
    border-top: 3px solid var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-family: monospace;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    animation: blink 2s infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* --- MODAL --- */
.glass-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 200;
    /* Above header */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.glass-modal input,
.glass-modal textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    box-sizing: border-box;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 400px;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}