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

:root {
    --primary-red: #22d3ee; /* cyan-400 */
    --dark-red: #0e7490; /* cyan-700 */
    --light-red: #67e8f9; /* cyan-300 */
    --accent-red: #06b6d4; /* cyan-500 */
    --bg-primary: #111111;
    --bg-secondary: #1f1f1f;
	--bg-secondarytwo: #1f1f1f;
    --bg-tertiary: #2a2a2a;
    --bg-sidebar: #1e1b1b;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --shadow: rgba(34, 211, 238, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(42, 42, 42, 0.8);
}

[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
	--bg-secondarytwo: #cccccc;
    --bg-tertiary: #f1f3f5;
    --bg-sidebar: #f0fdff;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: rgba(34, 211, 238, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.9);
}

/* Unreleased Server Banner */
.unreleased-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.unreleased-banner.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.unreleased-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.unreleased-content {
    position: relative;
    background: var(--bg-secondary);
    border: 3px solid var(--primary-red);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 90px var(--shadow-dark), 0 0 50px var(--shadow);
    animation: slideUpScale 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

.unreleased-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.unreleased-title {
    color: var(--primary-red);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.unreleased-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.unreleased-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.unreleased-btn {
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unreleased-btn-primary {
    background: linear-gradient(45deg, var(--primary-red), var(--accent-red));
    color: white;
    border-color: var(--primary-red);
}

.unreleased-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--shadow);
}

.unreleased-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.unreleased-btn-secondary:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

@media (max-width: 768px) {
    .unreleased-content {
        padding: 2rem;
    }
    
    .unreleased-title {
        font-size: 1.5rem;
    }
    
    .unreleased-text {
        font-size: 1rem;
    }
    
    .unreleased-icon {
        font-size: 3rem;
    }
    
    .unreleased-buttons {
        flex-direction: column;
    }
    
    .unreleased-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Music Dropdown Styles */
.music-dropdown {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.music-dropdown:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px var(--shadow);
}

.music-dropdown:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px var(--shadow);
}

.music-dropdown option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem;
}

.music-volume-slider-settings {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.music-volume-slider-settings::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-red);
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-volume-slider-settings::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--shadow);
}

.music-volume-slider-settings::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-red);
    cursor: pointer;
    border: none;
}

#musicVolumeContainer {
    display: flex;
}

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
            color: var(--text-primary);
            min-height: 100vh;
            transition: all 0.3s ease;
            overflow-x: hidden;
        }

.dropdown-menu {
    display: none;
    flex-direction: column;
    margin-left: 2rem;
}

.dropdown.open .dropdown-menu {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7rem;
}
        /* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-sidebar) 0%, var(--bg-secondary) 100%);
    border-right: 2px solid var(--primary-red);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: 4px 0 20px var(--shadow-dark);
    backdrop-filter: blur(20px);
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Enhanced Setting Labels */
.theme-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    min-width: 120px;
    text-align: right;
    transition: all 0.3s ease;
}

.theme-label span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: bold;
}

/* Tenor GIF Embeds */
.tenor-gif-embed {
    margin: 1rem 0;
    display: inline-block;
    max-width: 400px;
}

.tenor-gif-embed iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.tenor-gif-embed iframe:hover {
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px var(--shadow);
}

.tenor-gif-embed a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
}

.tenor-gif-embed a:hover {
    color: var(--primary-red);
}


/* Discord Attachment Styles */
.discord-attachments {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.discord-attachment-image {
    position: relative;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.discord-attachment-image:hover {
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px var(--shadow);
    transform: translateY(-4px);
}

.discord-attachment-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
    background: var(--bg-primary);
}

.discord-attachment-video {
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.discord-attachment-video video {
    width: 100%;
    height: auto;
    display: block;
}

.attachment-filename {
    padding: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.discord-attachment-file {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.discord-attachment-file:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.discord-attachment-file a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-attachment-file a:hover {
    color: var(--accent-red);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    opacity: 1;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--primary-red);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close:hover {
    background: var(--accent-red);
    transform: rotate(90deg) scale(1.1);
}

.image-modal-filename {
    margin-top: 1rem;
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.image-modal-download {
    margin-top: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.image-modal-download:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
}

/* Mobile responsive for attachments */
@media (max-width: 768px) {
    .discord-attachment-image {
        max-width: 100%;
    }
    
    .image-modal-content {
        max-width: 95vw;
    }
    
    .image-modal-close {
        top: -40px;
        width: 35px;
        height: 35px;
    }
}

/* Custom Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-red), var(--accent-red));
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-red), var(--primary-red));
    box-shadow: 0 0 10px var(--shadow);
}

/* Firefox Scrollbar */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-red) var(--bg-secondary);
}

        .sidebar-logo {
            text-align: center;
            margin-bottom: 3rem;
            padding: 0 2rem;
        }

        .sidebar-logo h1 {
            font-size: 2rem;
            font-weight: bold;
            background: linear-gradient(45deg, var(--primary-red), var(--accent-red));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
            margin-bottom: 0.5rem;
        }

        .sidebar-logo p {
            color: var(--text-muted);
            font-size: 0.9rem;
            font-style: italic;
        }

        .sidebar-nav {
    flex: 1;
    padding: 0 1rem;
    overflow-y: auto; /* Allow navigation to scroll independently */
    overflow-x: hidden;
}

/* Custom Scrollbar for nav section */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

        .nav-item {
            margin-bottom: 0.5rem;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 1rem 1.5rem;
            color: var(--text-secondary);
            text-decoration: none;
            border-radius: 12px;
            transition: all 0.3s ease;
            font-weight: 500;
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 0;
            height: 100%;
            background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
            transition: width 0.3s ease;
            z-index: -1;
        }

        .nav-link:hover {
            color: var(--text-primary);
            border-color: var(--primary-red);
            transform: translateX(8px);
            box-shadow: 0 8px 25px var(--shadow);
        }

        .nav-link:hover::before {
            width: 100%;
        }

        .nav-link.active {
            color: var(--text-primary);
            background: linear-gradient(45deg, var(--primary-red), var(--dark-red));
            border-color: var(--accent-red);
            box-shadow: 0 8px 25px var(--shadow);
        }

        .nav-icon {
            margin-right: 1rem;
            font-size: 1.2rem;
            width: 24px;
            text-align: center;
        }

        /* Settings Toggle Button */
.settings-toggle {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    background: var(--glass-bg);
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px var(--shadow);
    backdrop-filter: blur(10px);
    font-size: 1.5rem;
}

.settings-toggle:hover {
    background: var(--primary-red);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 12px 40px var(--shadow);
}

/* Settings Modal - Full Screen */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-modal.active {
    display: block;
    opacity: 1;
}

.settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.settings-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border: 2px solid var(--primary-red);
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 90px var(--shadow-dark), 0 0 50px var(--shadow);
    animation: slideUpScale 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

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

@keyframes slideUpScale {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-radius: 24px 24px 0 0;
}

.settings-header h3 {
    color: var(--primary-red);
    font-size: 2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-close {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: bold;
}

.settings-close:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 20px var(--shadow);
}

.settings-body {
    padding: 2.5rem;
}

/* Settings Sections */
.settings-section {
    margin-top: 2rem;
}

.settings-section-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Setting Item */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem;
    background: var(--bg-tertiary);
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.setting-item:hover:not(.disabled) {
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px var(--shadow);
    transform: translateY(-2px);
}

.setting-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
}

.setting-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.setting-item:hover:not(.disabled) .setting-icon {
    border-color: var(--primary-red);
    box-shadow: 0 0 20px var(--shadow);
}

.setting-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.setting-title {
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.setting-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    min-width: 90px;
    text-align: right;
}

/* Theme Switch Toggle */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 38px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
    border-radius: 34px;
}

.theme-slider:before {
    position: absolute;
    content: "🌙";
    height: 30px;
    width: 30px;
    left: 4px;
    bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    transition: all 0.4s ease;
    border-radius: 50%;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.theme-switch input:checked + .theme-slider {
    background: linear-gradient(45deg, var(--primary-red), var(--accent-red));
    border-color: var(--primary-red);
}

.theme-switch input:checked + .theme-slider:before {
    transform: translateX(32px);
    content: "☀️";
}

.theme-slider:hover {
    box-shadow: 0 0 15px var(--shadow);
}

.theme-switch input:disabled + .theme-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Override for non-theme switches (sounds, notifications, etc.) */
.theme-switch.non-theme-toggle .theme-slider:before {
    content: "✕";
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2rem;
}

.theme-switch.non-theme-toggle input:checked + .theme-slider:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Settings Footer */
.settings-footer {
    padding: 1.5rem 2.5rem;
    border-top: 2px solid var(--border-color);
    background: var(--bg-tertiary);
    border-radius: 0 0 24px 24px;
    text-align: center;
}

.settings-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

/* Scrollbar for settings modal */
.settings-content::-webkit-scrollbar {
    width: 10px;
}

.settings-content::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 10px;
}

.settings-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-red), var(--accent-red));
    border-radius: 10px;
}

.settings-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-red), var(--primary-red));
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .settings-toggle {
        left: 10px;
        bottom: 10px;
    }
    
    .settings-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .settings-header {
        padding: 1.5rem;
    }
    
    .settings-header h3 {
        font-size: 1.5rem;
    }
    
    .settings-body {
        padding: 1.5rem;
    }
    
    .setting-item {
        flex-direction: column;
        gap: 1.2rem;
        align-items: flex-start;
        padding: 1.5rem;
    }
    
    .setting-control {
        width: 100%;
        justify-content: space-between;
    }
    
    .theme-label {
        text-align: left;
    }
    
    .setting-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .setting-title {
        font-size: 1.1rem;
    }
    
    .setting-description {
        font-size: 0.9rem;
    }
    
    .settings-footer {
        padding: 1rem 1.5rem;
    }
}

        /* Main Content */
        .main-content {
            margin-left: 280px;
            padding: 2rem;
            min-height: 100vh;
        }

        .tab-content {
            display: none;
            animation: slideIn 0.5s ease;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes slideIn {
            from { 
                opacity: 0; 
                transform: translateX(30px);
            }
            to { 
                opacity: 1; 
                transform: translateX(0);
            }
        }

        /* Experimental Tabs */
        .nav-item.experimental-tab {
            display: none;
        }

        .nav-item.experimental-tab.show-experimental {
            display: block;
        }

        /* Hero Section */
.hero {
    background: url('./images/5.png') center center / cover no-repeat;
    border-radius: 24px;
    padding: 6rem 3rem;
    text-align: center;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px var(--shadow-dark);
    backdrop-filter: blur(10px);
    position: relative;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    right: 0; bottom: 0;
    border-radius: 24px;
    z-index: 0;
    background: rgba(0, 0, 0, 0.5); /* dark theme default */
    transition: background 0.3s ease;
}

/* Ensure content is above overlay */
.hero h1,
.hero p,
.hero .cta-button {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-red), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.4rem;
    color: white !important; /* Force white in both themes */
    max-width: 900px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}


        .cta-button {
            display: inline-block;
            padding: 1.2rem 2.5rem;
            background: linear-gradient(45deg, var(--primary-red), var(--dark-red));
            color: white;
            text-decoration: none;
            border-radius: 16px;
            font-weight: bold;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px var(--shadow);
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .cta-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .cta-button:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 50px var(--shadow);
            border-color: var(--accent-red);
        }

        .cta-button:hover::before {
            left: 100%;
        }

        /* Cards Grid */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .feature-card {
            background: var(--bg-secondarytwo);
            border-radius: 20px;
            padding: 2.5rem;
            text-align: center;
            border: 1px solid var(--border-color);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(20px);
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 25px 50px var(--shadow);
            border-color: var(--primary-red);
        }

        .feature-card:hover::before {
            transform: scaleX(1);
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary-red), var(--accent-red));
            margin: 0 auto 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
            box-shadow: 0 10px 30px var(--shadow);
        }

        .feature-title {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 1rem;
            color: var(--primary-red);
        }

        .feature-description {
            color: var(--text-secondary);
            line-height: 1.6;
        }
		
		/* Staff Card Hover Preview */
.staff-card-inner {
    position: relative;
    width: 100%;
    height: 280px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

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

.staff-card-front,
.staff-card-back {
    position: absolute;
    width: 100%;
    height: 280px; 
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.staff-card-front {
    background: var(--bg-secondarytwo);
}

.staff-card-back {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    transform: rotateY(180deg);
    justify-content: center;
    border: 2px solid var(--primary-red);
}

.staff-extra-info {
    width: 100%;
}

.staff-info-item {
    margin: 0.8rem 0;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    font-size: 0.9rem;
}

.staff-info-label {
    color: var(--primary-red);
    font-weight: bold;
    display: block;
    margin-bottom: 0.3rem;
}

.staff-info-value {
    color: var(--text-secondary);
}

/* Desktop Search Bar */
.desktop-search-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.desktop-search-input {
    width: 250px;
    padding: 0.8rem 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.desktop-search-input:focus {
    width: 350px;
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px var(--shadow);
}

.desktop-search-input::placeholder {
    color: var(--text-muted);
}

.desktop-search-icon {
    position: absolute;
    right: 30px;
    color: var(--text-muted);
    pointer-events: none;
}

@media (max-width: 768px) {
    .desktop-search-bar {
        display: none;
    }
}

/* Site-wide Search */
.search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 4000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-container.active {
    display: flex;
    opacity: 1;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-box {
    width: 90%;
    max-width: 600px;
    background: var(--bg-secondary);
    border: 2px solid var(--primary-red);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px var(--shadow-dark);
}

.search-input-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 20px var(--shadow);
}

.search-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    color: var(--primary-red);
    transform: translateY(-50%) rotate(90deg);
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    border-color: var(--primary-red);
    transform: translateX(8px);
}

.search-result-title {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.search-result-context {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-result-path {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.search-no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Announcement Banner */
.announcement-banner {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    color: white;
    padding: 1rem 2rem;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px var(--shadow);
    animation: slideDown 0.5s ease;
}

.announcement-banner.show {
    display: flex;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.announcement-icon {
    font-size: 1.5rem;
}

.announcement-text {
    font-weight: 500;
    font-size: 1rem;
}

.announcement-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.breadcrumb-item:hover {
    color: var(--primary-red);
}

.breadcrumb-item.active {
    color: var(--primary-red);
    font-weight: bold;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-red), var(--accent-red));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px var(--shadow);
}

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

/* Rotating Message Bar */
.message-bar {
    position: fixed;
    bottom: 0;
    left: 280px;
    right: 0;
    background: var(--bg-tertiary);
    border-top: 2px solid var(--primary-red);
    padding: 0.8rem 2rem;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -4px 20px var(--shadow-dark);
}

.message-bar-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.message-bar-icon {
    margin-right: 0.5rem;
    color: var(--primary-red);
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--glass-bg);
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-red);
    box-shadow: 0 8px 25px var(--shadow);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1);
}

.mobile-menu-toggle span {
    display: block;
}

.sidebar.mobile-hidden {
    transform: translateX(-100%);
}

/* Mobile Search Button */
.mobile-search-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--glass-bg);
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-red);
    box-shadow: 0 8px 25px var(--shadow);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mobile-search-toggle:hover {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1);
}

/* Keyboard Shortcut Hint */
.keyboard-hint {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background: var(--bg-secondary);
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    z-index: 997;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 8px 25px var(--shadow);
    max-width: 250px;
}

.keyboard-hint.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.keyboard-hint-title {
    color: var(--primary-red);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.keyboard-hint-item {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.keyboard-hint-key {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary-red);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1002;
    }
    
    .sidebar.mobile-active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle,
    .mobile-search-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 80px;
    }
    
    .announcement-banner {
        left: 0;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .message-bar {
        left: 0;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .back-to-top {
        bottom: 70px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .settings-toggle {
        left: 20px;
        bottom: 70px;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .keyboard-hint {
        display: none !important;
    }
    
    .website-credit {
        display: none;
    }
}

        /* Staff Notice Box */
        .staff-notice {
            background: var(--bg-tertiary);
            border: 2px solid var(--primary-red);
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            text-align: center;
        }

        .staff-notice p {
            color: var(--text-secondary);
            font-size: 1rem;
            line-height: 1.6;
            margin: 0;
        }

        /* Staff Roles Dropdown Styling */
        .staff-roles-dropdown {
            margin-bottom: 3rem;
        }

        .staff-role-badge {
            display: inline-block;
            padding: 0.3rem 0.8rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: bold;
            margin-left: 0.5rem;
            color: white;
        }

        /* Role-specific badge colors */
        .role-owner { background: linear-gradient(45deg, #880808, #9702d1); }
        .role-coowner { background: linear-gradient(45deg, #ff8c42, #2e2e38); }
        .role-rac { background: linear-gradient(45deg, #0c0081, #9702d1); }
        .role-admin-leave { background: linear-gradient(45deg, #362d82, #b575cf); }
        .role-staff { background: linear-gradient(45deg, #6bcbff, #899cf0); }
        .role-trainee { background: linear-gradient(45deg, #89cff0, #9fffd5); }
        .role-staff-leave { background: #5e8da8; }
        .role-senior-dev { background: linear-gradient(45deg, #045f21, #1ecc8f); }
        .role-developer { background: linear-gradient(45deg, #00d48a, #00862b); }
        .role-trial-dev { background: linear-gradient(45deg, #369876, #71ff9e); }
        .role-dev-leave { background: #c06e5a; }

        /* Staff member grouping */
        .staff-role-section {
            margin-bottom: 1.5rem;
        }

        .staff-role-header {
            color: var(--primary-red);
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 0.8rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--border-color);
        }

        /* Golden Sparkling Effect */
        .staff-card.sparkle-effect {
            position: relative;
            overflow: visible !important;
        }

        /* Individual sparkles - Behind content with floating motion */
        .staff-card.sparkle-effect .sparkle {
            position: absolute;
            width: 6px;
            height: 6px;
            pointer-events: none;
            animation: sparkleFloat 8s ease-in-out infinite;
            z-index: 10;
        }

        /* Vertical bar */
        .staff-card.sparkle-effect .sparkle::before,
        .staff-card.sparkle-effect .sparkle::after {
            content: "";
            position: absolute;
            background: gold;
            box-shadow: 0 0 6px gold, 0 0 12px gold;
            border-radius: 2px;
        }

        /* Vertical */
        .staff-card.sparkle-effect .sparkle::before {
            width: 2px;
            height: 100%;
            left: 50%;
            top: 0;
            transform: translateX(-50%);
        }

        /* Horizontal */
        .staff-card.sparkle-effect .sparkle::after {
            height: 2px;
            width: 100%;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
        }

        /* Randomized positions - up to 15 sparkles supported */
        .staff-card.sparkle-effect .sparkle:nth-child(1) {
            top: 12%; left: 8%;
            animation-delay: 0s;
            animation-duration: 7.3s;
            animation-name: sparkleFloat1;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(2) {
            top: 67%; left: 88%;
            animation-delay: 0.7s;
            animation-duration: 8.4s;
            animation-name: sparkleFloat2;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(3) {
            top: 35%; left: 5%;
            animation-delay: 1.2s;
            animation-duration: 7.9s;
            animation-name: sparkleFloat3;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(4) {
            top: 78%; left: 92%;
            animation-delay: 1.8s;
            animation-duration: 8.1s;
            animation-name: sparkleFloat4;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(5) {
            top: 23%; left: 94%;
            animation-delay: 2.3s;
            animation-duration: 7.7s;
            animation-name: sparkleFloat5;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(6) {
            top: 85%; left: 15%;
            animation-delay: 2.9s;
            animation-duration: 8.3s;
            animation-name: sparkleFloat6;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(7) {
            top: 44%; left: 72%;
            animation-delay: 0.4s;
            animation-duration: 7.8s;
            animation-name: sparkleFloat1;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(8) {
            top: 56%; left: 33%;
            animation-delay: 1.1s;
            animation-duration: 8.2s;
            animation-name: sparkleFloat2;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(9) {
            top: 18%; left: 61%;
            animation-delay: 1.9s;
            animation-duration: 7.5s;
            animation-name: sparkleFloat3;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(10) {
            top: 91%; left: 48%;
            animation-delay: 2.6s;
            animation-duration: 8.0s;
            animation-name: sparkleFloat4;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(11) {
            top: 29%; left: 41%;
            animation-delay: 0.9s;
            animation-duration: 7.6s;
            animation-name: sparkleFloat5;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(12) {
            top: 62%; left: 19%;
            animation-delay: 1.5s;
            animation-duration: 8.1s;
            animation-name: sparkleFloat6;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(13) {
            top: 7%; left: 76%;
            animation-delay: 2.1s;
            animation-duration: 7.4s;
            animation-name: sparkleFloat1;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(14) {
            top: 74%; left: 54%;
            animation-delay: 2.7s;
            animation-duration: 8.3s;
            animation-name: sparkleFloat2;
        }
        .staff-card.sparkle-effect .sparkle:nth-child(15) {
            top: 39%; left: 27%;
            animation-delay: 0.2s;
            animation-duration: 7.9s;
            animation-name: sparkleFloat3;
        }

        /* Multiple floating animations for variety */
        @keyframes sparkleFloat1 {
            0%, 100% {
                opacity: 0;
                transform: translate(0, 0) scale(0) rotate(0deg);
            }
            25% {
                opacity: 1;
                transform: translate(15px, -20px) scale(1.2) rotate(90deg);
            }
            50% {
                opacity: 0.8;
                transform: translate(-10px, -35px) scale(1) rotate(180deg);
            }
            75% {
                opacity: 1;
                transform: translate(20px, -25px) scale(1.3) rotate(270deg);
            }
        }

        @keyframes sparkleFloat2 {
            0%, 100% {
                opacity: 0;
                transform: translate(0, 0) scale(0) rotate(0deg);
            }
            25% {
                opacity: 0.9;
                transform: translate(-20px, -15px) scale(1.1) rotate(-90deg);
            }
            50% {
                opacity: 1;
                transform: translate(10px, -30px) scale(1.3) rotate(-180deg);
            }
            75% {
                opacity: 0.8;
                transform: translate(-15px, -20px) scale(1) rotate(-270deg);
            }
        }

        @keyframes sparkleFloat3 {
            0%, 100% {
                opacity: 0;
                transform: translate(0, 0) scale(0) rotate(0deg);
            }
            20% {
                opacity: 1;
                transform: translate(25px, -10px) scale(1.2) rotate(60deg);
            }
            40% {
                opacity: 0.9;
                transform: translate(10px, -25px) scale(1.1) rotate(120deg);
            }
            60% {
                opacity: 1;
                transform: translate(-15px, -30px) scale(1.3) rotate(180deg);
            }
            80% {
                opacity: 0.8;
                transform: translate(20px, -15px) scale(1) rotate(240deg);
            }
        }

        @keyframes sparkleFloat4 {
            0%, 100% {
                opacity: 0;
                transform: translate(0, 0) scale(0) rotate(0deg);
            }
            30% {
                opacity: 1;
                transform: translate(-10px, -25px) scale(1.3) rotate(-120deg);
            }
            50% {
                opacity: 0.9;
                transform: translate(15px, -20px) scale(1.1) rotate(-180deg);
            }
            70% {
                opacity: 1;
                transform: translate(-20px, -15px) scale(1.2) rotate(-240deg);
            }
        }

        @keyframes sparkleFloat5 {
            0%, 100% {
                opacity: 0;
                transform: translate(0, 0) scale(0) rotate(0deg);
            }
            25% {
                opacity: 0.8;
                transform: translate(18px, -18px) scale(1.1) rotate(45deg);
            }
            50% {
                opacity: 1;
                transform: translate(-12px, -28px) scale(1.3) rotate(135deg);
            }
            75% {
                opacity: 0.9;
                transform: translate(22px, -22px) scale(1.2) rotate(225deg);
            }
        }

        @keyframes sparkleFloat6 {
            0%, 100% {
                opacity: 0;
                transform: translate(0, 0) scale(0) rotate(0deg);
            }
            20% {
                opacity: 1;
                transform: translate(-18px, -12px) scale(1.2) rotate(-75deg);
            }
            40% {
                opacity: 0.8;
                transform: translate(12px, -32px) scale(1.3) rotate(-150deg);
            }
            60% {
                opacity: 1;
                transform: translate(-22px, -18px) scale(1.1) rotate(-225deg);
            }
            80% {
                opacity: 0.9;
                transform: translate(15px, -25px) scale(1.2) rotate(-300deg);
            }
        }

        /* Staff Section */
        .staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    justify-content: center; /* Centers items when fewer are present */
    max-width: 100%;
    margin: 2rem auto;
}

.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    background: var(--bg-secondarytwo); /* still needed! */
    border: 2px solid transparent;   /* transparent, but space still reserved */
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
	min-height: 280px;
}

.staff-role {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    white-space: nowrap; /* Prevents text wrapping */
    font-size: 0.85rem; /* Slightly smaller font */
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
    z-index: 1;
}


        .staff-divider {
           grid-column: 1 / -1; /* Forces full width inside the grid */
           height: 2px;
           background: linear-gradient(to right, transparent, var(--primary-red), transparent);
            margin: 2rem 0;
        }

        .staff-card:hover {
            transform: translateY(-10px);
            border-color: var(--primary-red);
        }

        .staff-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: var(--bg-tertiary);
            margin-bottom: 1rem;
            border: 4px solid transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: var(--text-muted);
        }

        .staff-avatar-img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 4px solid transparent;
            object-fit: cover;
            margin-bottom: 1rem;
        }

        .staff-name {
            font-size: 1.4rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: var(--primary-red);
        }

        .staff-designation {
            font-size: 1.0rem;
            font-style: italic;
            margin-bottom: 1rem;
        }

        .staff-role {
            color: var(--text-secondary);
            font-size: 1rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

/* OWNER */
.staff-card.owner .staff-avatar,
.staff-card.owner .staff-avatar-img {
    border: 6px solid;
    border-color: #880808;
    animation: owner-border 3s linear infinite;
    transition: border-width 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.owner {
    border: 4px solid #880808;
    animation: owner-border 3s linear infinite;
    transition: border-width 0.15s ease, padding 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.owner:hover {
    border-width: 6px;
    padding: calc(2rem - 2px);
}
.staff-card.owner:hover .staff-avatar,
.staff-card.owner:hover .staff-avatar-img {
    border-width: 8px;
}
@keyframes owner-border {
    0%, 100% { border-color: #880808; }
    50% { border-color: #9702d1; }
}

/* WORSEOWNER */
.staff-card.worseowner .staff-avatar,
.staff-card.worseowner .staff-avatar-img {
    border: 6px solid;
    border-color: #ff8c42;
    animation: worseowner-border 3s linear infinite;
    transition: border-width 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.worseowner {
    border: 4px solid #ff8c42;
    animation: worseowner-border 3s linear infinite;
    transition: border-width 0.15s ease, padding 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.worseowner:hover {
    border-width: 6px;
    padding: calc(2rem - 2px);
}
.staff-card.worseowner:hover .staff-avatar,
.staff-card.worseowner:hover .staff-avatar-img {
    border-width: 8px;
}
@keyframes worseowner-border {
    0%, 100% { border-color: #ff8c42; }
    50% { border-color: #2e2e38; }
}

/* REGIONAL ADMINISTRATIVE COMMAND */
.staff-card.rac .staff-avatar,
.staff-card.rac .staff-avatar-img {
    border: 6px solid;
    border-color: #0c0081;
    animation: rac-border 3s linear infinite;
    transition: border-width 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.rac {
    border: 4px solid #0c0081;
    animation: rac-border 3s linear infinite;
    transition: border-width 0.15s ease, padding 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.rac:hover {
    border-width: 6px;
    padding: calc(2rem - 2px);
}
.staff-card.rac:hover .staff-avatar,
.staff-card.rac:hover .staff-avatar-img {
    border-width: 8px;
}
@keyframes rac-border {
    0%, 100% { border-color: #0c0081; }
    50% { border-color: #9702d1; }
}

/* HOSTER */
.staff-card.hoster .staff-avatar,
.staff-card.hoster .staff-avatar-img {
    border: 6px solid;
    border-color: #6bcbff;
    animation: hoster-border 3s linear infinite;
    transition: border-width 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.hoster {
    border: 4px solid #6bcbff;
    animation: hoster-border 3s linear infinite;
    transition: border-width 0.15s ease, padding 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.hoster:hover {
    border-width: 6px;
    padding: calc(2rem - 2px);
}
.staff-card.hoster:hover .staff-avatar,
.staff-card.hoster:hover .staff-avatar-img {
    border-width: 8px;
}
@keyframes hoster-border {
    0%, 100% { border-color: #6bcbff; }
    50% { border-color: #899cf0; }
}

/* TRIAL HOSTER */
.staff-card.trialhoster .staff-avatar,
.staff-card.trialhoster .staff-avatar-img {
    border: 6px solid;
    border-color: #89cff0;
    animation: trialhoster-border 3s linear infinite;
    transition: border-width 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.trialhoster {
    border: 4px solid #89cff0;
    animation: trialhoster-border 3s linear infinite;
    transition: border-width 0.15s ease, padding 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.trialhoster:hover {
    border-width: 6px;
    padding: calc(2rem - 2px);
}
.staff-card.trialhoster:hover .staff-avatar,
.staff-card.trialhoster:hover .staff-avatar-img {
    border-width: 8px;
}
@keyframes trialhoster-border {
    0%, 100% { border-color: #89cff0; }
    50% { border-color: #9fffd5; }
}

/* SENIORDEVELOPER */
.staff-card.seniordeveloper .staff-avatar,
.staff-card.seniordeveloper .staff-avatar-img {
    border: 6px solid;
    border-color: #045f21;
    animation: seniordeveloper-border 3s linear infinite;
    transition: border-width 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.seniordeveloper {
    border: 4px solid #045f21;
    animation: seniordeveloper-border 3s linear infinite;
    transition: border-width 0.15s ease, padding 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.seniordeveloper:hover {
    border-width: 6px;
    padding: calc(2rem - 2px);
}
.staff-card.seniordeveloper:hover .staff-avatar,
.staff-card.seniordeveloper:hover .staff-avatar-img {
    border-width: 8px;
}
@keyframes seniordeveloper-border {
    0%, 100% { border-color: #045f21; }
    50% { border-color: #1ecc8f; }
}

/* DEVELOPER */
.staff-card.developer .staff-avatar,
.staff-card.developer .staff-avatar-img {
    border: 6px solid;
    border-color: #00d48a;
    animation: developer-border 3s linear infinite;
    transition: border-width 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.developer {
    border: 4px solid #00d48a;
    animation: developer-border 3s linear infinite;
    transition: border-width 0.15s ease, padding 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.developer:hover {
    border-width: 6px;
    padding: calc(2rem - 2px);
}
.staff-card.developer:hover .staff-avatar,
.staff-card.developer:hover .staff-avatar-img {
    border-width: 8px;
}
@keyframes developer-border {
    0%, 100% { border-color: #00d48a; }
    50% { border-color: #00862b; }
}

/* TRIAL DEVELOPER */
.staff-card.trialdeveloper .staff-avatar,
.staff-card.trialdeveloper .staff-avatar-img {
    border: 6px solid;
    border-color: #369876;
    animation: trialdeveloper-border 3s linear infinite;
    transition: border-width 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.trialdeveloper {
    border: 4px solid #369876;
    animation: trialdeveloper-border 3s linear infinite;
    transition: border-width 0.15s ease, padding 0.15s ease;
    box-shadow: 0 0 0 1px black;
}
.staff-card.trialdeveloper:hover {
    border-width: 6px;
    padding: calc(2rem - 2px);
}
.staff-card.trialdeveloper:hover .staff-avatar,
.staff-card.trialdeveloper:hover .staff-avatar-img {
    border-width: 8px;
}
@keyframes trialdeveloper-border {
    0%, 100% { border-color: #369876; }
    50% { border-color: #71ff9e; }
}

/* Related Servers Section */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.server-card {
    background: var(--bg-secondarytwo);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.server-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px var(--shadow);
    border-color: var(--primary-red);
}

.server-card:hover::before {
    transform: scaleX(1);
}

.server-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-red), var(--accent-red));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--shadow);
    overflow: hidden;
}

.server-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.server-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.server-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--primary-red), var(--dark-red));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px var(--shadow);
    border: 2px solid transparent;
    margin-top: auto;
}

.server-link:hover:not([style*="cursor: not-allowed"]) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--shadow);
    border-color: var(--accent-red);
}

.website-credit {
    position: fixed;
    bottom: 60px; /* Changed from 20px to sit above message bar */
    left: 50%;
    margin-left: 140px;
    transform: translateX(-50%);
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #9ca3af;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: all 0.3s ease;
}

[data-theme="light"] .website-credit {
    color: #374151;
    background: rgba(255, 255, 255, 0.7);
}

.website-credit:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    border-color: #6b7280;
    color: #6b7280;
}

[data-theme="light"] .website-credit:hover {
    color: #1f2937;
}

.website-credit strong {
    color: #6b7280;
    font-weight: bold;
}

[data-theme="light"] .website-credit strong {
    color: #1f2937;
}

@media (max-width: 768px) {
    .website-credit {
        bottom: 50px; /* Adjust for mobile */
        left: 50%;
        margin-left: 0;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}


        /* Rules Section */
        .rules-container {
            background: var(--glass-bg);
            border-radius: 24px;
            padding: 3rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 20px 60px var(--shadow-dark);
            backdrop-filter: blur(20px);
        }

        .rule-item {
            background: var(--bg-secondarytwo);
            margin-bottom: 1.5rem;
            padding: 2rem;
            border-radius: 16px;
            border-left: 4px solid var(--primary-red);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .rule-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, var(--primary-red), var(--accent-red));
        }

        .rule-item:hover {
            transform: translateX(12px);
            box-shadow: 0 8px 25px var(--shadow);
            border-left-color: var(--accent-red);
        }

        .rule-number {
            color: var(--primary-red);
            font-weight: bold;
            font-size: 1.2rem;
            margin-bottom: 0.8rem;
        }

        .rule-item p {
            line-height: 1.6;
            color: var(--text-secondary);
        }
.rule-section {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow);
}

.rule-header {
    position: relative;
    cursor: pointer;
    height: 250px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s ease;
}

.rule-header:hover {
    filter: brightness(0.85);
}

.rule-header h3 {
    position: relative;
    font-size: 2.4rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    z-index: 1;
}

.rule-body {
    display: none;
    background: var(--glass-bg);
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.rule-body.open {
    display: block;
}

.rule-grid {
    display: flex;
    flex-direction: column;
    align-items: center;         /* Center rule cards */
    gap: 2rem;
}

.rule-section:has(.rule-body.open) {
    grid-column: span 2;
}

.theme-toast {
    position: absolute;
    bottom: 90px; /* place above theme toggle */
    left: 20px;
    right: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--primary-red);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 8px 20px var(--shadow);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.theme-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-8px);
}

        /* Mobile Responsive */
        @media (max-width: 768px) {
    .settings-toggle {
        left: 10px;
        bottom: 10px;
    }
    
    .settings-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .settings-header {
        padding: 1rem 1.5rem;
    }
    
    .settings-body {
        padding: 1rem;
    }
    
    .setting-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .theme-switch {
        align-self: flex-end;
    }
}
		
		/* Department Owner Cards */
.dept-owner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-secondarytwo);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.dept-owner-card .staff-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    transition: border-width 0.15s ease;
    box-shadow: 0 0 0 1px black;
}

.dept-owner-card .staff-name {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.dept-owner-card .dept-title {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Security Department - #4b7c99 & #0b1a22 */
.dept-owner-card.dept-security .staff-avatar-img {
    border: 6px solid #0b1a22;
    animation: dept-security-border 3s linear infinite;
}
.dept-owner-card.dept-security {
    border: 4px solid #0b1a22;
    animation: dept-security-border 3s linear infinite;
    box-shadow: 0 0 0 1px black;
}
.dept-owner-card.dept-security .staff-name,
.dept-owner-card.dept-security .dept-title {
    color: #4b7c99;
}
@keyframes dept-security-border {
    0%, 100% { border-color: #0b1a22; }
    50% { border-color: #2f4a5c; }
}

/* Human Resources Department - #8a70bc */
.dept-owner-card.dept-hr .staff-avatar-img {
    border: 6px solid #332755;
    animation: dept-hr-border 3s linear infinite;
}
.dept-owner-card.dept-hr {
    border: 4px solid #332755;
    animation: dept-hr-border 3s linear infinite;
    box-shadow: 0 0 0 1px black;
}
.dept-owner-card.dept-hr .staff-name,
.dept-owner-card.dept-hr .dept-title {
    color: #9a86e3;
}
@keyframes dept-hr-border {
    0%, 100% { border-color: #332755; }
    50% { border-color: #9a86e3; }
}

/* Research Department - #a1c9c3 */
.dept-owner-card.dept-research .staff-avatar-img {
    border: 6px solid #4d7a6d;
    animation: dept-research-border 3s linear infinite;
}
.dept-owner-card.dept-research {
    border: 4px solid #4d7a6d;
    animation: dept-research-border 3s linear infinite;
    box-shadow: 0 0 0 1px black;
}
.dept-owner-card.dept-research .staff-name,
.dept-owner-card.dept-research .dept-title {
    color: #bae6dc;
}
@keyframes dept-research-border {
    0%, 100% { border-color: #4d7a6d; }
    50% { border-color: #bae6dc; }
}

/* Facility Services Department - #e67e73 & #4b140f */
.dept-owner-card.dept-facilities .staff-avatar-img {
    border: 6px solid #4b140f;
    animation: dept-facilities-border 3s linear infinite;
}
.dept-owner-card.dept-facilities {
    border: 4px solid #4b140f;
    animation: dept-facilities-border 3s linear infinite;
    box-shadow: 0 0 0 1px black;
}
.dept-owner-card.dept-facilities .staff-name,
.dept-owner-card.dept-facilities .dept-title {
    color: #e67e73;
}
@keyframes dept-facilities-border {
    0%, 100% { border-color: #4b140f; }
    50% { border-color: #f18076; }
}

/* Medical Department - #8eddb0 & #145c3a */
.dept-owner-card.dept-medical .staff-avatar-img {
    border: 6px solid #145c3a;
    animation: dept-medical-border 3s linear infinite;
}
.dept-owner-card.dept-medical {
    border: 4px solid #145c3a;
    animation: dept-medical-border 3s linear infinite;
    box-shadow: 0 0 0 1px black;
}
.dept-owner-card.dept-medical .staff-name,
.dept-owner-card.dept-medical .dept-title {
    color: #8eddb0;
}
@keyframes dept-medical-border {
    0%, 100% { border-color: #145c3a; }
    50% { border-color: #6fcf97; }
}

/* Engineering Department - #7a7d82 & #1b1c1f */
.dept-owner-card.dept-engineering .staff-avatar-img {
    border: 6px solid #1b1c1f;
    animation: dept-engineering-border 3s linear infinite;
}
.dept-owner-card.dept-engineering {
    border: 4px solid #1b1c1f;
    animation: dept-engineering-border 3s linear infinite;
    box-shadow: 0 0 0 1px black;
}
.dept-owner-card.dept-engineering .staff-name,
.dept-owner-card.dept-engineering .dept-title {
    color: #7a7d82;
}
@keyframes dept-engineering-border {
    0%, 100% { border-color: #1b1c1f; }
    50% { border-color: #6b6e73; }
}

/* Department-Specific Themed Sections */
.dept-themed-container {
    background: var(--glass-bg);
    border-radius: 24px;
    padding: 3rem;
    border: 2px solid;
    box-shadow: 0 20px 60px var(--shadow-dark);
    backdrop-filter: blur(20px);
    margin-top: 2rem;
}

/* Security themed */
.dept-themed-container.security-theme {
    border-color: #4b7c99;
    box-shadow: 0 0 30px rgba(75, 124, 153, 0.3);
}
.dept-themed-container.security-theme h3 {
    color: #4b7c99;
}

/* HR themed */
.dept-themed-container.hr-theme {
    border-color: #8a70bc;
    box-shadow: 0 0 30px rgba(138, 112, 188, 0.3);
}
.dept-themed-container.hr-theme h3 {
    color: #9a86e3;
}

/* Research themed */
.dept-themed-container.research-theme {
    border-color: #a1c9c3;
    box-shadow: 0 0 30px rgba(161, 201, 195, 0.3);
}
.dept-themed-container.research-theme h3 {
    color: #bae6dc;
}

/* Facility Services themed */
.dept-themed-container.facilities-theme {
    border-color: #e67e73;
    box-shadow: 0 0 30px rgba(230, 126, 115, 0.3);
}
.dept-themed-container.facilities-theme h3 {
    color: #e67e73;
}

/* Medical themed */
.dept-themed-container.medical-theme {
    border-color: #8eddb0;
    box-shadow: 0 0 30px rgba(142, 221, 176, 0.3);
}
.dept-themed-container.medical-theme h3 {
    color: #8eddb0;
}

/* Engineering themed */
.dept-themed-container.engineering-theme {
    border-color: #7a7d82;
    box-shadow: 0 0 30px rgba(122, 125, 130, 0.3);
}
.dept-themed-container.engineering-theme h3 {
    color: #7a7d82;
}

/* Department Member Dropdown */
.dept-member-dropdown {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.dept-member-dropdown:hover {
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px var(--shadow);
}

.dept-member-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.dept-member-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
}

.dept-member-count {
    background: var(--primary-red);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
}

.dept-member-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.dept-member-dropdown.open .dept-member-arrow {
    transform: rotate(180deg);
}

.dept-member-list {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.dept-member-dropdown.open .dept-member-list {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.dept-member-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.dept-member-item:hover {
    border-color: var(--primary-red);
    transform: translateX(8px);
    box-shadow: 0 4px 15px var(--shadow);
}

.dept-member-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    object-fit: cover;
}

.dept-member-info {
    flex: 1;
}

.dept-member-name {
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1rem;
}

.dept-member-username {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dept-member-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.dept-member-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.dept-member-error {
    text-align: center;
    padding: 1.5rem;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
}

/* Department Links Section */
.dept-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dept-link-card {
    background: var(--bg-secondarytwo);
    border: 2px solid;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.dept-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow);
}

.dept-link-card h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.dept-link-card a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.dept-link-card a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px var(--shadow);
}

/* Security links */
.dept-link-card.security-link {
    border-color: #4b7c99;
}
.dept-link-card.security-link h4 {
    color: #4b7c99;
}
.dept-link-card.security-link a {
    background: linear-gradient(45deg, #0b1a22, #4b7c99);
}

/* Facility Services links */
.dept-link-card.facilities-link {
    border-color: #e67e73;
}
.dept-link-card.facilities-link h4 {
    color: #e67e73;
}
.dept-link-card.facilities-link a {
    background: linear-gradient(45deg, #4b140f, #e67e73);
}

/* Medical links */
.dept-link-card.medical-link {
    border-color: #8eddb0;
}
.dept-link-card.medical-link h4 {
    color: #8eddb0;
}
.dept-link-card.medical-link a {
    background: linear-gradient(45deg, #145c3a, #8eddb0);
}

/* Engineering links */
.dept-link-card.engineering-link {
    border-color: #7a7d82;
}
.dept-link-card.engineering-link h4 {
    color: #7a7d82;
}
.dept-link-card.engineering-link a {
    background: linear-gradient(45deg, #1b1c1f, #7a7d82);
}

.dept-banner {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    box-shadow: 0 10px 30px var(--shadow);
}

.dept-banner h2 {
    font-size: 3rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1rem 2rem;
    border-radius: 12px;
}

/* Department-specific banner borders */
.dept-banner.security-banner { border-color: #4b7c99; }
.dept-banner.hr-banner { border-color: #8a70bc; }
.dept-banner.research-banner { border-color: #a1c9c3; }
.dept-banner.facilities-banner { border-color: #e67e73; }
.dept-banner.medical-banner { border-color: #8eddb0; }
.dept-banner.engineering-banner { border-color: #7a7d82; }

/* Department page title colors */
.dept-page-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.dept-page-title.security-color { color: #4b7c99; }
.dept-page-title.hr-color { color: #9a86e3; }
.dept-page-title.research-color { color: #bae6dc; }
.dept-page-title.facilities-color { color: #e67e73; }
.dept-page-title.medical-color { color: #8eddb0; }
.dept-page-title.engineering-color { color: #7a7d82; }

/* Discord Feed Styles */
.discord-feed-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding: 1rem;
    scroll-behavior: smooth; /* ADD THIS LINE */
}

.discord-message {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease;
}

.discord-message:hover {
    border-color: var(--primary-red);
    transform: translateX(8px);
    box-shadow: 0 8px 25px var(--shadow);
}

.discord-message-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.discord-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 10px var(--shadow);
}

.discord-message-content u {
    text-decoration: underline;
    text-decoration-color: var(--text-secondary);
}

.discord-author {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.1rem;
}

.discord-timestamp {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: auto;
}

.discord-message-content {
    color: var(--text-secondary);
    line-height: 1.6;
    word-wrap: break-word;
	white-space: pre-wrap;
}

.discord-attachment {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.discord-attachment img {
    max-width: 100%;
    height: auto;
    display: block;
}

.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.refresh-button {
    display: block;
    margin: 0 auto;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary-red), var(--dark-red));
    color: white;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--shadow);
    border-color: var(--accent-red);
}

.error-message {
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid #dc2626;
    color: #dc2626;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

/* Discord Markdown Styling */
.discord-message-content strong {
    font-weight: bold;
    color: var(--text-primary);
}

.discord-message-content em {
    font-style: italic;
}

.discord-message-content del {
    text-decoration: line-through;
    opacity: 0.7;
}

.discord-message-content code {
    background: var(--bg-primary);
    color: var(--primary-red);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.discord-message-content pre {
    background: #2b2d31 !important;
    border: 1px solid #1e1f22 !important;
    border-radius: 4px;
    padding: 0.5rem !important;
    overflow-x: auto;
    margin: 0.5rem 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Prevent Prism from overriding ANSI colors */
.discord-message-content code.language-ansi * {
    color: inherit !important;
    background: inherit !important;
}

.discord-message-content pre code {
    background: transparent !important;
    color: inherit !important;
    padding: 1rem !important;
    font-size: 0.85em;
    line-height: 1.5;
    display: block;
    overflow-x: auto;
}

/* Prism Theme Overrides */
.discord-message-content pre[class*="language-"] {
    margin: 0.5rem 0;
    padding: 0;
    background: #272822 !important;
}

.discord-message-content code[class*="language-"] {
    background: transparent;
    text-shadow: none;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Light mode adjustments for code blocks */
[data-theme="light"] .discord-message-content pre {
    background: #f5f5f5 !important;
    border-color: #d1d5db;
}

[data-theme="light"] .discord-message-content pre[class*="language-"] {
    background: #f5f5f5 !important;
}

[data-theme="light"] .discord-message-content code {
    background: #e5e7eb;
    color: #dc2626;
}

.discord-message-content .spoiler {
    background: var(--bg-primary);
    color: transparent;
    border-radius: 4px;
    padding: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.discord-message-content .spoiler:hover {
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}

.discord-message-content a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.2s ease;
}

.discord-message-content a:hover {
    text-decoration: underline;
    color: var(--accent-red);
}

/* Custom Discord-accurate syntax highlighting */
.discord-message-content pre[class*="language-"] {
    background: #2b2d31 !important;
    border: 1px solid #1e1f22 !important;
}

.discord-message-content code[class*="language-"] {
    color: #dbdee1 !important;
    text-shadow: none !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
}

/* Keywords - purple/pink like Discord */
.discord-message-content .token.keyword,
.discord-message-content .token.control,
.discord-message-content .token.directive,
.discord-message-content .token.unit {
    color: #ff7b72 !important;
}

/* Function names - yellow */
.discord-message-content .token.function {
    color: #d2a8ff !important;
}

/* Strings - green */
.discord-message-content .token.string,
.discord-message-content .token.attr-value {
    color: #a5d6ff !important;
}

/* Numbers - light blue/cyan */
.discord-message-content .token.number,
.discord-message-content .token.boolean,
.discord-message-content .token.constant {
    color: #79c0ff !important;
}

/* Comments - gray */
.discord-message-content .token.comment,
.discord-message-content .token.prolog,
.discord-message-content .token.doctype,
.discord-message-content .token.cdata {
    color: #8b949e !important;
    font-style: italic !important;
}

/* Operators and punctuation */
.discord-message-content .token.operator,
.discord-message-content .token.punctuation {
    color: #ff7b72 !important;
}

/* Class names - yellow/gold */
.discord-message-content .token.class-name,
.discord-message-content .token.builtin {
    color: #ffa657 !important;
}

/* Variables and properties - light blue */
.discord-message-content .token.property,
.discord-message-content .token.variable {
    color: #79c0ff !important;
}

/* Tags (HTML/JSX) - green */
.discord-message-content .token.tag {
    color: #7ee787 !important;
}

/* Attributes - light blue */
.discord-message-content .token.attr-name {
    color: #79c0ff !important;
}

/* Python specific - def, return keywords */
.discord-message-content .token.keyword.def,
.discord-message-content .token.keyword.return {
    color: #ff7b72 !important;
}

/* Light mode Discord colors (if you want them) */
[data-theme="light"] .discord-message-content pre[class*="language-"] {
    background: #f2f3f5 !important;
    border-color: #e3e5e8 !important;
}

[data-theme="light"] .discord-message-content code[class*="language-"] {
    color: #2e3338 !important;
}

[data-theme="light"] .discord-message-content .token.keyword,
[data-theme="light"] .discord-message-content .token.operator {
    color: #0550ae !important;
}

[data-theme="light"] .discord-message-content .token.function {
    color: #8250df !important;
}

[data-theme="light"] .discord-message-content .token.string {
    color: #0a3069 !important;
}

[data-theme="light"] .discord-message-content .token.number,
[data-theme="light"] .discord-message-content .token.boolean {
    color: #0550ae !important;
}

[data-theme="light"] .discord-message-content .token.comment {
    color: #6e7781 !important;
}