/* ========================================================
   APEX OVERSEER - STYLESHEET
   Apple Precision × Cyberpunk Neon × Egyptian Royal
   ======================================================== */

:root {
    --surface-dark: rgba(10, 13, 20, 0.85);
    --sidebar-dark: rgba(12, 16, 24, 0.90);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --egypt-gold: #d4af37;
    --egypt-gold-light: #f3e5ab;
    --text-muted: rgba(255, 255, 255, 0.6);
    
    /* Cyberpunk Neon Palette */
    --neon-cyan: #00e5ff;
    --neon-pink: #ff00aa;
    --neon-green: #39ff14;
    --neon-yellow: #ffe600;

    --font-heading: 'Cinzel', 'Montserrat', sans-serif;
    --font-body: 'Inter', 'Sora', sans-serif;
}

* {
    box-sizing: border-box;
}

/* ========================================================
   DYNAMIC BACKGROUND COLOR SHIFT (SCHLEICHEFFEKT)
   Rein saubere Farbwechsel ohne Schleier oder Rauschen
   ======================================================== */
@keyframes backgroundFade {
    0%   { background-color: #1a293f; }
    6%   { background-color: #404751; }
    12%  { background-color: #896f3d; }
    18%  { background-color: #102134; }
    24%  { background-color: #BCB9AC; }
    30%  { background-color: #5F8396; }
    36%  { background-color: #2F4A61; }
    41%  { background-color: #6F6558; }
    47%  { background-color: #242527; }
    53%  { background-color: #6F4D38; }
    59%  { background-color: #632024; }
    65%  { background-color: #FFECA1; }
    71%  { background-color: #A67233; }
    76%  { background-color: #8F6635; }
    82%  { background-color: #002825; }
    88%  { background-color: #FCBF24; }
    94%  { background-color: #FFFFFF; }
    100% { background-color: #1a293f; }
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #f5f5f7;
    font-family: var(--font-body);
    
    /* Reiner, eleganter Farbwechsel ohne Überlagerungen */
    background-color: #1a293f;
    animation: backgroundFade 120s ease-in-out infinite alternate;
}

/* ========================================================
   HORIZONTALE HAUPTNAVIGATION (-)
   ======================================================== */
.admin-topbar {
    height: 60px;
    background: var(--surface-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.brand {
    color: var(--egypt-gold);
    font-family: var(--font-heading);
    font-size: 1.1em;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    color: var(--neon-cyan);
    font-size: 1.2em;
}

.top-nav-links {
    display: flex;
    gap: 8px;
    height: 100%;
}

.top-nav-links a {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 18px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.top-nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

/* Cyberpunk Active Color Shift Animation */
@keyframes neonNavPulse {
    0% {
        color: var(--neon-cyan);
        border-bottom-color: var(--neon-cyan);
        text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
    }
    33% {
        color: var(--neon-pink);
        border-bottom-color: var(--neon-pink);
        text-shadow: 0 0 12px rgba(255, 0, 170, 0.6);
    }
    66% {
        color: var(--neon-green);
        border-bottom-color: var(--neon-green);
        text-shadow: 0 0 12px rgba(57, 255, 20, 0.6);
    }
    100% {
        color: var(--neon-yellow);
        border-bottom-color: var(--neon-yellow);
        text-shadow: 0 0 12px rgba(255, 230, 0, 0.6);
    }
}

.top-nav-links a.active {
    font-weight: 700;
    animation: neonNavPulse 12s infinite alternate ease-in-out;
}

/* ========================================================
   USER BADGE & PROFESSIONELLER LOGOUT BUTTON
   ======================================================== */
.admin-user-info {
    font-size: 0.8em;
    display: flex;
    gap: 16px;
    align-items: center;
}

.user-badge {
    background: rgba(212, 175, 55, 0.12);
    color: var(--egypt-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f5f5f7;
    background: rgba(255, 0, 85, 0.08);
    border: 1px solid rgba(255, 0, 85, 0.35);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(4px);
}

.btn-logout::after {
    content: "⎋";
    font-size: 1.1em;
    color: var(--neon-pink);
    transition: transform 0.2s ease;
}

.btn-logout:hover {
    background: rgba(255, 0, 85, 0.22);
    border-color: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 170, 0.4);
}

.btn-logout:hover::after {
    transform: translateX(3px);
}

/* ========================================================
   BODY CONTAINER & SIDEBAR (-')
   ======================================================== */
.admin-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.admin-sidebar {
    width: 240px;
    background: var(--sidebar-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.side-nav-links {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.side-nav-links li a {
    display: block;
    padding: 13px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88em;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.side-nav-links li a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.side-nav-links li a.active {
    color: var(--egypt-gold);
    background: rgba(212, 175, 55, 0.08);
    border-left-color: var(--egypt-gold);
    font-weight: 600;
}

.nav-divider {
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.btn-highlight {
    color: var(--neon-cyan) !important;
    font-weight: bold;
}

.sidebar-footer {
    padding: 16px 24px;
    font-size: 0.7em;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    letter-spacing: 1px;
}

/* ========================================================
   MAIN CONTENT AREA & GLASS PANELS
   ======================================================== */
.admin-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    position: relative;
}

.admin-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.admin-header h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.4em;
    letter-spacing: 2px;
}

.module-breadcrumb {
    font-size: 0.75em;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-family: monospace;
}

.glass-panel {
    background: rgba(10, 13, 20, 0.55);
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.placeholder-box {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.placeholder-box h3 {
    color: var(--egypt-gold);
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.placeholder-box code {
    color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ========================================================
   BUTTONS & FORM ELEMENTS (ALLGEMEIN)
   ======================================================== */
.btn-action {
    background: var(--neon-cyan);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-action:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* SCROLLBAR */
.admin-content::-webkit-scrollbar { width: 6px; }
.admin-content::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
.admin-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
.admin-content::-webkit-scrollbar-thumb:hover { background: var(--egypt-gold); }
