* {
    font-family: 'Inter', sans-serif;
}
.mono {
    font-family: 'Roboto Mono', monospace;
}
body {
    background-color: #000000;
    color: #e6edf3;
    position: relative;
    overflow-x: hidden;
}

/* Background image container - replaces video for non-dashboard pages */
#background-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    filter: brightness(1.2) contrast(1.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.08) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanline 10s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
@keyframes scanline {
    0% { transform: translateY(0) translateZ(0); }
    100% { transform: translateY(10px) translateZ(0); }
}
.nav-container {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}
.nav-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}
.nav-link {
    color: #8b949e;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.3s;
}
.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.nav-link:hover::after {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
}
.nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
.nav-link.active::after {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
}

/* Dashboard Button Style - Adapted from React styled-components */
.button-borders {
    position: relative;
    width: fit-content;
    height: fit-content;
    display: inline-block;
}

.button-borders.w-full {
    width: 100%;
    display: block;
}

.button-borders::before {
    content: "";
    position: absolute;
    width: calc(100% + 0.5em);
    height: 50%;
    left: -0.3em;
    top: -0.3em;
    border: 1px solid rgba(0, 0, 0, 0.8);
    border-bottom: 0px;
    z-index: 0;
}

.button-borders::after {
    content: "";
    position: absolute;
    width: calc(100% + 0.5em);
    height: 50%;
    left: -0.3em;
    bottom: -0.3em;
    border: 1px solid rgba(0, 0, 0, 0.8);
    border-top: 0px;
    z-index: 0;
}

/* Auth Button - Dashboard style */
.auth-btn {
    font-family: 'Roboto Mono', monospace;
    color: white;
    cursor: pointer;
    font-size: 0.813rem;
    font-weight: bold;
    letter-spacing: 0.05rem;
    border: 1px solid rgba(0, 0, 0, 0.8);
    padding: 0.8rem 2.1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 531.28 200'%3E%3Cdefs%3E%3Cstyle%3E .shape %7B fill: %234F7CF7 %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_2' data-name='Layer 2'%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cpolygon class='shape' points='415.81 200 0 200 115.47 0 531.28 0 415.81 200' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
    background-color: rgba(0, 0, 0, 0.8);
    background-size: 200%;
    background-position: 200%;
    background-repeat: no-repeat;
    transition: 0.3s ease-in-out;
    transition-property: background-position, border, color;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    box-sizing: border-box;
}

.auth-btn.w-full {
    width: 100%;
}

.auth-btn:hover {
    border: 1px solid rgba(79, 124, 247, 1);
    color: white;
    background-position: 40%;
}

.auth-btn:before {
    content: "";
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    width: 0.2rem;
    height: 0.2rem;
    top: -1px;
    left: -1px;
    transition: background-color 0.15s ease-in-out;
    z-index: 3;
}

.auth-btn:hover:before {
    background-color: white;
}

.auth-btn:active {
    background-color: rgba(79, 124, 247, 0.9);
    background-position: 0%;
    border-color: rgba(79, 124, 247, 1);
    transform: scale(0.98);
    color: white;
}

.auth-btn:active:before {
    background-color: rgba(79, 124, 247, 1);
}

.auth-btn span {
    position: relative;
    z-index: 2;
}

@keyframes chitchat {
    0% {
        content: "#";
    }
    5% {
        content: ".";
    }
    10% {
        content: "^{";
    }
    15% {
        content: "-!";
    }
    20% {
        content: "#$_";
    }
    25% {
        content: "№:0";
    }
    30% {
        content: "#{+.";
    }
    35% {
        content: "@}-?";
    }
    40% {
        content: "?{4@%";
    }
    45% {
        content: "=.,^!";
    }
    50% {
        content: "?2@%";
    }
    55% {
        content: "\\;1}]";
    }
    60% {
        content: "?{%:%";
        right: 0;
    }
    65% {
        content: "|{f[4";
        right: 0;
    }
    70% {
        content: "{4%0%";
        right: 0;
    }
    75% {
        content: "'1_0<";
        right: 0;
    }
    80% {
        content: "{0%";
        right: 0;
    }
    85% {
        content: "]>'";
        right: 0;
    }
    90% {
        content: "4";
        right: 0;
    }
    95% {
        content: "2";
        right: 0;
    }
    100% {
        content: "";
        right: 0;
    }
}

.hero-section {
    background: radial-gradient(ellipse at center, rgba(79, 124, 247, 0.05) 0%, transparent 70%);
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0px, transparent 1px, transparent 100px, rgba(255, 255, 255, 0.01) 101px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0px, transparent 1px, transparent 100px, rgba(255, 255, 255, 0.01) 101px);
    pointer-events: none;
}
.mission-section {
    position: relative;
}
.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}
.units-section {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.01), transparent);
}
.status-bar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(79, 124, 247, 0.2);
    position: relative;
}
.status-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}
.accent-blue {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.accent-red {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.accent-green {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.glitch-text {
    position: relative;
    animation: glitch 4s infinite;
}
@keyframes glitch {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-1px); }
    40% { transform: translateX(1px); }
    60% { transform: translateX(-0.5px); }
    80% { transform: translateX(0.5px); }
}
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse-dot 2s ease-in-out infinite;
}
.status-indicator.green {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.status-indicator.red {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.status-indicator.blue {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}
.fade-in {
    animation: fadeIn 0.8s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.tab-button {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #8b949e;
    padding: 1rem 1.5rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tab-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.tab-button.active {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 0;
    }
    .nav-container .flex {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-container .flex.space-x-8 {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .nav-link {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
    .hamburger-menu {
        display: flex !important;
    }
    .status-sidebar {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        transform: none !important;
        width: 280px !important;
        height: 100vh !important;
        margin-bottom: 0 !important;
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border-right: 2px solid rgba(255, 255, 255, 0.2) !important;
        padding: 4rem 1.5rem 2rem !important;
        overflow-y: auto !important;
        z-index: 150 !important;
        transition: left 0.3s ease !important;
    }
    .status-sidebar.active {
        left: 0 !important;
    }
    .main-content-wrapper {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}
@media (max-width: 640px) {
    .status-sidebar {
        grid-template-columns: 1fr;
    }
    .status-sidebar-card {
        margin-bottom: 0.75rem;
    }
}
