/* ============================================
   UNIVERSITY COURSE FILTER - DARK THEME
   Modern, Glossy, Responsive Design
   ============================================ */

/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Disable text selection on sensitive UI elements */
.password-toggle,
button,
.toggle-switch,
.Btn,
.export-btn-new {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Prevent context menu on images */
img {
    -webkit-touch-callout: none;
}

:root {
    /* Dark Theme Colors */
    --bg-primary: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --accent-primary: #6c63ff;
    --accent-secondary: #4ecdc4;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --border-color: #2d2d44;
    --shadow-light: rgba(108, 99, 255, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --gradient-1: linear-gradient(135deg, #6c63ff 0%, #4ecdc4 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --error-color: #ef4444;
    --success-color: #10b981;
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 80px;
}

/* ===== HEADER ===== */
header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px var(--shadow-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nav-brand:hover .nav-logo {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(108, 99, 255, 0.5));
}

header h1 {
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0;
    transition: all 0.3s ease;
}

.nav-brand:hover h1 {
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-desktop {
    display: flex;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

nav a svg {
    transition: transform 0.3s ease;
}

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

nav a:hover svg {
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--accent-primary);
    font-weight: 600;
}

nav a.logout-link {
    color: var(--error-color);
}

nav a.logout-link:hover {
    color: #f87171;
}

/* ===== HAMBURGER MENU (Animated Toggle) ===== */
#checkbox {
    display: none;
}

.toggle {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition-duration: .5s;
    z-index: 1001;
}

.bars {
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #6c63ff 0%, #4ecdc4 100%);
    border-radius: 4px;
    transition: all 0.5s ease;
}

#bar1,
#bar3 {
    width: 70%;
}

#checkbox:checked + .toggle .bars {
    position: absolute;
    transition-duration: .5s;
}

#checkbox:checked + .toggle #bar2 {
    transform: scaleX(0);
    transition-duration: .5s;
}

#checkbox:checked + .toggle #bar1 {
    width: 100%;
    transform: rotate(45deg);
    transition-duration: .5s;
}

#checkbox:checked + .toggle #bar3 {
    width: 100%;
    transform: rotate(-45deg);
    transition-duration: .5s;
}

#checkbox:checked + .toggle {
    transition-duration: .5s;
    transform: rotate(180deg);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

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

.mobile-menu a {
    padding: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(22, 33, 62, 0.7), rgba(26, 26, 46, 0.7));
    border: 1px solid rgba(108, 99, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: linear-gradient(145deg, rgba(108, 99, 255, 0.25), rgba(78, 205, 196, 0.15));
    border-color: var(--accent-primary);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-menu a.logout-link {
    color: var(--error-color);
    border-color: rgba(239, 68, 68, 0.3);
}

.mobile-menu a.logout-link:hover {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.1));
    border-color: var(--error-color);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-menu a svg {
    transition: all 0.3s ease;
}

.mobile-menu a:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ===== LOGIN PAGE - GLASSY EFFECT ===== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

/* ===== LOGIN CARD STROKE EFFECT (Hidden by Default) ===== */
.login-card-stroke {
    width: 100%;
    max-width: 440px;
    background-image: linear-gradient(163deg, #6c63ff 0%, #4ecdc4 100%);
    border-radius: 24px;
    padding: 0px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInScale 0.5s ease;
}

.login-card-stroke:hover {
    padding: 4px;
    box-shadow: 0px 0px 30px 1px rgba(108, 99, 255, 0.5);
}

.login-box {
    background: #1a1a2e;
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.login-card-stroke:hover .login-box {
    border-radius: 22px;
    transform: scale(0.995);
}

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

.login-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--shadow-light);
}

/* ===== PASSWORD INPUT WITH TOGGLE ===== */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 6px;
}

.password-toggle:hover {
    color: var(--accent-primary);
    background: rgba(108, 99, 255, 0.1);
}

.password-toggle .eye-icon,
.password-toggle .eye-off-icon {
    transition: all 0.3s ease;
}

.password-toggle .hidden {
    display: none;
}

/* ===== BUTTONS - ENHANCED GLASSY EFFECT ===== */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

/* ===== FETCH COURSES BUTTON (Gradient with Pulse) ===== */
.btn-fetch-courses {
    border: none;
    color: #fff;
    background: linear-gradient(90deg, #0400ff, #4ce3f7);
    background-size: 200% auto;
    border-radius: 20px;
    font-family: inherit;
    font-size: 17px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(4, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-fetch-courses:hover {
    background-position: right center;
    animation: pulse512 1.5s infinite;
}

.btn-fetch-courses:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
}

@keyframes pulse512 {
    0% { box-shadow: 0 0 0 0 #05bada66; }
    70% { box-shadow: 0 0 0 10px rgb(218 103 68 / 0%); }
    100% { box-shadow: 0 0 0 0 rgb(218 103 68 / 0%); }
}

/* ===== DOWNLOAD & REFRESH BUTTONS (Custom Design) ===== */
.Btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: rgb(27, 27, 27);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition-duration: .3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.11);
}

.svgIcon {
    fill: rgb(214, 178, 255);
}

.refresh-icon {
    stroke: rgb(214, 178, 255);
    fill: none;
    transition: all 0.3s ease;
}

.icon2 {
    width: 18px;
    height: 5px;
    border-bottom: 2px solid rgb(182, 143, 255);
    border-left: 2px solid rgb(182, 143, 255);
    border-right: 2px solid rgb(182, 143, 255);
}

.tooltip {
    position: absolute;
    right: -105px;
    opacity: 0;
    background-color: rgb(12, 12, 12);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition-duration: .2s;
    pointer-events: none;
    letter-spacing: 0.5px;
    z-index: 100;
    white-space: nowrap;
}

.tooltip::before {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    background-color: rgb(12, 12, 12);
    transform: rotate(45deg);
    left: -5%;
    transition-duration: .3s;
}

.Btn:hover .tooltip {
    opacity: 1;
}

.Btn:hover {
    background-color: rgb(150, 94, 255);
}

.Btn:hover .icon2 {
    border-color: #fff;
}

.Btn:hover .svgIcon {
    fill: #fff;
}

.Btn:hover .refresh-icon {
    stroke: #fff;
}

/* ===== REFRESH BUTTON (MATCHES EXPORT STYLE) ===== */
.refresh-Btn.refreshing .refresh-icon {
    animation: spin 2s linear infinite;
}

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

/* Action buttons alignment */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: row !important;
        gap: 0.75rem;
    }
}

/* ===== USER PROFILE LOGIN BUTTON ===== */
.user-profile {
    width: 100%;
    max-width: 170px;
    height: 51px;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s ease;
    background: linear-gradient(to bottom right, #6c63ff 0%, rgba(108, 99, 255, 0) 30%);
    background-color: rgba(108, 99, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0 auto;
}

.user-profile:hover,
.user-profile:focus {
    background-color: rgba(108, 99, 255, 0.7);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.6);
    outline: none;
}

.user-profile:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.user-profile.loading-state {
    animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(108, 99, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(108, 99, 255, 0.9);
    }
}

.user-profile-inner {
    width: calc(100% - 4px);
    height: 47px;
    border-radius: 13px;
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #fff;
    font-weight: 600;
}

.user-profile-inner svg {
    width: 27px;
    height: 27px;
    fill: #fff;
}

.user-profile-inner p {
    margin: 0;
    font-size: 1rem;
}

/* ===== HERO BUTTONS (LET'S GO & LEARN MORE) ===== */
.Btn-Container.hero-btn {
    display: flex;
    width: 180px;
    height: 55px;
    background-color: #1a1a2e;
    border-radius: 40px;
    box-shadow: 0px 5px 15px rgba(108, 99, 255, 0.4);
    justify-content: space-between;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 5px;
}

.Btn-Container.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 20px rgba(108, 99, 255, 0.5);
}

.icon-Container {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6c63ff 0%, #4ecdc4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #1a1a2e;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.icon-info {
    background: linear-gradient(135deg, #4ecdc4 0%, #6c63ff 100%);
}

.Btn-Container.hero-btn .text {
    flex: 1;
    color: white;
    font-size: 1.1em;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 0 10px;
}

.Btn-Container.hero-btn:hover .icon-Container {
    transform: rotate(90deg);
}

.Btn-Container.hero-btn:hover .icon-Container svg {
    animation: arrow 1s linear infinite;
}

.learn-more-btn .icon-Container svg {
    stroke: white;
    fill: none;
}

@keyframes arrow {
    0% {
        opacity: 0;
        margin-left: 0;
    }
    100% {
        opacity: 1;
        margin-left: 10px;
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn > * {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(108, 99, 255, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
}

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

.btn-secondary {
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(108, 99, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(26, 26, 46, 0.95);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-full {
    width: 100%;
}

.btn-export {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-export:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ===== CARDS - GLASSY EFFECT ===== */
.card {
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

.card:hover {
    border-color: rgba(108, 99, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ===== INITIAL SELECTION & COURSES SECTION ===== */
.initial-selection-section {
    animation: fadeIn 0.5s ease;
}

.courses-section {
    animation: fadeIn 0.2s ease;
}

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

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ===== DASHBOARD ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.filter-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.filter-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-bar input {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-bar input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--shadow-light);
}

/* ===== TABLES - GLASSY EFFECT ===== */
.table-container {
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(15, 15, 30, 0.5);
}

/* Custom scrollbar for table */
.table-wrapper::-webkit-scrollbar {
    height: 10px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: rgba(15, 15, 30, 0.5);
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6c63ff 0%, #4ecdc4 100%);
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a52d5 0%, #3db8ae 100%);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

@media (min-width: 768px) {
    table {
        min-width: 800px;
    }
}

thead {
    background: var(--bg-secondary);
}

thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(108, 99, 255, 0.3);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

@media (max-width: 768px) {
    thead th {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }
}

tbody tr {
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(108, 99, 255, 0.08) 0%, rgba(78, 205, 196, 0.05) 100%);
    box-shadow: -4px 0 0 rgba(108, 99, 255, 0.3),
                0 2px 8px rgba(108, 99, 255, 0.2);
    transform: scale(1.003) translateX(2px);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
}

tbody td strong {
    color: #ffffff;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

footer a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

.text-error {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.text-success {
    color: var(--success-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

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

/* Pulse animation for loading states */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== FILTERS GRID ===== */
.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: end;
}

/* Small Mobile: 480px+ */
@media (min-width: 480px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
    .filters-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

/* Large Desktop: 1280px+ */
@media (min-width: 1280px) {
    .filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-select {
    padding: 0.75rem 1rem;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c63ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.filter-select:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.filter-select:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.3),
                0 6px 20px rgba(108, 99, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filter-select option {
    background: #1a1a2e;
    color: var(--text-primary);
    padding: 0.5rem;
}

/* ===== NEO TOGGLE SWITCH ===== */
/* ===== FILTER ACTIONS ROW (Toggle + Export Aligned) ===== */
.filter-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    flex-wrap: nowrap;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-label {
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 2px solid rgba(108, 99, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.4),
                inset -2px -2px 6px rgba(255, 255, 255, 0.05),
                0 4px 8px rgba(0, 0, 0, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(145deg, #2d2d44, #1a1a2e);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
                2px 2px 4px rgba(0, 0, 0, 0.3),
                -2px -2px 4px rgba(255, 255, 255, 0.05);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(145deg, #6c63ff, #5a52d5);
    border-color: rgba(78, 205, 196, 0.6);
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.3),
                inset -2px -2px 6px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(108, 99, 255, 0.5),
                0 4px 8px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
                2px 2px 6px rgba(0, 0, 0, 0.2),
                -2px -2px 6px rgba(255, 255, 255, 0.2);
}

.toggle-switch:hover .toggle-slider {
    border-color: rgba(108, 99, 255, 0.5);
}

/* ===== NEW EXPORT BUTTON WITH TEXT ===== */
.export-btn-new {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(145deg, rgba(108, 99, 255, 0.15), rgba(78, 205, 196, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

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

.export-btn-new:hover::before {
    left: 100%;
}

.export-btn-new:hover {
    background: linear-gradient(145deg, rgba(108, 99, 255, 0.25), rgba(78, 205, 196, 0.25));
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.export-btn-new:active {
    transform: translateY(0px);
}

.export-icon {
    width: 18px;
    height: 18px;
    fill: var(--accent-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.export-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.export-btn-new:hover .export-icon {
    fill: #4ecdc4;
    transform: translateY(3px);
    animation: exportBounce 0.6s ease;
}

@keyframes exportBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* Mobile responsive layout for filter actions */
@media (max-width: 768px) {
    .filter-actions-row {
        flex-wrap: nowrap;
        gap: 1rem;
    }
    
    .toggle-label {
        font-size: 0.85rem;
    }
    
    .export-btn-new {
        padding: 0.65rem 1.25rem;
    }
    
    .export-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .filter-actions-row {
        gap: 0.75rem;
    }
    
    .toggle-container {
        gap: 0.5rem;
    }
    
    .export-btn-new {
        padding: 0.6rem 1rem;
    }
    
    .export-icon {
        width: 16px;
        height: 16px;
    }
    
    .export-text {
        font-size: 0.8rem;
    }
}

/* ===== MULTI-TAG SEARCH ===== */
.search-container {
    position: relative;
    width: 100%;
}

.search-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 16px;
    min-height: 50px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    width: 100%;
}

.search-tags-wrapper:hover {
    border-color: rgba(108, 99, 255, 0.5);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(108, 99, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: tagFadeIn 0.2s ease;
    transition: all 0.2s ease;
}

.search-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.search-tag-remove {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.search-tag-remove:hover {
    opacity: 1;
}

.search-input-tags {
    flex: 1 1 auto;
    min-width: 150px;
    max-width: 100%;
    border: none;
    background: transparent;
    padding: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.search-input-tags::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(22, 33, 62, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 16px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(108, 99, 255, 0.2);
    transform: translateX(5px);
}

.suggestion-item strong {
    color: var(--accent-primary);
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-align: center;
    flex-wrap: wrap;
}

.stats-bar:hover {
    border-color: rgba(108, 99, 255, 0.4);
    background: rgba(22, 33, 62, 0.8);
}

.stats-bar strong {
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin: 0 0.25rem;
    transition: color 0.3s ease;
}

.stats-bar span {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-buttons .btn-sm {
    flex: 1;
    min-width: 120px;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ===== SMOOTH SCROLLING & PERFORMANCE ===== */
html {
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hardware acceleration for smooth animations */
.btn,
.card,
.feature-card,
.info-card,
.search-tag,
.filter-select,
.suggestion-item,
tbody tr {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize animations */
.btn:hover,
.card:hover,
.feature-card:hover,
.info-card:hover {
    will-change: transform;
}

.btn:not(:hover),
.card:not(:hover),
.feature-card:not(:hover),
.info-card:not(:hover) {
    will-change: auto;
}

/* ===== SMOOTH TRANSITIONS FOR INTERACTIVE ELEMENTS ===== */
input, select, button, a {
    -webkit-tap-highlight-color: rgba(108, 99, 255, 0.2);
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    outline-style: solid;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header {
        padding: 1rem;
    }

    nav {
        gap: 1rem;
    }

    /* Hide desktop nav and show hamburger on mobile */
    .nav-desktop {
        display: none !important;
    }

    .toggle {
        display: flex !important;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 0.75rem;
        width: 100%;
        justify-content: center;
    }
    
    nav li {
        flex: 0 0 auto;
    }
    
    /* Adjust download button tooltip for mobile */
    .tooltip {
        right: auto;
        left: -105px;
    }
    
    .tooltip::before {
        left: auto;
        right: -5%;
    }

    .login-card-stroke {
        max-width: 95%;
        padding: 3px;
    }
    
    .login-box {
        padding: 2rem 1.5rem;
    }
    
    .user-profile {
        max-width: 150px;
        height: 48px;
    }
    
    .user-profile-inner {
        height: 44px;
        gap: 10px;
    }
    
    .user-profile-inner svg {
        width: 24px;
        height: 24px;
    }
    
    .Btn-Container.hero-btn {
        width: 160px;
        height: 50px;
    }
    
    .Btn-Container.hero-btn .text {
        font-size: 1em;
    }
    
    .icon-Container {
        width: 40px;
        height: 40px;
    }

    .page-title {
        font-size: 1.5rem;
    }

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

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .action-buttons .btn-sm {
        width: 100%;
        min-width: unset;
    }
    
    .toggle-container {
        justify-content: space-between;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .btn-sm {
        width: 100%;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input {
        min-width: 100%;
    }

    .search-input-tags {
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .search-tags-wrapper {
        padding: 0.6rem;
    }
    
    .search-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }

    table {
        font-size: 0.75rem;
    }

    thead th,
    tbody td {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }
    
    thead th {
        white-space: nowrap;
    }
    
    .table-container {
        border-radius: 16px;
        margin-bottom: 1rem;
    }

    .stats-bar {
        font-size: 0.8rem;
        padding: 0.875rem 0.75rem;
    }
    
    .stats-bar strong {
        font-size: 0.95rem;
    }
    
    .card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .mb-2 {
        margin-bottom: 1.5rem;
    }
    
    .nav-brand h1 {
        font-size: 1.2rem;
    }
    
    .nav-logo {
        width: 35px;
        height: 35px;
    }
    
    .nav-brand h1 {
        font-size: 1.1rem;
    }
    
    thead th {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    /* Refresh and Export buttons mobile */
    .Btn {
        width: 45px;
        height: 45px;
    }
}

/* ===== EXTRA SMALL MOBILE ===== */
@media (max-width: 480px) {
    .login-card-stroke {
        padding: 3px;
    }
    
    .login-box h2 {
        font-size: 1.5rem;
    }
    
    .Btn-Container.hero-btn {
        width: 150px;
        height: 48px;
    }
    
    .Btn-Container.hero-btn .text {
        font-size: 0.95em;
    }

    .card {
        padding: 1.25rem;
        border-radius: 14px;
    }
    
    .page-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .filter-select {
        font-size: 0.85rem;
        padding: 0.65rem 0.85rem;
    }
    
    .filter-item label {
        font-size: 0.8rem;
    }
    
    table {
        font-size: 0.7rem;
    }
    
    thead th,
    tbody td {
        padding: 0.4rem 0.25rem;
    }
    
    .btn-sm {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .stats-bar {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    .stats-bar strong {
        font-size: 0.9rem;
    }
}

/* ===== TABLET RESPONSIVE ===== */
@media (min-width: 600px) and (max-width: 768px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .filter-item {
        grid-column: span 1;
    }
    
    .action-buttons {
        grid-column: span 2;
        flex-direction: row;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    thead th,
    tbody td {
        padding: 0.7rem 0.5rem;
    }
}

/* ===== FLOATING ACTION BUTTONS ===== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #6c63ff, #5a52d5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4),
                0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    animation: fadeInUp 0.3s ease;
}

.floating-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.6),
                0 6px 15px rgba(0, 0, 0, 0.4);
}

.floating-btn:active {
    transform: translateY(-2px) scale(1);
}

.floating-refresh {
    bottom: 100px;
}

.floating-refresh.refreshing svg {
    animation: spin 2s linear infinite;
}

.scroll-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

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

@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .floating-refresh {
        bottom: 85px;
    }
}

/* ===== RETRY PANEL (Compact Top-Right) ===== */
.retry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.retry-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98));
    border: 2px solid rgba(108, 99, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7),
                0 0 30px rgba(108, 99, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    pointer-events: auto;
    animation: slideInRight 0.3s ease;
    cursor: move;
    transition: all 0.3s ease;
}

.retry-panel.minimized {
    width: 200px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.retry-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(108, 99, 255, 0.3);
    cursor: grab;
    user-select: none;
}

.retry-panel-header:active {
    cursor: grabbing;
}

.retry-title-section {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
}

.retry-spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(108, 99, 255, 0.2);
    border-top-color: #6c63ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.retry-panel-header h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.retry-controls {
    display: flex;
    gap: 0.375rem;
}

.retry-btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.retry-btn-icon svg {
    stroke: var(--accent-primary);
}

.retry-btn-icon:hover {
    background: rgba(108, 99, 255, 0.3);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.retry-btn-close {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

.retry-btn-close svg {
    stroke: #ff6b6b;
}

.retry-btn-close:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
}

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

.retry-panel-body {
    padding: 1rem;
    transition: all 0.3s ease;
}

.retry-panel-body.hidden {
    display: none;
}

.retry-status-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.retry-status-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    flex-shrink: 0;
}

.retry-status-value {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
    line-height: 1.3;
}

.retry-status-value.status-success {
    color: #4ecdc4;
}

.retry-status-value.status-error {
    color: #ff6b6b;
}

.retry-status-value.status-connecting {
    color: #ffd93d;
}

.retry-progress-thin {
    width: 100%;
    height: 4px;
    background: rgba(108, 99, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.875rem;
}

.retry-progress-bar-thin {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #6c63ff 0%, #4ecdc4 100%);
    animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.retry-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.retry-stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.retry-stat-label {
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.retry-stat-value {
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .retry-panel {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: calc(100% - 20px);
    }
    
    .retry-panel.minimized {
        width: auto;
    }
    
    .retry-panel-header h4 {
        font-size: 0.85rem;
    }
    
    .retry-btn-icon {
        width: 24px;
        height: 24px;
    }
    
    .retry-btn-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .retry-panel-body {
        padding: 0.75rem;
    }
    
    .retry-status-label,
    .retry-status-value {
        font-size: 0.8rem;
    }
    
    .retry-stat-label,
    .retry-stat-value {
        font-size: 0.8rem;
    }
}

/* Extra small devices (phones, less than 480px) */
@media (max-width: 480px) {
    .retry-panel {
        top: 5px;
        right: 5px;
        left: 5px;
        max-width: calc(100% - 10px);
    }
    
    .retry-panel-header {
        padding: 0.625rem 0.75rem;
    }
    
    .retry-panel-header h4 {
        font-size: 0.8rem;
    }
    
    .retry-spinner-small {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
    
    .retry-btn-icon {
        width: 22px;
        height: 22px;
    }
    
    .retry-btn-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .retry-panel-body {
        padding: 0.625rem;
    }
    
    .retry-status-label,
    .retry-status-value,
    .retry-stat-label,
    .retry-stat-value {
        font-size: 0.75rem;
    }
    
    .retry-progress-thin {
        height: 3px;
    }
}

/* ===== LARGE SCREEN OPTIMIZATION ===== */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

/* ===== DEPARTMENT CHECKBOX SCROLLBAR ===== */
#department-checkboxes::-webkit-scrollbar,
#dynamic-dept-checkboxes::-webkit-scrollbar {
    width: 5px;
}
#department-checkboxes::-webkit-scrollbar-track,
#dynamic-dept-checkboxes::-webkit-scrollbar-track {
    background: transparent;
}
#department-checkboxes::-webkit-scrollbar-thumb,
#dynamic-dept-checkboxes::-webkit-scrollbar-thumb {
    background: rgba(108, 99, 255, 0.3);
    border-radius: 10px;
}

/* ===== DETAILS PANEL ===== */
details > summary::-webkit-details-marker,
details > summary::marker {
    display: none;
    content: '';
}

details[open] .details-chevron {
    transform: rotate(180deg);
}

/* ===== PAGINATION ===== */
#pagination-controls button:hover:not(:disabled) {
    background: rgba(108, 99, 255, 0.25);
    border-color: rgba(108, 99, 255, 0.4);
}

#pagination-controls button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

#page-jump-input:focus {
    border-color: var(--accent-primary);
}

#page-numbers button:hover {
    transform: translateY(-1px);
}

/* ===== RESPONSIVE PAGINATION ===== */
@media (max-width: 600px) {
    #pagination-controls {
        gap: 0.35rem !important;
        padding: 0.75rem 0 !important;
    }
    #pagination-controls button {
        padding: 5px 8px !important;
        font-size: 0.8rem !important;
    }
    #page-jump-input {
        width: 42px !important;
    }
}

/* ===== TABLE COLUMN WIDTH FIXES ===== */
/* Ensure Days column is wide enough for "SUNDAY, TUESDAY" etc. */
#courses-table td:nth-child(6),
#courses-table th:nth-child(6) {
    min-width: 140px;
    white-space: normal;
    word-break: break-word;
}

/* Time column */
#courses-table td:nth-child(7),
#courses-table th:nth-child(7) {
    min-width: 130px;
    white-space: normal;
    word-break: break-word;
}

/* Room column */
#courses-table td:nth-child(8),
#courses-table th:nth-child(8) {
    min-width: 140px;
    white-space: normal;
    word-break: break-word;
}

/* Faculty column – compact width, wraps name */
#courses-table td:nth-child(3),
#courses-table th:nth-child(3) {
    min-width: 100px;
    max-width: 120px;
    white-space: normal;
    word-break: break-word;
}

/* Mobile: Faculty column wider for better readability */
@media (max-width: 768px) {
    #courses-table td:nth-child(3),
    #courses-table th:nth-child(3) {
        min-width: 90px;
        max-width: 140px;
    }
    
    #courses-table td:nth-child(3) span,
    #courses-table th:nth-child(3) {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }
}

/* ===== LOW-END DEVICE PERFORMANCE OPTIMIZATIONS ===== */
/* Reduce backdrop-filter on non-hover states for performance */
@media (max-width: 768px) {
    /* Reduce expensive blur effects on mobile */
    .card {
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }

    /* Disable card hover lift on touch devices */
    .card:hover {
        transform: none !important;
    }

    /* Simplify table row hover on mobile */
    tbody tr:hover {
        transform: none !important;
        box-shadow: none !important;
        background: rgba(108, 99, 255, 0.06) !important;
    }

    /* Reduce filter-select hover transforms */
    .filter-select:hover {
        transform: none !important;
    }

    /* Reduce suggestion item hover effect */
    .suggestion-item:hover {
        transform: translateX(2px) !important;
    }

    /* Simpler search-tag hover */
    .search-tag:hover {
        transform: none !important;
    }
}

/* Coarse pointer (touch) devices — remove hover transforms globally */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .btn:hover,
    .export-btn-new:hover,
    tbody tr:hover,
    .filter-select:hover,
    .mobile-menu a:hover {
        transform: none !important;
    }

    /* Simpler animations for touch */
    .btn::before,
    .export-btn-new::before {
        display: none;
    }

    /* Ensure table rows are stable */
    tbody tr {
        transition: background 0.15s ease !important;
    }
}

/* ===== FLOATING BUTTON REFRESHING STATE ===== */
.floating-refresh.refreshing .refresh-icon,
.floating-btn.refreshing svg {
    animation: spin 1s linear infinite;
}

/* ===== SMOOTH ANIMATIONS - PERFORMANCE TUNED ===== */
/* Use will-change only during active animation states */
.course-row {
    will-change: opacity, transform;
}

.course-row.animated {
    will-change: auto;
}

/* Reduce animation complexity for tables with many rows on mobile */
@media (max-width: 768px) {
    tbody tr {
        transition: background 0.15s ease;
    }
}

/* ===== ADVISE PAGE TABLE COLUMN WIDTHS ===== */
/* These override table-layout:fixed for the advise page premium table */
.table-premium th:nth-child(4),
.table-premium td:nth-child(4) {
    /* Faculty column - compact */
    max-width: 100px;
    white-space: normal;
    word-break: break-word;
}

.table-premium th:nth-child(9),
.table-premium td:nth-child(9) {
    /* Time column - wider, wraps */
    min-width: 160px;
    white-space: normal;
    word-break: break-word;
}

.table-premium th:nth-child(10),
.table-premium td:nth-child(10) {
    /* Room column - wider, wraps */
    min-width: 150px;
    white-space: normal;
    word-break: break-word;
}


/* ===== FLOATING ACTION BUTTONS ===== */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.floating-refresh {
    right: 2rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

.floating-refresh svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    transition: transform 0.3s ease;
}

.floating-refresh:hover {
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 8px 35px rgba(108, 99, 255, 0.6);
}

.floating-refresh.refreshing svg {
    animation: spin 1s linear infinite;
}

.scroll-to-top {
    right: 5rem;
    background: rgba(22, 33, 62, 0.9);
    border: 1px solid rgba(108, 99, 255, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-primary);
}

.scroll-to-top:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .floating-btn {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
    }
    .floating-refresh { right: 1.5rem; }
    .scroll-to-top { right: 4rem; }
    .floating-refresh:hover { transform: scale(1.05); }
}

/* Auto-refresh settings button responsive */
#auto-refresh-settings-container {
    bottom: 6.5rem;
    right: 2rem;
}

#auto-refresh-settings-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(108, 99, 255, 0);
    }
}

#auto-refresh-settings-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.5);
}

#auto-refresh-settings-btn:active {
    transform: scale(1.05) rotate(180deg);
}

#auto-refresh-settings-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

#auto-refresh-settings-btn:hover svg {
    transform: rotate(90deg);
}

#auto-refresh-menu {
    transform-origin: bottom right;
}

#auto-refresh-menu.show {
    animation: slideInRight 0.2s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 640px) {
    #auto-refresh-settings-container {
        bottom: 5.5rem;
        right: 1rem;
    }
    #auto-refresh-settings-btn {
        width: 38px;
        height: 38px;
    }
    #auto-refresh-settings-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    #auto-refresh-settings-container {
        bottom: 5rem;
        right: 0.75rem;
    }
    #auto-refresh-settings-btn {
        width: 36px;
        height: 36px;
    }
    #auto-refresh-settings-btn svg {
        width: 15px;
        height: 15px;
    }
}

#auto-refresh-settings-btn {
    width: 38px;
    height: 38px;
}

#auto-refresh-settings-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    #auto-refresh-settings-container {
        bottom: 5rem;
        right: 1rem;
    }
    #auto-refresh-settings-btn {
        width: 34px;
        height: 34px;
    }
    #auto-refresh-settings-btn svg {
@media (max-width: 768px) {
    .floating-btn {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
    }
    .floating-refresh { right: 1.5rem; }
    .scroll-to-top { right: 4rem; }
    .floating-refresh:hover { transform: scale(1.05); }
}

/* Auto-refresh settings button responsive */
#auto-refresh-settings-container {
    bottom: 6.5rem;
    right: 2rem;
}

#auto-refresh-settings-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(108, 99, 255, 0);
    }
}

#auto-refresh-settings-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.5);
}

#auto-refresh-settings-btn:active {
    transform: scale(1.05) rotate(180deg);
}

#auto-refresh-settings-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

#auto-refresh-settings-btn:hover svg {
    transform: rotate(90deg);
}

#auto-refresh-menu {
    transform-origin: bottom right;
}

#auto-refresh-menu.show {
    animation: slideInRight 0.2s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 640px) {
    #auto-refresh-settings-container {
        bottom: 5.5rem;
        right: 1rem;
    }
    #auto-refresh-settings-btn {
        width: 38px;
        height: 38px;
    }
    #auto-refresh-settings-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    #auto-refresh-settings-container {
        bottom: 5rem;
        right: 0.75rem;
    }
    #auto-refresh-settings-btn {
        width: 36px;
        height: 36px;
    }
    #auto-refresh-settings-btn svg {
        width: 15px;
        height: 15px;
    }
}

#auto-refresh-settings-btn {
    width: 38px;
    height: 38px;
}

#auto-refresh-settings-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    #auto-refresh-settings-container {
        bottom: 5rem;
        right: 1rem;
    }
    #auto-refresh-settings-btn {
        width: 34px;
        height: 34px;
    }
    #auto-refresh-settings-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    #auto-refresh-settings-container {
        bottom: 4.5rem;
        right: 0.75rem;
    }
    #auto-refresh-settings-btn {
        width: 32px;
        height: 32px;
    }
}

/* ===== LOW-END DEVICE & REDUCED MOTION PERFORMANCE OPTIMIZATIONS ===== */
header, .mobile-menu, .glass-card, .login-box, .export-btn-new, .Btn {
    transform: translateZ(0);
    will-change: transform;
}

@media (max-width: 768px) {
    header {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .mobile-menu, .login-box {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== SPINNER & ROTATING LOADING ANIMATION ===== */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner,
#loading-spinner,
#options-loading-spinner,
#login-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(108, 99, 255, 0.15);
    border-radius: 50%;
    border-top-color: #6c63ff;
    border-right-color: #4ecdc4;
    animation: spin 0.8s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite !important;
    -webkit-animation: spin 0.8s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite !important;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.2);
    will-change: transform;
}

.spinner.hidden,
#loading-spinner.hidden,
#options-loading-spinner.hidden,
#login-spinner.hidden {
    display: none !important;
}

/* ===== ENHANCED BUTTON UI & ACCESSIBILITY ===== */
button, .btn-fetch-courses, .export-btn-new, .user-profile {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-fetch-courses {
    min-height: 44px;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--gradient-1);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.btn-fetch-courses:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.5);
}

.btn-fetch-courses:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-fetch-courses:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== MODERN TOP-NOTCH UI ENHANCEMENTS ===== */
/* Sleek custom scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 30, 0.8);
}

::-webkit-scrollbar-thumb {
    background: rgba(108, 99, 255, 0.3);
    border-radius: 9999px;
    border: 2px solid rgba(15, 15, 30, 0.8);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 99, 255, 0.6);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 99, 255, 0.3) rgba(15, 15, 30, 0.8);
}

/* Modern text selection */
::selection {
    background: rgba(108, 99, 255, 0.35);
    color: #ffffff;
}

/* Focus Visible Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

/* Modern Smooth Shadows & Transitions */
.card, .table-container, .modal-content {
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Table Wrapper Polish */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* High Definition Pill Badges */
.badge-seat-open {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-seat-low {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-seat-full {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

