/* ==========================================================================
   SON KALE - EMNİYET GENEL MÜDÜRLÜĞÜ PERSONEL ŞUBE DAİRESİ BAŞKANLIĞI
   ULTRA-PREMIUM TACTICAL GLASS & CYBER COMMAND CENTER DESIGN SYSTEM (2026)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
    /* Base Color Tokens */
    --bg-dark: #030712;
    --bg-body: #050b18;
    --bg-sidebar: #060d1f;
    --bg-card: rgba(10, 18, 38, 0.72);
    --bg-card-hover: rgba(16, 29, 58, 0.85);
    --bg-card-solid: #091329;
    --bg-input: rgba(7, 14, 30, 0.85);
    --bg-modal: #081024;
    --bg-glass: rgba(9, 17, 36, 0.78);
    --bg-glass-elevated: rgba(14, 25, 52, 0.88);

    /* Electric Tactical Accents */
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(59, 130, 246, 0.4);

    --accent-cyan: #00f0ff;
    --accent-cyan-light: #67e8f9;
    --accent-cyan-glow: rgba(0, 240, 255, 0.35);

    --accent-gold: #f59e0b;
    --accent-gold-light: #fcd34d;
    --accent-gold-glow: rgba(245, 158, 11, 0.35);

    --success: #10b981;
    --success-light: #34d399;
    --success-glow: rgba(16, 185, 129, 0.35);

    --warning: #f97316;
    --warning-glow: rgba(249, 115, 22, 0.35);

    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-glow: rgba(239, 68, 68, 0.4);

    --discord: #5865f2;
    --discord-hover: #4752c4;
    --discord-glow: rgba(88, 101, 242, 0.45);

    /* Typography & Borders */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-color: rgba(56, 189, 248, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(148, 163, 184, 0.15);
    --border-active: rgba(59, 130, 246, 0.65);
    --border-glow: rgba(0, 240, 255, 0.4);

    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    --shadow-elevated: 0 24px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
    --shadow-glow: 0 0 30px var(--primary-glow);

    --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    min-height: 100vh;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.16) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 240, 255, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.4) 0px, transparent 100%),
        radial-gradient(at 50% 100%, rgba(6, 11, 26, 0.95) 0px, transparent 70%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    line-height: 1.55;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-cyan);
}

.hidden {
    display: none !important;
}

.font-mono {
    font-family: var(--font-mono);
}

/* Custom Tactical Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(4, 9, 20, 0.85);
}
::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

/* ==========================================================================
   AUTHENTICATION & CYBER LOGIN SCREENS
   ========================================================================== */

.login-screen, .unauth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
    overflow: hidden;
    background-color: #030712;
}

.login-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.decor-glow-1 {
    position: absolute;
    width: 750px;
    height: 750px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(29, 78, 216, 0.08) 50%, transparent 70%);
    top: -200px;
    left: -150px;
    filter: blur(80px);
    animation: floatGlow 14s ease-in-out infinite alternate;
}

.decor-glow-2 {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, rgba(6, 182, 212, 0.06) 50%, transparent 70%);
    bottom: -150px;
    right: -120px;
    filter: blur(80px);
    animation: floatGlow 16s ease-in-out infinite alternate-reverse;
}

.decor-glow-3 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.18) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(90px);
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.scanline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 3px, 4px 100%;
    pointer-events: none;
    opacity: 0.6;
}

/* Luxury Cyber Command Login Card */
.login-card {
    width: 100%;
    max-width: 540px;
    background: linear-gradient(145deg, rgba(12, 22, 46, 0.85) 0%, rgba(6, 13, 28, 0.94) 100%);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: var(--radius-xl);
    padding: 46px 42px;
    text-align: center;
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 240, 255, 0.12), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 10;
    animation: loginCardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginCardEntrance {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(24px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Corner High-Tech Ticks */
.corner-accent {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--accent-cyan);
    border-style: solid;
    pointer-events: none;
}
.corner-accent.top-left { top: 12px; left: 12px; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.corner-accent.top-right { top: 12px; right: 12px; border-width: 2px 2px 0 0; border-top-right-radius: 4px; }
.corner-accent.bottom-left { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; }
.corner-accent.bottom-right { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }

/* EGM Emblem with Radar Scanning Halo */
.egm-badge-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.egm-login-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 10px 24px rgba(0, 240, 255, 0.55));
    transition: transform 0.4s var(--transition-spring);
}

.egm-login-logo:hover {
    transform: scale(1.1) rotate(4deg);
}

.egm-badge-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.45) 0%, rgba(59, 130, 246, 0.25) 45%, transparent 70%);
    animation: pulseGlow 3s infinite alternate ease-in-out;
}

.egm-badge-radar {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1.5px dashed rgba(0, 240, 255, 0.35);
    animation: rotateRadar 18s linear infinite;
}

@keyframes rotateRadar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.92); opacity: 0.5; }
    100% { transform: scale(1.22); opacity: 0.95; }
}

/* Header Labels & Titles */
.login-tag-group {
    margin-bottom: 12px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(0, 240, 255, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: var(--accent-cyan-light);
    text-transform: uppercase;
    box-shadow: 0 2px 12px rgba(0, 240, 255, 0.2);
}

.live-indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.8s infinite;
}

.login-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 55%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 22px;
    line-height: 1.55;
}

/* Feature Strip */
.login-feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 22px;
}

.login-feat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: rgba(15, 26, 52, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.login-feat-item:hover {
    background: rgba(20, 35, 70, 0.8);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.login-feat-item i {
    font-size: 16px;
    color: var(--accent-cyan);
}

.login-feat-item span {
    font-size: 10.5px;
    font-weight: 700;
    color: #cbd5e1;
    text-align: center;
    line-height: 1.25;
}

/* Security Notice Box */
.security-notice-box {
    background: linear-gradient(135deg, rgba(14, 25, 52, 0.85), rgba(7, 14, 30, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    text-align: left;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.sec-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sec-icon-wrapper .sec-icon {
    font-size: 18px;
    color: var(--accent-cyan);
}

.security-notice-box .sec-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.security-notice-box .sec-text strong {
    color: #fff;
    display: block;
    font-size: 12.5px;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

/* Login Action Buttons */
.login-actions-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-discord-login {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all var(--transition-normal);
    box-shadow: 0 10px 28px rgba(88, 101, 242, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-discord-login .btn-arrow-icon {
    margin-left: auto;
    font-size: 16px;
    transition: transform var(--transition-fast);
}

.btn-discord-login:hover .btn-arrow-icon {
    transform: translateX(4px);
}

.btn-discord-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn-discord-login:hover::before {
    left: 100%;
}

.btn-discord-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(88, 101, 242, 0.65), 0 0 25px rgba(88, 101, 242, 0.45);
    background: linear-gradient(135deg, #6774f7 0%, #4752c4 100%);
}

.btn-discord-login:active {
    transform: translateY(0);
}

.btn-demo-mode {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #bae6fd;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.btn-demo-mode:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(59, 130, 246, 0.2));
    border-color: var(--accent-cyan);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.25);
}

/* Footer Status Meta */
.login-footer-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.8px;
}

.login-footer-meta .meta-separator {
    color: rgba(0, 240, 255, 0.4);
}

/* Unauthorized Alert Screen */
.unauth-card {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(239, 68, 68, 0.3);
}

.unauth-icon-box {
    width: 84px;
    height: 84px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(153, 27, 27, 0.3));
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #f87171;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.unauth-tag {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

/* ==========================================================================
   MAIN DASHBOARD APPLICATION LAYOUT
   ========================================================================== */

.application {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ==========================================================================
   SIDEBAR NAVIGATION (TACTICAL SLIM GLASS)
   ========================================================================== */

.sidebar {
    width: 275px;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    backdrop-filter: blur(20px);
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, transparent 100%);
}

.brand-badge {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0b1329 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-brand-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 240, 255, 0.3));
}

.brand-text strong {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.6px;
    display: block;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: var(--text-dim);
    text-transform: uppercase;
    padding: 22px 20px 8px;
}

.navigation {
    padding: 8px 12px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    text-align: left;
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    color: var(--text-dim);
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
}

.nav-item:hover i {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #fff;
    font-weight: 800;
    border-left: 3px solid var(--accent-cyan);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.nav-item.active i {
    color: var(--accent-cyan);
}

.nav-item .nav-badge {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    font-family: var(--font-mono);
}

.nav-item .nav-badge.danger {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.sidebar-footer {
    padding: 18px 16px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(4, 9, 20, 0.85);
}

.bot-status-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 11.5px;
    color: #6ee7b7;
    font-weight: 700;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-sidebar-logout {
    width: 100%;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */

.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.topbar {
    height: 74px;
    padding: 0 36px;
    background: rgba(6, 13, 29, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-main);
}

.page-title-group h2 {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.3px;
}

.page-title-group .breadcrumb {
    font-size: 11.5px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.page-title-group .breadcrumb span {
    color: var(--accent-cyan);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quick-sync-btn {
    padding: 9px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(0, 240, 255, 0.08));
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--radius-md);
    color: #bae6fd;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.quick-sync-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(0, 240, 255, 0.18));
    color: #fff;
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.25);
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 8px;
    background: linear-gradient(135deg, rgba(15, 25, 48, 0.85), rgba(9, 16, 32, 0.9));
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 40px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #00f0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    color: #fff;
    border: 2px solid rgba(0, 240, 255, 0.5);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.user-avatar img, .officer-avatar img, .dossier-avatar-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.user-info strong {
    font-size: 13.5px;
    font-weight: 800;
    display: block;
    line-height: 1.2;
    color: #fff;
}

.user-info span {
    font-size: 11px;
    color: var(--accent-cyan);
    font-weight: 700;
}

/* ==========================================================================
   PAGE WRAPPER & SECTIONS
   ========================================================================== */

.page-wrapper {
    padding: 36px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    animation: pageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page {
    display: none;
}

.page.active-page {
    display: block;
}

.section-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.banner-left .eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.banner-left h1 {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-left p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 700px;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Modern Action Buttons */
.btn-primary {
    padding: 11px 22px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.55), 0 0 15px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    padding: 11px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.35);
    color: #fff;
    transform: translateY(-2px);
}

.btn-danger {
    padding: 11px 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(185, 28, 28, 0.3));
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    font-size: 13.5px;
    font-weight: 800;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(220, 38, 38, 0.45));
    color: #fff;
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   STATISTICS CARDS (CYBER COMMAND METRICS)
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 34px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(13, 23, 46, 0.8), rgba(8, 15, 30, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-card);
}

.stat-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 22px 42px -12px rgba(0, 0, 0, 0.75), 0 0 30px var(--stat-glow, rgba(0, 240, 255, 0.25));
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--stat-color, var(--primary)), transparent);
}

.stat-card.blue { --stat-color: #00f0ff; --stat-glow: rgba(0, 240, 255, 0.35); }
.stat-card.emerald { --stat-color: #10b981; --stat-glow: rgba(16, 185, 129, 0.35); }
.stat-card.amber { --stat-color: #f59e0b; --stat-glow: rgba(245, 158, 11, 0.35); }
.stat-card.rose { --stat-color: #ef4444; --stat-glow: rgba(239, 68, 68, 0.35); }
.stat-card.cyan { --stat-color: #06b6d4; --stat-glow: rgba(6, 182, 212, 0.35); }

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--stat-color, var(--primary));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stat-sub {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-sub .badge-trend {
    font-weight: 800;
    color: #34d399;
}

/* ==========================================================================
   CONTENT PANELS & TABLES
   ========================================================================== */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 26px;
    margin-bottom: 30px;
}

.panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.panel-header {
    padding: 20px 26px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(14, 25, 50, 0.6) 0%, rgba(9, 16, 32, 0.4) 100%);
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-body {
    padding: 26px;
}

/* Modern Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table th {
    padding: 14px 18px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-color);
    background: rgba(6, 12, 24, 0.4);
    white-space: nowrap;
}

table td {
    padding: 16px 18px;
    font-size: 13.5px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

table tbody tr {
    transition: all var(--transition-fast);
}

table tbody tr:hover {
    background: rgba(56, 189, 248, 0.05);
}

/* Officer Info in Table */
.officer-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.officer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a, #0b1329);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13.5px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.officer-meta strong {
    font-size: 14px;
    font-weight: 800;
    display: block;
    color: #fff;
}

.officer-meta span {
    font-size: 11.5px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* Status & Rank Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 700;
}

.badge-status.active {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.badge-status.leave {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.badge-status.suspended {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

.badge-status.expelled {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.badge-rank {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-sm);
    color: #fcd34d;
    font-size: 12px;
    font-weight: 700;
}

.badge-unit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-sm);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 700;
}

.badge-code {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}

/* ==========================================================================
   TOOLBARS & SEARCH
   ========================================================================== */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    flex: 1;
    min-width: 280px;
    max-width: 480px;
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18);
}

.search-box i {
    color: var(--text-dim);
    font-size: 16px;
}

.search-box input {
    width: 100%;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 500;
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.select-filter {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.select-filter:hover, .select-filter:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.select-filter option {
    background: #091329;
    color: #fff;
    padding: 8px;
}

/* ==========================================================================
   UNITS GRID & CARDS
   ========================================================================== */

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.unit-card {
    background: linear-gradient(135deg, rgba(14, 24, 48, 0.8), rgba(8, 15, 32, 0.9));
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.unit-card:hover {
    border-color: rgba(0, 240, 255, 0.45);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.2);
}

.unit-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.unit-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(0, 240, 255, 0.1));
    border: 1.5px solid rgba(0, 240, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent-cyan);
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.2);
}

.unit-count-pill {
    padding: 5px 12px;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 800;
    color: #93c5fd;
    font-family: var(--font-mono);
}

.unit-card h4 {
    font-size: 16.5px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.unit-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.unit-actions {
    display: flex;
    gap: 10px;
}

.unit-tabs-container button {
    padding: 10px 18px;
    background: rgba(14, 25, 52, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.unit-tabs-container button:hover {
    background: rgba(59, 130, 246, 0.18);
    color: #fff;
    border-color: var(--accent-cyan);
}

.unit-tabs-container button.active, .unit-tabs-container button.active-unit-tab {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5), 0 0 12px rgba(0, 240, 255, 0.35) !important;
}

/* ==========================================================================
   CYBER UNIT PROGRESS BARS (DASHBOARD HUD)
   ========================================================================== */

.cyber-unit-bar-item {
    cursor: pointer;
    padding: 12px 16px;
    background: rgba(14, 25, 52, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all var(--transition-fast);
}

.cyber-unit-bar-item:hover {
    background: rgba(20, 36, 75, 0.8);
    border-color: rgba(0, 240, 255, 0.45);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.2);
}

.cyber-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cyber-bar-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cyber-bar-prefix {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.12);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.cyber-bar-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.cyber-bar-stats strong {
    font-size: 12.5px;
    font-weight: 800;
    color: #93c5fd;
    font-family: var(--font-mono);
}

.cyber-bar-percent {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    margin-left: 4px;
}

.cyber-progress-track {
    height: 7px;
    background: rgba(4, 9, 22, 0.85);
    border-radius: var(--radius-pill);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cyber-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #00f0ff);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.65);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   TIMELINE AUDIT & RECENT ACTIVITIES
   ========================================================================== */

.timeline-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(10, 18, 36, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.timeline-item:hover {
    background: rgba(16, 28, 56, 0.75);
    border-color: rgba(56, 189, 248, 0.25);
    transform: translateX(3px);
}

.timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 16px;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-content strong {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    display: block;
}

.timeline-content p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.timeline-time {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    white-space: nowrap;
}

/* ==========================================================================
   DISCORD HERO CARD & INTEGRATIONS
   ========================================================================== */

.discord-hero-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.18), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.25);
}

.discord-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.discord-big-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--discord);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.5);
}

.discord-hero-info h3 {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.discord-hero-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    animation: backdropFade 0.25s ease-out;
}

@keyframes backdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    background: var(--bg-modal);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elevated), 0 0 40px rgba(37, 99, 235, 0.3);
    overflow-y: auto;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(14, 25, 52, 0.6) 0%, transparent 100%);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.5);
}

.modal-body {
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 12px;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: 0.2px;
}

.form-group input, .form-group select, .form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #fff;
    font-size: 13.5px;
    transition: all var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18);
}

.form-group small {
    font-size: 11px;
    color: var(--text-dim);
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(6, 12, 26, 0.5);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 14px 20px;
    background: rgba(8, 16, 36, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
    animation: toastSlideIn 0.35s var(--transition-spring);
    max-width: 420px;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(60px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast.success { border-color: rgba(16, 185, 129, 0.5); }
.toast.success i { color: #34d399; }

.toast.error { border-color: rgba(239, 68, 68, 0.5); }
.toast.error i { color: #f87171; }

.toast.warning { border-color: rgba(245, 158, 11, 0.5); }
.toast.warning i { color: #fcd34d; }

/* ==========================================================================
   TACTICAL BADGES, PILLS & ACTION BUTTONS
   ========================================================================== */

.badge-sicil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-sm);
    color: #fcd34d;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-sm);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
}

.status-pill.active {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.status-pill.warning {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

.status-pill.suspended {
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fdba74;
}

.status-pill.danger {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* Action Icon Buttons */
.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.btn-action-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.btn-action-icon:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-cyan);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 240, 255, 0.25);
}

.btn-action-icon.danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.btn-manage-officer {
    padding: 5px 12px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius-sm);
    color: #93c5fd;
    font-size: 11.5px;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.btn-manage-officer:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #fff;
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

/* Timeline Indicators */
.timeline-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    margin-top: 5px;
    flex-shrink: 0;
}

.timeline-indicator.danger {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.timeline-indicator.warning {
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}

.timeline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 3px;
}

.timeline-top strong {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
}

.timeline-top span {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* Dossier Modal Elements */
.dossier-header-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(14, 26, 52, 0.8), rgba(8, 15, 32, 0.9));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-lg);
    margin-bottom: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.dossier-avatar-big {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1e3a8a, #00f0ff);
    border: 2px solid rgba(0, 240, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 240, 255, 0.35);
}

.dossier-info h2 {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

.dossier-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Warning Level Badges */
.warning-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 800;
}

.warning-level-badge.level-1 {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

.warning-level-badge.level-2 {
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.45);
    color: #fdba74;
}

.warning-level-badge.level-3 {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.warning-level-badge.discharge {
    background: linear-gradient(135deg, #7f1d1d, #450a0a);
    border: 1px solid #ef4444;
    color: #fff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Unit Detail Meta */
.unit-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(0, 240, 255, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.unit-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.unit-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.unit-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.discord-role-table td {
    padding: 12px 16px;
}


/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 20px 16px;
    }

    .topbar {
        padding: 0 18px;
    }

    .section-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-actions {
        width: 100%;
    }

    .banner-actions button {
        flex: 1;
        justify-content: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }
}
