/* ═══════════════════════════════════════════════════════════════
   MDT SYSTEM v6.0 — PRO MAX REDESIGN
   Glassmorphism v3, Hyper Neon Glow, Aurora Mesh, Micro-interactions
   Powered by DarkSide RP • Antybots
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --accent: #6366f1;
    --accent-rgb: 99, 102, 241;
    --accent2: #ec4899;
    --accent2-rgb: 236, 72, 153;
    --accent-light: rgba(var(--accent-rgb), 0.15);
    --accent-hover: rgba(var(--accent-rgb), 0.3);
    --accent-glow: 0 0 30px rgba(var(--accent-rgb), 0.4), 0 0 80px rgba(var(--accent-rgb), 0.1);
    --accent-neon: 0 0 10px rgba(var(--accent-rgb), 0.5), 0 0 25px rgba(var(--accent-rgb), 0.2);

    --bg-primary: #030509;
    --bg-secondary: #070a13;
    --bg-card: rgba(10, 14, 26, 0.7);
    --bg-card-solid: #0a0e1a;
    --bg-card-hover: rgba(16, 22, 40, 0.85);
    --bg-input: rgba(5, 7, 15, 0.9);
    --bg-sidebar: rgba(5, 7, 15, 0.95);
    --bg-glass: rgba(10, 14, 26, 0.55);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-accent: var(--accent);

    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(var(--accent-rgb), 0.45);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-neon: rgba(var(--accent-rgb), 0.6);

    --success: #10b981;
    --success-rgb: 16, 185, 129;
    --warning: #f59e0b;
    --warning-rgb: 245, 158, 11;
    --danger: #ef4444;
    --danger-rgb: 239, 68, 68;
    --info: #0ea5e9;
    --info-rgb: 14, 165, 233;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.8);
    --shadow-glow: var(--accent-glow);
    --shadow-neon: 0 0 20px rgba(var(--accent-rgb), 0.3), 0 0 50px rgba(var(--accent2-rgb), 0.15);

    --sidebar-width: 280px;
    --header-height: 70px;
    --radius: 20px;
    --radius-sm: 14px;
    --radius-xs: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated mesh gradient background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(var(--accent-rgb), 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(var(--accent2-rgb), 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: meshMove 25s ease infinite;
}

@keyframes meshMove {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb), 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--accent-rgb), 0.5);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-primary);
}

/* ═══ ANIMATIONS ═══════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(var(--accent-rgb), 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(var(--accent-rgb), 0.2);
    }

    50% {
        border-color: rgba(var(--accent-rgb), 0.5);
    }
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.3);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(var(--accent-rgb), 0);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ═══ DEPARTMENT SELECTOR PAGE ═════════════════════════════════ */
.dept-selector {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

.dept-selector-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(52, 152, 219, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(46, 204, 113, 0.04) 0%, transparent 50%);
    z-index: 0;
}

.dept-selector-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: gridPulse 10s ease-in-out infinite;
}

.dept-selector h1 {
    position: relative;
    z-index: 1;
    font-size: 2.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #f1f5f9 0%, #6366f1 50%, #8b5cf6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.6s ease-out, textShine 4s linear infinite;
    text-shadow: none;
    letter-spacing: -0.5px;
}

@keyframes textShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.dept-selector .subtitle {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 48px;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.dept-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    width: 100%;
}

.dept-card {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-bounce);
    animation: fadeInUp 0.5s ease-out both;
    position: relative;
    overflow: hidden;
}

.dept-card:nth-child(1) {
    animation-delay: 0.05s;
}

.dept-card:nth-child(2) {
    animation-delay: 0.1s;
}

.dept-card:nth-child(3) {
    animation-delay: 0.15s;
}

.dept-card:nth-child(4) {
    animation-delay: 0.2s;
}

.dept-card:nth-child(5) {
    animation-delay: 0.25s;
}

.dept-card:nth-child(6) {
    animation-delay: 0.3s;
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent, var(--accent)), rgba(var(--accent2-rgb), 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s, height 0.4s;
}

.dept-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(var(--accent-rgb), 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dept-card:hover::before {
    opacity: 1;
    height: 4px;
}

.dept-card .dept-card-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent2-rgb), 0.08));
    border: 2px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    transition: var(--transition-bounce);
}

.dept-card:hover .dept-card-icon {
    transform: scale(1.15) rotate(-3deg);
    border-color: rgba(var(--accent-rgb), 0.6);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.25), 0 0 60px rgba(var(--accent-rgb), 0.08);
}

.dept-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.dept-card:hover h3 {
    text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
}

.dept-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dept-selector .admin-link {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    padding: 12px 28px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.dept-selector .admin-link:hover {
    border-color: rgba(var(--accent-rgb), 0.4);
    color: var(--text-primary);
}

/* ═══ LOGIN PAGE ═══════════════════════════════════════════════ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(var(--accent-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
}

.login-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 8s ease-in-out infinite;
}

/* Floating particles */
.login-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.login-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(var(--accent-rgb), 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.login-particles span:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.login-particles span:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
    animation-duration: 5s;
}

.login-particles span:nth-child(3) {
    top: 40%;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.login-particles span:nth-child(4) {
    top: 80%;
    left: 60%;
    animation-delay: 0.5s;
    animation-duration: 6s;
}

.login-particles span:nth-child(5) {
    top: 10%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.login-particles span:nth-child(6) {
    top: 50%;
    left: 50%;
    animation-delay: 1.5s;
    animation-duration: 7s;
}

.login-card {
    position: relative;
    width: 440px;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg), var(--accent-glow);
    animation: cardFloat 0.6s ease-out;
    z-index: 2;
}

.login-card .dept-badge {
    width: 84px;
    height: 84px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.05));
    border: 2px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    animation: badgePulse 3s ease-in-out infinite;
}

.login-card h1 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 32px;
}

.login-card .error-msg {
    background: rgba(var(--danger-rgb), 0.1);
    border: 1px solid rgba(var(--danger-rgb), 0.3);
    color: #fca5a5;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-align: center;
    animation: fadeIn 0.3s;
}

/* ─── Form Elements ─────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    backdrop-filter: blur(8px);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12), 0 0 15px rgba(var(--accent-rgb), 0.08);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.input-icon-wrapper .form-control {
    padding-left: 42px;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.4), var(--accent-neon);
}

.btn-secondary {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

.btn-danger {
    background: rgba(var(--danger-rgb), 0.12);
    color: #fca5a5;
    border: 1px solid rgba(var(--danger-rgb), 0.25);
}

.btn-danger:hover {
    background: rgba(var(--danger-rgb), 0.22);
    transform: translateY(-1px);
}

.btn-success {
    background: rgba(var(--success-rgb), 0.12);
    color: #86efac;
    border: 1px solid rgba(var(--success-rgb), 0.25);
}

.btn-success:hover {
    background: rgba(var(--success-rgb), 0.22);
    transform: translateY(-1px);
}

.btn-warning {
    background: rgba(var(--warning-rgb), 0.12);
    color: #fcd34d;
    border: 1px solid rgba(var(--warning-rgb), 0.25);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.login-card .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 8px;
}

/* ═══ MAIN LAYOUT ══════════════════════════════════════════════ */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ─── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-header .dept-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.05));
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: glow 4s ease-in-out infinite;
}

.sidebar-header .dept-info h2 {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-header .dept-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.sidebar-nav .nav-section {
    margin-bottom: 6px;
}

.sidebar-nav .nav-section-title {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 14px 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    position: relative;
}

.nav-link:hover {
    background: var(--accent-light);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-link.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
}

.nav-link .nav-icon {
    width: 22px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.officer-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.officer-card:hover {
    border-color: var(--border-accent);
}

.officer-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.4));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.officer-info .name {
    font-size: 0.85rem;
    font-weight: 600;
}

.officer-info .badge-num {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ─── Main Content ───────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

.top-bar {
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar .page-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.top-bar .top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-bar .status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(var(--success-rgb), 0.08);
    border: 1px solid rgba(var(--success-rgb), 0.25);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #86efac;
}

.top-bar .status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(var(--success-rgb), 0.5);
}

.content-area {
    padding: 28px;
    animation: fadeIn 0.4s ease-out;
}

/* ═══ CARDS & WIDGETS ══════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out both;
}

.stat-card:nth-child(1) {
    animation-delay: 0.05s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.15s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(5) {
    animation-delay: 0.25s;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.2));
    transition: height 0.3s;
}

.stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--accent-glow);
}

.stat-card:hover::before {
    height: 4px;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

/* ─── Data Cards ─────────────────────────────────────────────── */
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out both;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ═══ TABLE ════════════════════════════════════════════════════ */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(var(--accent-rgb), 0.04);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.data-table tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(var(--accent-rgb), 0.04);
}

.data-table tbody tr:hover td {
    color: var(--text-primary);
}

.data-table .mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

/* ─── Badges & Tags ──────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.badge-success {
    background: rgba(var(--success-rgb), 0.12);
    color: #86efac;
    border: 1px solid rgba(var(--success-rgb), 0.2);
}

.badge-warning {
    background: rgba(var(--warning-rgb), 0.12);
    color: #fcd34d;
    border: 1px solid rgba(var(--warning-rgb), 0.2);
}

.badge-danger {
    background: rgba(var(--danger-rgb), 0.12);
    color: #fca5a5;
    border: 1px solid rgba(var(--danger-rgb), 0.2);
}

.badge-info {
    background: rgba(var(--info-rgb), 0.12);
    color: #93c5fd;
    border: 1px solid rgba(var(--info-rgb), 0.2);
}

.badge-neutral {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-extreme {
    background: rgba(168, 50, 50, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: borderGlow 2s infinite;
}

/* ─── Search Bar ─────────────────────────────────────────────── */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-bar .form-control {
    flex: 1;
}

/* ─── Quick Actions Bar ──────────────────────────────────────── */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* ─── Empty State ────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ─── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    width: 540px;
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg), var(--accent-glow);
    animation: modalIn 0.3s ease-out;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ═══ DETAIL VIEWS ═════════════════════════════════════════════ */
.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding: 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    animation: fadeInUp 0.4s ease-out;
}

.detail-header .detail-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.4));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.detail-header .detail-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.detail-header .detail-title .detail-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-item {
    padding: 14px 0;
}

.detail-item .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.detail-item .value {
    font-size: 1rem;
    font-weight: 600;
}

/* ─── Tabs ───────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    margin-bottom: -1px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

/* ─── Wanted Cards ───────────────────────────────────────────── */
.wanted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.wanted-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.5s ease-out both;
}

.wanted-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.wanted-card.danger-extreme {
    border-left: 3px solid #ef4444;
}

.wanted-card.danger-high {
    border-left: 3px solid #f59e0b;
}

.wanted-card.danger-medium {
    border-left: 3px solid #3b82f6;
}

.wanted-card.danger-low {
    border-left: 3px solid #64748b;
}

.wanted-card .wanted-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wanted-card .wanted-name {
    font-size: 1rem;
    font-weight: 700;
}

.wanted-card .wanted-body {
    padding: 0 20px 16px;
}

.wanted-card .wanted-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.wanted-card .wanted-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wanted-card .wanted-actions {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.wanted-card.captured {
    opacity: 0.5;
}

/* ─── Officer Cards ──────────────────────────────────────────── */
.officer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.officer-list-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    animation: fadeInUp 0.4s ease-out both;
}

.officer-list-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.officer-list-card .officer-rank-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.officer-list-card .officer-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid var(--bg-card-solid);
}

.officer-list-card .officer-status.active {
    background: var(--success);
}

.officer-list-card .officer-status.suspended {
    background: var(--danger);
}

.officer-list-card .officer-status.on_leave {
    background: var(--warning);
}

.officer-list-card .officer-status.inactive {
    background: var(--text-muted);
}

/* ─── Two/Three column layout ────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ─── Toast Notifications ────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(16px);
    animation: toastIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    box-shadow: var(--shadow-lg);
}

.toast.toast-out {
    animation: toastOut 0.3s ease-in forwards;
}

.toast-success {
    background: rgba(var(--success-rgb), 0.15);
    border: 1px solid rgba(var(--success-rgb), 0.3);
    color: #86efac;
}

.toast-error {
    background: rgba(var(--danger-rgb), 0.15);
    border: 1px solid rgba(var(--danger-rgb), 0.3);
    color: #fca5a5;
}

.toast-info {
    background: rgba(var(--info-rgb), 0.15);
    border: 1px solid rgba(var(--info-rgb), 0.3);
    color: #93c5fd;
}

/* ─── 404 Page ───────────────────────────────────────────────── */
.page-404 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-404 h1 {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-muted), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-404 p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .login-card {
        width: 92vw;
        padding: 32px 24px;
    }

    .wanted-grid {
        grid-template-columns: 1fr;
    }

    .officer-grid {
        grid-template-columns: 1fr;
    }

    .dept-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-toggle {
        display: flex !important;
    }

    .top-bar-left {
        gap: 12px;
    }

    .page-header-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .mini-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ─── Utility ────────────────────────────────────────────────── */
.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

/* ═══ REDESIGN v4.0 — ULTIMATE PREMIUM ═══════════════════════ */

/* ─── New Animations ─────────────────────────────────────────── */
@keyframes spinRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes neonPulse {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

@keyframes scanLine {
    0% {
        top: -5%;
    }

    100% {
        top: 105%;
    }
}

@keyframes aurora {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rippleIn {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }

    60% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes glitchFlicker {

    0%,
    94%,
    100% {
        opacity: 1;
    }

    96% {
        opacity: 0.8;
        transform: translateX(2px);
    }

    98% {
        opacity: 0.9;
        transform: translateX(-1px);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes notifBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─── Sidebar Neon Accent Line ───────────────────────────────── */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--accent), rgba(var(--accent-rgb), 0.3), transparent);
    animation: neonPulse 4s ease-in-out infinite;
}

.sidebar-header {
    position: relative;
    overflow: hidden;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    top: -5%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.5), transparent);
    animation: scanLine 3s linear infinite;
}

/* ─── Department Icon Enhanced Glow ──────────────────────────── */
.sidebar-header .dept-icon {
    animation: glow 4s ease-in-out infinite, float 6s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15);
}

/* ─── Nav Links Micro-interactions ───────────────────────────── */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-link .nav-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover .nav-icon {
    transform: scale(1.25) rotate(-5deg);
}

.nav-link.active .nav-icon {
    transform: scale(1.15);
    animation: notifBounce 0.5s ease-out;
}

/* ─── Notification Dot ───────────────────────────────────────── */
.nav-link .notif-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    margin-left: auto;
    animation: notifBounce 2s infinite;
    box-shadow: 0 0 6px rgba(var(--danger-rgb), 0.5);
}

/* ─── Stat Cards Enhanced ────────────────────────────────────── */
.stat-card {
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: radial-gradient(circle at 50% -20%, rgba(var(--accent-rgb), 0.06), transparent 70%);
    pointer-events: none;
}

.stat-card:hover::after {
    background: radial-gradient(circle at 50% -20%, rgba(var(--accent-rgb), 0.12), transparent 70%);
}

.stat-card .stat-value {
    animation: countUp 0.6s ease-out both;
}

.stat-card:nth-child(1) .stat-value {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) .stat-value {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) .stat-value {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) .stat-value {
    animation-delay: 0.4s;
}

.stat-card:nth-child(5) .stat-value {
    animation-delay: 0.5s;
}

.stat-card:nth-child(6) .stat-value {
    animation-delay: 0.6s;
}

.stat-card:nth-child(7) .stat-value {
    animation-delay: 0.7s;
}

.stat-card .stat-icon {
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15);
}

/* ─── Card Shimmer on hover ──────────────────────────────────── */
.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.card:hover::before {
    left: 150%;
}

.card:hover {
    border-color: rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(var(--accent-rgb), 0.05);
}

/* ─── Department Selector Logo Ring ──────────────────────────── */
.dept-selector-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
    animation: rippleIn 0.8s ease-out;
}

.logo-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(59, 130, 246, 0.6), rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.6), rgba(34, 197, 94, 0.4), rgba(59, 130, 246, 0.6));
    padding: 4px;
    animation: spinRing 4s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), 0 0 80px rgba(139, 92, 246, 0.08);
}

.logo-inner {
    width: 102px;
    height: 102px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

/* ─── Dept Card Enhanced ─────────────────────────────────────── */
.dept-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(var(--accent-rgb, 52, 152, 219), 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.dept-card:hover .dept-card-glow {
    opacity: 1;
}

.dept-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-accent, var(--accent)), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.dept-card:hover::after {
    opacity: 1;
}

.dept-card-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    font-size: 1.4rem;
    opacity: 0;
    color: var(--card-accent, var(--accent));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dept-card:hover .dept-card-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.dept-card:hover .dept-card-icon {
    animation: float 2s ease-in-out infinite;
}

/* ─── Department Selector Footer ─────────────────────────────── */
.dept-selector-footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.dept-selector-version {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.5;
}

/* ─── Page Header Bar ────────────────────────────────────────── */
.page-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    animation: slideUp 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.page-header-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.3), transparent);
}

.page-header-bar h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2px;
}

/* ─── Mini Stats ─────────────────────────────────────────────── */
.mini-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.mini-stat {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    text-align: center;
    transition: var(--transition);
    animation: slideUp 0.4s ease-out both;
    position: relative;
    overflow: hidden;
}

.mini-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.mini-stat:hover::before {
    opacity: 1;
}

.mini-stat:nth-child(1) {
    animation-delay: 0.05s;
}

.mini-stat:nth-child(2) {
    animation-delay: 0.1s;
}

.mini-stat:nth-child(3) {
    animation-delay: 0.15s;
}

.mini-stat:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.mini-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mini-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ─── Form Grid ──────────────────────────────────────────────── */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-control[readonly] {
    background: rgba(var(--accent-rgb), 0.06);
    border-color: rgba(var(--accent-rgb), 0.15);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* ─── Sidebar Toggle (Mobile) ────────────────────────────────── */
.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--accent-light);
    border-color: var(--border-accent);
    transform: scale(1.05);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── Department Badge in Top Bar ────────────────────────────── */
.dept-badge-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.05));
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    animation: rippleIn 0.5s ease-out 0.3s both;
}

.dept-badge-icon {
    font-size: 1rem;
}

/* ─── Enhanced Toast Notifications ───────────────────────────── */
.toast {
    position: relative;
    overflow: hidden;
    border-left: 3px solid currentColor;
}

.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    opacity: 0.3;
    animation: borderFlow 2s linear;
}

/* ─── Quick Actions Enhanced ─────────────────────────────────── */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    animation: slideUp 0.5s ease-out 0.2s both;
}

.quick-actions .btn {
    position: relative;
    overflow: hidden;
}

.quick-actions .btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-actions .btn:hover::before {
    opacity: 1;
}

/* ─── Table Row Entrance Animation ───────────────────────────── */
.data-table tbody tr {
    animation: fadeInUp 0.3s ease-out both;
}

.data-table tbody tr:nth-child(1) {
    animation-delay: 0.02s;
}

.data-table tbody tr:nth-child(2) {
    animation-delay: 0.04s;
}

.data-table tbody tr:nth-child(3) {
    animation-delay: 0.06s;
}

.data-table tbody tr:nth-child(4) {
    animation-delay: 0.08s;
}

.data-table tbody tr:nth-child(5) {
    animation-delay: 0.1s;
}

.data-table tbody tr:nth-child(6) {
    animation-delay: 0.12s;
}

/* ─── Improved Table Hover ───────────────────────────────────── */
.data-table tbody tr:hover {
    background: rgba(var(--accent-rgb), 0.06);
}

.data-table tbody tr:hover td:first-child {
    border-left: 2px solid var(--accent);
    padding-left: 14px;
}

.data-table .btn-sm {
    padding: 4px 10px;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.data-table .btn-sm:hover {
    transform: scale(1.1);
}

/* ─── Officer Card in Sidebar Enhanced ───────────────────────── */
.officer-card {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.03));
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    transition: all 0.3s ease;
}

.officer-card:hover {
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.officer-avatar {
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.2);
}

/* ─── Aurora Effect on Body v5.1 ─────────────────────────────── */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 350px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05), rgba(var(--accent2-rgb), 0.04), rgba(236, 72, 153, 0.02), transparent);
    background-size: 400% 400%;
    animation: aurora 12s ease infinite;
    pointer-events: none;
    z-index: 0;
}

/* ─── Content Area Page Transitions ──────────────────────────── */
.content-area {
    animation: slideUp 0.4s ease-out;
}

.content-area>*:nth-child(1) {
    animation: slideUp 0.4s ease-out 0.05s both;
}

.content-area>*:nth-child(2) {
    animation: slideUp 0.4s ease-out 0.1s both;
}

.content-area>*:nth-child(3) {
    animation: slideUp 0.4s ease-out 0.15s both;
}

.content-area>*:nth-child(4) {
    animation: slideUp 0.4s ease-out 0.2s both;
}

/* ─── Login Page Improvements ────────────────────────────────── */
.login-card {
    animation: rippleIn 0.7s ease-out;
}

.login-card .btn-primary {
    background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.7));
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3);
    transition: all 0.3s ease;
}

.login-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.4);
}

.login-particles span {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3);
}

/* ─── Empty State Enhanced ───────────────────────────────────── */
.empty-state {
    animation: fadeInUp 0.5s ease-out;
}

.empty-state .empty-icon {
    animation: float 4s ease-in-out infinite;
}

/* ─── Scrollbar Sidebar ──────────────────────────────────────── */
.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb), 0.2);
    border-radius: 3px;
}

/* ─── Detail Pages Enhanced ──────────────────────────────────── */
.detail-header {
    animation: slideUp 0.5s ease-out;
}

.detail-header .detail-avatar {
    animation: rippleIn 0.6s ease-out 0.1s both;
    box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.2);
}

/* ─── Search Grid System (Civilians & Vehicles) ──────────────── */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.grid-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    animation: cardFloat 0.5s ease-out both;
}

.grid-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(var(--accent-rgb), 0.2);
}

.grid-card-image {
    width: 100%;
    height: 200px;
    background: #0f1423;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-glass);
}

.grid-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-card:hover .grid-card-image img {
    transform: scale(1.08);
}

.grid-card-image .fallback-icon {
    font-size: 4rem;
    color: rgba(var(--accent-rgb), 0.8);
    text-shadow: 0 0 15px rgba(var(--accent-rgb), 0.5);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), transparent);
    -webkit-background-clip: text;
    transition: var(--transition);
}

.grid-card:hover .grid-card-image .fallback-icon {
    color: rgba(var(--accent2-rgb), 0.9);
    text-shadow: 0 0 25px rgba(var(--accent2-rgb), 0.7);
    transform: scale(1.15) rotate(-5deg);
}

.grid-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.grid-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 15px;
}

.grid-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 15px;
}

.grid-card-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--text-accent);
}

.search-bar-advanced {
    position: relative;
    margin-bottom: 30px;
}

.search-bar-advanced .form-control {
    font-size: 1.1rem;
    padding: 18px 24px 18px 56px;
    border-radius: 30px;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.search-bar-advanced .form-control:focus {
    background: rgba(10, 14, 26, 0.95);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(var(--accent-rgb), 0.15);
}

.search-bar-advanced .icon {
    font-size: 1.4rem;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
}

/* ═══ ADMIN REDESIGN - OVERLORD THEME ═════════════════════════ */
.admin-liquid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: transparent;
    overflow: hidden;
}

.admin-liquid-bg::before,
.admin-liquid-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: liquidMove 30s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-liquid-bg::before {
    width: 800px;
    height: 800px;
    background: #8b5cf6;
    top: -200px;
    left: -200px;
}

.admin-liquid-bg::after {
    width: 900px;
    height: 900px;
    background: #c026d3;
    bottom: -300px;
    right: -200px;
    animation-delay: -15s;
}

@keyframes liquidMove {
    0% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.1) translate(100px, 50px); }
    66% { transform: scale(0.9) translate(-50px, 150px); }
    100% { transform: scale(1.2) translate(50px, -50px); }
}

.welcome-widget {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(192, 38, 211, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(139, 92, 246, 0.15);
}

.welcome-widget::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 200px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1));
    transform: skewX(-45deg);
    animation: welcomeShine 5s infinite;
}

@keyframes welcomeShine {
    0% { left: -200px; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.admin-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.guide-step {
    background: rgba(10, 14, 26, 0.6);
    border-radius: var(--radius-sm);
    padding: 15px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: var(--transition);
}

.guide-step:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.guide-step-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.profile-banner-container {
    height: 300px;
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
    position: relative;
    border: 1px solid var(--border-glass);
    border-bottom: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) inset;
}

.profile-avatar-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin-top: -80px;
    margin-left: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    padding: 5px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(139, 92, 246, 0.3);
    z-index: 2;
}

.profile-avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
    transition: var(--transition);
}

.admin-badge:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

.admin-badge-owner {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    animation: glowOwner 2s infinite alternate;
}

@keyframes glowOwner {
    from { box-shadow: 0 0 5px rgba(220, 38, 38, 0.2); border-color: rgba(220, 38, 38, 0.3); }
    to { box-shadow: 0 0 20px rgba(220, 38, 38, 0.5); border-color: rgba(220, 38, 38, 0.6); }
}

.admin-content-box {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 30px 40px;
    backdrop-filter: blur(20px);
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    width: 100%;
}

.admin-table th {
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 10px 15px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.admin-table td {
    background: rgba(10, 14, 26, 0.5);
    padding: 15px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-secondary);
    transition: var(--transition);
}

.admin-table td:first-child {
    border-left: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px 0 0 12px;
}

.admin-table td:last-child {
    border-right: 1px solid rgba(255,255,255,0.03);
    border-radius: 0 12px 12px 0;
}

.admin-table tr:hover td {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--text-primary);
    transform: scale(1.01);
}

/* ═══ ADMIN LOGIN REDESIGN v2 ═════════════════════════ */
.admin-login-body {
    margin: 0; padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    overflow: hidden;
    position: relative;
    font-family: var(--font-family);
}

.admin-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 { width: 400px; height: 400px; background: #8b5cf6; top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: #c026d3; bottom: -150px; right: 10%; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #3b82f6; top: 30%; left: 50%; animation-delay: -10s; }

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.2); }
}

.admin-login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.admin-login-card {
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.admin-login-card:hover {
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.2), 0 0 40px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-5px);
}

.admin-lock-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(192,38,211,0.2));
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    border: 2px solid rgba(139,92,246,0.5);
    box-shadow: 0 0 30px rgba(139,92,246,0.3);
    animation: iconPulse 3s infinite alternate;
}

@keyframes iconPulse {
    from { box-shadow: 0 0 20px rgba(139,92,246,0.2); }
    to { box-shadow: 0 0 40px rgba(139,92,246,0.6); }
}

.admin-input-group {
    position: relative;
    margin-bottom: 25px;
}

.admin-input-group .input-icon {
    position: absolute;
    left: 20px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    z-index: 2;
    transition: color 0.3s;
}

.admin-input-group input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.admin-input-group .input-border {
    position: absolute;
    bottom: -1px; left: 50%;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #c026d3);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.admin-input-group input:focus {
    background: rgba(0,0,0,0.6);
    border-color: rgba(139,92,246,0.3);
    box-shadow: 0 0 20px rgba(139,92,246,0.1);
}

.admin-input-group input:focus ~ .input-icon {
    color: #8b5cf6;
}

.admin-input-group input:focus ~ .input-border {
    width: calc(100% - 40px);
}

.admin-login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px rgba(139,92,246,0.3);
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(139,92,246,0.5);
}

.admin-login-btn .btn-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
    pointer-events: none;
}

.admin-login-btn:active .btn-glow {
    transform: translate(-50%, -50%) scale(1);
    transition: 0s;
}

.admin-error-box {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fca5a5;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.admin-back-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.admin-back-link:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

/* ═══ ADMIN SIDEBAR FLOATING REDESIGN ═════════════════════════ */
.sidebar.admin-sidebar-floating {
    position: sticky;
    top: 20px;
    margin: 20px;
    margin-right: 0;
    height: calc(100vh - 40px);
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-right: 1px solid rgba(139, 92, 246, 0.2); /* Override normal sidebar right border */
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(139, 92, 246, 0.1);
    z-index: 100;
}

.admin-main-floating {
    margin-left: 0 !important;
    padding-left: 20px;
    padding-right: 20px;
}
