/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Login Modal Styles */
.login-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px);
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    border: 2px solid #444 !important;
    border-radius: 20px !important;
    width: 90% !important;
    max-width: 450px !important;
    min-width: 300px !important;
    overflow: hidden !important;
    transform: scale(0.8) translateY(20px) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(255, 215, 0, 0.1) !important;
    position: relative !important;
    margin: auto !important;
}

.login-modal-overlay.show .login-modal {
    transform: scale(1) translateY(0);
}

.login-modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
    border-bottom: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.modal-badge {
    font-size: 3.5rem;
    color: #ffd700;
    text-shadow: 
        0 0 20px #ffd700,
        0 0 40px #ffd700,
        0 0 60px rgba(255, 215, 0, 0.5);
    margin-bottom: 1rem;
    animation: badge-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px #ffd700);
}

.login-modal-header h3 {
    font-family: 'Orbitron', monospace;
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.login-modal-header p {
    color: #cccccc;
    font-size: 1rem;
    font-style: italic;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid #ff4444;
    color: #ff4444;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(255, 68, 68, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.login-modal-body {
    padding: 2.5rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid #444;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    background: rgba(50, 50, 50, 0.9);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #444;
    border-radius: 3px;
    background: rgba(40, 40, 40, 0.8);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked {
    background: #ffd700;
    border-color: #ffd700;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-container label {
    color: #cccccc;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

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

.btn-loading {
    display: none !important;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}

.login-modal-footer {
    background: rgba(20, 20, 20, 0.8);
    padding: 1rem 2rem;
    border-top: 1px solid #444;
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.8rem;
}

.security-notice i {
    color: #4caf50;
}

/* Animated Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #1a1a1a 100%);
}

/* Enhanced Desert Particles with Emergency Light Particles */
.desert-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        /* Original desert particles */
        radial-gradient(2px 2px at 20px 30px, #ffd700, transparent),
        radial-gradient(2px 2px at 40px 70px, #ff4444, transparent),
        radial-gradient(1px 1px at 90px 40px, #4444ff, transparent),
        radial-gradient(1px 1px at 130px 80px, #ffd700, transparent),
        radial-gradient(2px 2px at 160px 30px, #ff4444, transparent),
        /* Emergency light particles - red */
        radial-gradient(3px 3px at 180px 20px, rgba(255, 0, 0, 0.8), transparent),
        radial-gradient(2px 2px at 220px 60px, rgba(255, 0, 0, 0.6), transparent),
        radial-gradient(4px 4px at 280px 40px, rgba(255, 0, 0, 0.7), transparent),
        /* Emergency light particles - blue */
        radial-gradient(3px 3px at 320px 80px, rgba(0, 100, 255, 0.8), transparent),
        radial-gradient(2px 2px at 360px 25px, rgba(0, 100, 255, 0.6), transparent),
        radial-gradient(4px 4px at 400px 65px, rgba(0, 100, 255, 0.7), transparent);
    background-repeat: repeat;
    background-size: 450px 120px;
    animation: enhanced-drift 25s linear infinite;
    opacity: 0.15;
}

/* Fast Emergency Particles */
.emergency-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        /* Fast moving red particles */
        radial-gradient(2px 2px at 50px 15px, rgba(255, 0, 0, 0.9), transparent),
        radial-gradient(3px 3px at 150px 45px, rgba(255, 0, 0, 0.7), transparent),
        radial-gradient(1px 1px at 250px 75px, rgba(255, 0, 0, 0.8), transparent),
        /* Fast moving blue particles */
        radial-gradient(2px 2px at 350px 25px, rgba(0, 100, 255, 0.9), transparent),
        radial-gradient(3px 3px at 450px 55px, rgba(0, 100, 255, 0.7), transparent),
        radial-gradient(1px 1px at 550px 85px, rgba(0, 100, 255, 0.8), transparent);
    background-repeat: repeat;
    background-size: 600px 100px;
    animation: fast-emergency-drift 8s linear infinite;
    opacity: 0.12;
}

/* Radio Static Interference Particles */
.static-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        /* Static interference dots */
        radial-gradient(1px 1px at 30px 20px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80px 60px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 130px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 180px 80px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 230px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 280px 70px, rgba(255, 255, 255, 0.2), transparent);
    background-repeat: repeat;
    background-size: 320px 100px;
    animation: static-flicker 3s ease-in-out infinite;
    opacity: 0.08;
}

/* Enhanced particle animations */
@keyframes enhanced-drift {
    0% { transform: translateX(0px); }
    100% { transform: translateX(-450px); }
}

@keyframes fast-emergency-drift {
    0% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(-150px) translateY(-5px); }
    50% { transform: translateX(-300px) translateY(5px); }
    75% { transform: translateX(-450px) translateY(-3px); }
    100% { transform: translateX(-600px) translateY(0px); }
}

@keyframes static-flicker {
    0%, 100% { 
        opacity: 0.05; 
        transform: translateX(0px) scale(1);
    }
    15% { 
        opacity: 0.15; 
        transform: translateX(-20px) scale(1.1);
    }
    30% { 
        opacity: 0.08; 
        transform: translateX(-40px) scale(0.9);
    }
    45% { 
        opacity: 0.12; 
        transform: translateX(-60px) scale(1.05);
    }
    60% { 
        opacity: 0.06; 
        transform: translateX(-80px) scale(0.95);
    }
    75% { 
        opacity: 0.10; 
        transform: translateX(-100px) scale(1.02);
    }
    90% { 
        opacity: 0.07; 
        transform: translateX(-120px) scale(0.98);
    }
}

/* Emergency Light Pulse Effects */
.emergency-pulse-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 100, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(255, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(0, 100, 255, 0.02) 0%, transparent 50%);
    animation: emergency-pulse 4s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes emergency-pulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    25% { 
        opacity: 0.6;
        transform: scale(1.02);
    }
    50% { 
        opacity: 0.4;
        transform: scale(0.98);
    }
    75% { 
        opacity: 0.7;
        transform: scale(1.01);
    }
}

.emergency-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 0, 0, 0.1) 0%, 
        transparent 25%, 
        rgba(0, 0, 255, 0.1) 50%, 
        transparent 75%, 
        rgba(255, 0, 0, 0.1) 100%);
    animation: emergency-sweep 3s ease-in-out infinite;
}

@keyframes emergency-sweep {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 2rem;
}

.badge-container {
    margin-bottom: 1.5rem;
}

.sheriff-badge {
    display: inline-block;
    font-size: 4rem;
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700;
    animation: badge-pulse 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.sheriff-badge:hover {
    transform: rotate(15deg) scale(1.1);
}

@keyframes badge-pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.department-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.department-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #cccccc;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.department-motto {
    font-size: 1.1rem;
    color: #888888;
    font-style: italic;
}

/* Section Titles */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #4caf50;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
}

/* Command Chain Cards */
.command-section {
    margin: 3rem 0;
}

.command-cards {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.command-card {
    perspective: 1000px;
    width: 280px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.command-card:hover {
    transform: translateY(-10px);
    filter: drop-shadow(0 10px 20px rgba(255, 215, 0, 0.3));
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.command-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #444;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #333 0%, #222 100%);
}

.badge-icon {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #ffd700;
}

.card-front h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.rank {
    color: #cccccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-back h4 {
    font-size: 1.4rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.bio {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-align: center;
}

.badge-number {
    color: #888;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    border: 1px solid #444;
}

/* Radio Dispatch Menu */
.radio-dispatch-menu {
    background: rgba(20, 20, 20, 0.9);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #333;
    backdrop-filter: blur(10px);
}

.dispatch-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.menu-item {
    position: relative;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.menu-item:hover {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 
                0 0 40px rgba(255, 0, 0, 0.1),
                0 0 60px rgba(0, 0, 255, 0.1);
    transform: translateY(-2px);
}

.radio-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.menu-item:hover .radio-static {
    transform: translateX(100%);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.menu-item:hover .menu-link {
    color: #ffd700;
}

.menu-link i {
    font-size: 1.5rem;
    min-width: 24px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

.radio-code {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #888;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #444;
}

/* Dropdown Menu */
.dropdown-item {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    border: 2px solid #444;
    border-radius: 8px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.dropdown-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    text-decoration: none;
    color: #cccccc;
    border-bottom: 1px solid #444;
    transition: all 0.3s ease;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding-left: 1.5rem;
}

/* Status Footer */
.status-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.8);
    border-radius: 10px;
    border: 1px solid #333;
    margin-top: auto;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
    position: relative;
}

.status-light.active {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-family: 'Orbitron', monospace;
    color: #00ff00;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.timestamp {
    font-family: 'Orbitron', monospace;
    color: #888;
    font-size: 0.9rem;
}

/* H3 Section Styles - Green Theme */
h3 {
    color: #4caf50;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 25px;
    font-size: 1.4rem;
}

/* Optional: Add border bottom */
h3.border-bottom {
    border-bottom: 2px solid #4caf50;
    padding-bottom: 8px;
}

/* Optional: Add background highlight */
h3.bg-highlight {
    background-color: rgba(76, 175, 80, 0.1);
    padding: 10px 15px;
    border-left: 4px solid #4caf50;
}

/* Optional: Add icon space */
h3.with-icon {
    padding-left: 30px;
    position: relative;
}

h3.with-icon::before {
    content: "▶";
    color: #4caf50;
    position: absolute;
    left: 0;
    top: 0;
}

/* Hover effect */
h3:hover {
    color: #45a049;
    transition: color 0.3s ease;
}

/* Force dropdown to show properly */
.dropdown-item:hover .dropdown-menu,
.dropdown-item.dropdown-open .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #333 0%, #222 100%) !important;
    border: 2px solid #444 !important;
    border-radius: 8px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000 !important;
    min-height: 80px;
}

.dropdown-link {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem !important;
    text-decoration: none;
    color: #cccccc !important;
    border-bottom: 1px solid #444;
    transition: all 0.3s ease;
    background: transparent !important;
}

.dropdown-link:hover {
    background: rgba(76, 175, 80, 0.1) !important;
    color: #4CAF50 !important;
    padding-left: 1.5rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
        gap: 2rem;
    }
    
    .department-title {
        font-size: 2rem;
    }
    
    .department-subtitle {
        font-size: 1.2rem;
    }
    
    .command-cards {
        gap: 1.5rem;
    }
    
    .command-card {
        width: 250px;
        height: 180px;
    }
    
    .dispatch-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .status-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .login-modal {
        width: 95%;
        max-width: 400px;
    }
    
    .login-modal-header {
        padding: 1.5rem;
    }
    
    .login-modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .department-title {
        font-size: 1.5rem;
    }
    
    .command-card {
        width: 100%;
        max-width: 280px;
    }
    
    .menu-link {
        font-size: 1rem;
    }
    
    .login-modal {
        width: 100%;
        margin: 1rem;
        max-width: none;
    }
}

.navigation .section-header {
    color: #4CAF50 !important;
}

/* Hall of Fame Plaque */
.hall-of-fame {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 280px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95), rgba(30, 30, 30, 0.95));
    border: 2px solid #4caf50;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(76, 175, 80, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 100;
    animation: hallOfFameGlow 3s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

.hall-of-fame:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(76, 175, 80, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

@keyframes hallOfFameGlow {
    0% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(76, 175, 80, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.1); }
    100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 25px rgba(76, 175, 80, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.1); }
}

/* Plaque Header */
.plaque-header {
    text-align: center;
    padding: 15px 15px 10px 15px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px 10px 0 0;
}

.plaque-icon {
    margin-bottom: 8px;
}

.plaque-icon i {
    font-size: 24px;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: trophyShine 2s ease-in-out infinite alternate;
}

@keyframes trophyShine {
    0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    100% { text-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

.plaque-title {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #4caf50;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.plaque-subtitle {
    font-size: 11px;
    color: #ccc;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Champions List */
.champions-list {
    padding: 15px;
}

.champion-entry {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.champion-entry:last-child {
    margin-bottom: 0;
}

.champion-entry:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.05);
}

/* Champion Medal */
.champion-medal {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
    animation: medalFloat 3s ease-in-out infinite;
}

@keyframes medalFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

/* Champion Info */
.champion-info {
    flex: 1;
    line-height: 1.2;
}

.champion-position {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    color: #888;
}

.champion-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.champion-badge {
    font-size: 10px;
    color: #4caf50;
    margin-bottom: 2px;
    font-weight: 500;
}

.champion-count {
    font-size: 10px;
    color: #bbb;
    font-weight: 500;
}

/* Ranking Colors */
.champion-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-left-color: #FFD700;
}

.champion-gold .champion-position {
    color: #FFD700;
}

.champion-silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.05));
    border-left-color: #C0C0C0;
}

.champion-silver .champion-position {
    color: #C0C0C0;
}

.champion-bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.05));
    border-left-color: #CD7F32;
}

.champion-bronze .champion-position {
    color: #CD7F32;
}

/* No Champions State */
.no-champions {
    text-align: center;
    padding: 20px;
    color: #888;
}

.no-champions-icon {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-champions-text {
    font-size: 12px;
    font-weight: 500;
}

/* Plaque Footer */
.plaque-footer {
    text-align: center;
    padding: 10px 15px 15px 15px;
    border-top: 1px solid rgba(76, 175, 80, 0.2);
}

.week-indicator {
    font-size: 10px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Hall of Fame */
@media (max-width: 1024px) {
    .hall-of-fame {
        width: 250px;
        top: 15px;
        left: 15px;
    }
    
    .plaque-title {
        font-size: 14px;
    }
    
    .champion-medal {
        font-size: 20px;
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    .hall-of-fame {
        position: relative;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px auto;
        top: 0;
        left: 0;
    }
}

@media (max-width: 480px) {
    .hall-of-fame {
        width: calc(100% - 20px);
        margin: 0 10px 20px 10px;
    }
    
    .champion-entry {
        padding: 8px;
    }
    
    .champion-medal {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .champion-name {
        font-size: 11px;
    }
    
    .champion-badge,
    .champion-count {
        font-size: 9px;
    }
}