/* ORC87 Firewall - NEO CYBER DARK THEME v3.3 (MENU FIX) */

:root {
    --bg-main: #020617;
    --bg-card: #020817;
    --bg-elevated: #050816;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.2);
    --accent-strong: #22c55e;
    --danger: #ef4444;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.2);
    --radius-lg: 18px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    --bg-input: rgba(2, 6, 23, 0.9);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(120% 160% at 10% 0%, #0f172a 0, #020617 45%, #000 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* --- TOP BAR & NAVIGATION --- */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(90deg, rgba(15,23,42,0.98), rgba(15,23,42,0.92), rgba(8,47,73,0.9));
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(148,163,184,0.25);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0%, #22c55e, #0ea5e9 70%, #22d3ee 100%);
    color: #0b1120;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #e5e7eb;
    opacity: 0.9;
}

/* MENIU PE DESKTOP (Flex) */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.86rem;
}

.main-nav a, .main-nav button {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    transition: all 0.16s ease-out;
}

.main-nav a:hover {
    color: #e5e7eb;
    background: rgba(15,23,42,0.85);
}

.main-nav .nav-logout {
    border: 1px solid rgba(248, 113, 113, 0.7);
    color: #fecaca;
}

/* FIX MENIU TOGGLE (3 LINII) */
.menu-toggle {
    display: none; /* ASCUNS PE DESKTOP */
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    z-index: 101; /* Asigură că e deasupra nav-ului */
}

/* --- LAYOUT & CARDS --- */
/* (Restul stilurilor de layout și carduri rămân neschimbate) */
/* ... */

/* --- AUTH & FORM FIXES --- */

.auth-wrapper {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center; 
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 60%),
                radial-gradient(circle at bottom right, rgba(34,197,94,0.18), transparent 65%),
                #020617;
    border-radius: 22px;
    padding: 1.6rem 1.7rem 1.7rem;
    border: 1px solid rgba(148,163,184,0.4);
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
    background: var(--bg-input); 
    border-radius: 6px; 
    border: 1px solid rgba(148,163,184,0.5);
    padding: 0.55rem 0.85rem;
    color: #e5e7eb;
    font-size: 0.88rem;
    outline: none;
    width: 100%; 
}

/* --- FOOTER --- */

.site-footer {
    border-top: 1px solid rgba(15,23,42,0.9);
    padding: 0.7rem 1.5rem 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: radial-gradient(circle at top, rgba(15,23,42,0.9), #020617 60%);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem;
}

/* --- RESPONSIVE FIXES (MOBIL) --- */

@media (max-width: 768px) {
    
    /* FIX SCALARE FONTURI */
    body {
        font-size: 14px;
    }
    h1, .auth-title {
        font-size: 1.5rem !important;
    }
    h2 {
        font-size: 1.1rem !important;
    }
    
    /* Afișează toggle și plasează nav-ul mobil */
    .top-bar {
        /* Asigură că logo și toggle sunt pe același rând */
        flex-direction: row; 
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .menu-toggle {
        display: block; /* Vizibil pe mobil */
    }

    /* Navigarea este ascunsă implicit, se aranjează pe verticală */
    .main-nav {
        display: none; 
        position: absolute;
        top: 60px; /* Sub header */
        right: 10px;
        background: var(--bg-dark);
        border: 1px solid var(--border-subtle);
        width: 80%;
        max-width: 250px;
        flex-direction: column;
        padding: 15px;
        z-index: 100;
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }
    
    /* Clasa 'active' (adusă din JS) face meniul vizibil */
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a, .main-nav button {
        width: 100%;
        margin: 5px 0;
        text-align: left;
    }
    
    /* FIX GRIDUL DE SETUP/DASHBOARD LA 1 COLOANĂ */
    .grid-dashboard {
        grid-template-columns: 1fr !important; 
    }
    
    /* Asigură că marginile nu împing elementele în afara ecranului */
    .page-wrapper {
        padding: 0 10px;
    }

    /* FIX FOOTER RESPONSIV (Stanga/Dreapta pe un singur rând) */
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }
    
    .footer-inner p {
        flex: 1 1 50%;
        margin: 2px 0;
    }
    
    .footer-inner p:first-child {
        text-align: left;
    }
    .footer-inner p:last-child {
        text-align: right;
    }
}