/* =================================================================
   SENTINEL Admin Panel
   JARVIS / HUD Theme — Admin-specific styles
   ================================================================= */

/* -----------------------------------------------------------------
   CSS VARIABLES (match main dashboard)
   ----------------------------------------------------------------- */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0d1321;
    --bg-panel: rgba(13, 19, 33, 0.85);
    --accent-cyan: #00d4ff;
    --accent-blue: #0066ff;
    --accent-orange: #ff6b00;
    --accent-red: #ff1744;
    --accent-green: #00e676;
    --accent-yellow: #ffea00;
    --text-primary: #e0e6ed;
    --text-secondary: #7a8ba0;
    --text-accent: #00d4ff;
    --border-glow: rgba(0, 212, 255, 0.3);
    --grid-line: rgba(0, 212, 255, 0.05);
}


/* -----------------------------------------------------------------
   1. BASE / RESET
   ----------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--bg-primary);
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 49px,
            var(--grid-line) 49px,
            var(--grid-line) 50px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            var(--grid-line) 49px,
            var(--grid-line) 50px
        );
    font-family: 'Rajdhani', 'Share Tech Mono', sans-serif;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Vignette overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
}

/* Scan lines */
#scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    animation: scanline-drift 8s linear infinite;
}

@keyframes scanline-drift {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}


/* -----------------------------------------------------------------
   2. HEADER (matches main dashboard)
   ----------------------------------------------------------------- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 50;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 260px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
    text-transform: uppercase;
}

.logo-version {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.header-subtitle {
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding-left: 48px;
}

/* Header navigation */
.header-nav {
    display: flex;
    gap: 4px;
    padding-left: 48px;
    margin-top: 2px;
}

.nav-link {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 2px;
    padding: 2px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
    background: rgba(0, 212, 255, 0.05);
}

.nav-link.active {
    color: var(--accent-cyan);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.08);
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.utc-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.utc-label {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.utc-time {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 22px;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.utc-date {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 200px;
    justify-content: flex-end;
}

.header-right .status-label {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Logout button */
.btn-logout {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--accent-red);
    background: transparent;
    border: 1px solid rgba(255, 23, 68, 0.3);
    padding: 4px 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.btn-logout:hover {
    background: rgba(255, 23, 68, 0.1);
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.2);
}


/* -----------------------------------------------------------------
   3. ADMIN CONTENT AREA
   ----------------------------------------------------------------- */
#admin-content {
    position: relative;
    z-index: 1;
    margin-top: 65px;
    padding: 20px 24px 50px;
    min-height: calc(100vh - 95px);
}

.admin-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-glow);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}


/* -----------------------------------------------------------------
   4. CARD GRID LAYOUT
   ----------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* -----------------------------------------------------------------
   5. CARD STYLING — Glassmorphism + HUD corners
   ----------------------------------------------------------------- */
.admin-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: 6px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.5);
}

/* HUD corner accents */
.admin-card::before,
.admin-card::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 2;
}

.admin-card::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid rgba(0, 212, 255, 0.5);
    border-left: 2px solid rgba(0, 212, 255, 0.5);
}

.admin-card::after {
    top: -1px;
    right: -1px;
    border-top: 2px solid rgba(0, 212, 255, 0.5);
    border-right: 2px solid rgba(0, 212, 255, 0.5);
}

/* Bottom corner accents via inner element */
.card-header::before,
.card-body::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 2;
}

.admin-card > .card-body::after {
    bottom: -1px;
    right: -1px;
    position: absolute;
    border-bottom: 2px solid rgba(0, 212, 255, 0.5);
    border-right: 2px solid rgba(0, 212, 255, 0.5);
}

.card-header {
    position: relative;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 14px 18px 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.card-body {
    position: relative;
    padding: 14px 18px 18px;
}


/* -----------------------------------------------------------------
   6. DATA ROWS (key-value pairs inside cards)
   ----------------------------------------------------------------- */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.04);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.data-value {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-primary);
    text-align: right;
}

.data-value.accent {
    color: var(--accent-cyan);
}

.data-value.warn {
    color: var(--accent-yellow);
}

.data-value.alert {
    color: var(--accent-red);
}

.data-value.good {
    color: var(--accent-green);
}


/* -----------------------------------------------------------------
   7. PROGRESS BAR (API Quota)
   ----------------------------------------------------------------- */
.quota-bar-wrapper {
    margin-top: 12px;
}

.quota-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.quota-bar-label span {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.quota-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.quota-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease, background 0.6s ease;
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.3);
}

.quota-bar-fill.good {
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.3);
}

.quota-bar-fill.warn {
    background: var(--accent-yellow);
    box-shadow: 0 0 6px rgba(255, 234, 0, 0.3);
}

.quota-bar-fill.critical {
    background: var(--accent-red);
    box-shadow: 0 0 6px rgba(255, 23, 68, 0.3);
    animation: pulse-red 1.5s ease-in-out infinite;
}

.quota-big-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    text-align: center;
    margin: 8px 0 4px;
    letter-spacing: 2px;
}

.quota-sub {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 1px;
}


/* -----------------------------------------------------------------
   8. SYNC STATUS INDICATORS
   ----------------------------------------------------------------- */
.sync-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 3px;
}

.sync-status-badge.active {
    color: var(--accent-green);
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.sync-status-badge.paused {
    color: var(--accent-yellow);
    background: rgba(255, 234, 0, 0.08);
    border: 1px solid rgba(255, 234, 0, 0.2);
}

.sync-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sync-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.5);
    animation: pulse-green 2s ease-in-out infinite;
}

.sync-dot.paused {
    background: var(--accent-yellow);
    box-shadow: 0 0 4px rgba(255, 234, 0, 0.4);
}


/* -----------------------------------------------------------------
   9. DATABASE TABLE
   ----------------------------------------------------------------- */
.db-table {
    width: 100%;
    border-collapse: collapse;
}

.db-table th,
.db-table td {
    text-align: left;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.06);
}

.db-table th {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.db-table td:first-child {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.db-table td:last-child {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 14px;
    color: var(--accent-cyan);
    text-align: right;
    font-weight: 600;
}

.db-table tr:last-child td {
    border-bottom: none;
}

.db-table tr:hover td {
    background: rgba(0, 212, 255, 0.03);
}

.db-total-row td {
    border-top: 1px solid var(--border-glow) !important;
    padding-top: 10px;
    font-weight: 700 !important;
}

.db-total-row td:first-child {
    color: var(--text-primary) !important;
}


/* -----------------------------------------------------------------
   10. ALERT LIST
   ----------------------------------------------------------------- */
.alert-list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alert-item {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    background: rgba(13, 19, 33, 0.6);
    border-radius: 4px;
    border-left: 3px solid var(--border-glow);
    transition: background 0.2s ease;
}

.alert-item:hover {
    background: rgba(13, 19, 33, 0.9);
}

.alert-item.severity-info {
    border-left-color: var(--accent-cyan);
}

.alert-item.severity-warning {
    border-left-color: var(--accent-yellow);
}

.alert-item.severity-critical {
    border-left-color: var(--accent-red);
}

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

.alert-type-badge {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1px 6px;
    border-radius: 2px;
    font-weight: 600;
}

.alert-type-badge.severity-info {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.alert-type-badge.severity-warning {
    color: var(--accent-yellow);
    background: rgba(255, 234, 0, 0.1);
    border: 1px solid rgba(255, 234, 0, 0.2);
}

.alert-type-badge.severity-critical {
    color: var(--accent-red);
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.alert-time {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-secondary);
}

.alert-title {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.alert-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-top: 3px;
}

.alert-region {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--accent-cyan);
    margin-top: 4px;
    letter-spacing: 1px;
}

.no-data {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    padding: 20px 0;
    letter-spacing: 1px;
    opacity: 0.6;
}


/* -----------------------------------------------------------------
   11. LOG VIEWER
   ----------------------------------------------------------------- */
.log-viewer {
    max-height: 320px;
    overflow-y: auto;
    background: rgba(5, 8, 14, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: 4px;
    padding: 10px 12px;
}

.log-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.log-tab {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.15);
    padding: 3px 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.log-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
    background: rgba(0, 212, 255, 0.05);
}

.log-tab.active {
    color: var(--bg-primary);
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.log-lines {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
}

.log-line {
    padding: 1px 0;
}

.log-line .log-timestamp {
    color: var(--accent-cyan);
    opacity: 0.7;
}

.log-line .log-message {
    color: var(--text-secondary);
}


/* -----------------------------------------------------------------
   12. LOGIN OVERLAY
   ----------------------------------------------------------------- */
#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(10, 14, 23, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#login-overlay.hidden {
    display: none;
}

.login-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    padding: 40px 48px;
    width: 380px;
    max-width: 90vw;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.08);
}

/* HUD corners on login card */
.login-card::before,
.login-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.login-card::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid rgba(0, 212, 255, 0.6);
    border-left: 2px solid rgba(0, 212, 255, 0.6);
}

.login-card::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.6);
    border-right: 2px solid rgba(0, 212, 255, 0.6);
}

.login-logo {
    text-align: center;
    margin-bottom: 6px;
}

.login-logo svg {
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
}

.login-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 8px;
    text-align: center;
    text-shadow:
        0 0 10px rgba(0, 212, 255, 0.6),
        0 0 30px rgba(0, 212, 255, 0.3);
    margin-bottom: 4px;
}

.login-subtitle {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.login-field {
    position: relative;
    margin-bottom: 20px;
}

.login-label {
    display: block;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.login-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 4px;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-input:focus {
    border-color: var(--accent-cyan);
    box-shadow:
        0 0 12px rgba(0, 212, 255, 0.3),
        inset 0 0 8px rgba(0, 212, 255, 0.05);
}

.login-input::placeholder {
    color: rgba(122, 139, 160, 0.4);
    letter-spacing: 3px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--bg-primary);
    background: var(--accent-cyan);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.login-btn:hover {
    background: #33ddff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 11px;
    color: var(--accent-red);
    text-align: center;
    margin-top: 14px;
    letter-spacing: 1px;
    min-height: 16px;
}


/* -----------------------------------------------------------------
   13. STATUS BAR (bottom)
   ----------------------------------------------------------------- */
#status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: 50;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.status-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.status-item {
    display: inline-flex;
    align-items: center;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    flex-shrink: 0;
}

.status-online {
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.5);
    animation: pulse-green 2s ease-in-out infinite;
}

.status-separator {
    color: rgba(0, 212, 255, 0.15);
    margin: 0 10px;
    font-size: 11px;
    user-select: none;
}

.status-right {
    justify-content: flex-end;
}


/* -----------------------------------------------------------------
   14. ANIMATIONS
   ----------------------------------------------------------------- */
@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 23, 68, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 23, 68, 0.7); }
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 3px rgba(0, 230, 118, 0.3); }
    50% { box-shadow: 0 0 8px rgba(0, 230, 118, 0.6); }
}

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

.admin-card {
    animation: fadeInUp 0.4s ease-out both;
}

.admin-card:nth-child(1) { animation-delay: 0.05s; }
.admin-card:nth-child(2) { animation-delay: 0.1s; }
.admin-card:nth-child(3) { animation-delay: 0.15s; }
.admin-card:nth-child(4) { animation-delay: 0.2s; }
.admin-card:nth-child(5) { animation-delay: 0.25s; }
.admin-card:nth-child(6) { animation-delay: 0.3s; }


/* -----------------------------------------------------------------
   15. SCROLLBAR
   ----------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) var(--bg-primary);
}


/* -----------------------------------------------------------------
   16. SELECTION
   ----------------------------------------------------------------- */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

*:focus-visible {
    outline: 1px solid var(--accent-cyan);
    outline-offset: 2px;
}

#header,
#status-bar,
.card-header,
.nav-link,
.btn-logout,
.log-tab,
.login-btn {
    user-select: none;
    -webkit-user-select: none;
}


/* -----------------------------------------------------------------
   17. RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #header {
        padding: 0 10px;
        height: 55px;
    }

    .header-subtitle {
        display: none;
    }

    .header-nav {
        padding-left: 0;
        gap: 2px;
    }

    .nav-link {
        font-size: 9px;
        padding: 1px 5px;
        letter-spacing: 1px;
    }

    .logo-title {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .utc-time {
        font-size: 18px;
    }

    .utc-date {
        display: none;
    }

    #admin-content {
        margin-top: 55px;
        padding: 14px 12px 50px;
    }

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

    .login-card {
        padding: 30px 24px;
    }

    .login-title {
        font-size: 22px;
        letter-spacing: 5px;
    }

    .header-center {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-logo {
        gap: 8px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .logo-title {
        font-size: 16px;
        letter-spacing: 2px;
    }
}
