:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Premium shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 20px 64px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-glow-success: 0 0 40px rgba(16, 185, 129, 0.3);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: var(--gray-900);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Premium Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-xl);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-toggler {
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    transition: all var(--transition-base);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-weight: 600;
    color: var(--gray-700) !important;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 12px;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 100%);
    border-radius: 3px;
    transition: width var(--transition-base);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: 16px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.dropdown-item {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all var(--transition-base);
    color: var(--gray-700);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-item.text-danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: var(--danger);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--gray-200);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-top: 1px solid var(--gray-200);
    margin-top: 4rem;
    padding: 2rem 0;
}

footer p {
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    color: var(--gray-600);
    font-weight: 600;
}

/* Messages Container */
#messages-container {
    margin-bottom: 1.5rem;
}

.alert {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-md);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.alert-dismissible .btn-close {
    padding: 0.75rem;
}

/* Premium Page Header */
.page-header {
    background: linear-gradient(135deg, var(--success) 0%, #059669 50%, #10b981 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--info) 100%);
}

.page-header-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
    animation: float 6s ease-in-out infinite;
}

.page-header-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.page-header-title {
    font-weight: 900;
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.page-header-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-back {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1rem 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--gray-900);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-back::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-back:hover::before {
    width: 300px;
    height: 300px;
}

.btn-back:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    color: var(--gray-900);
}

/* Premium Search Card */
.search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
}

.search-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-2px);
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 10;
    font-size: 1.1rem;
}

.search-input {
    border-radius: 16px;
    border: 2px solid var(--gray-300);
    padding: 1rem 1.5rem 1rem 3.5rem;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: white;
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-md);
    outline: none;
    transform: scale(1.02);
}

.btn-clear {
    border-radius: 16px;
    padding: 1rem 2rem;
    font-weight: 700;
    border: 2px solid var(--danger);
    color: var(--danger);
    background: transparent;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-clear::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--danger);
    transition: left var(--transition-base);
    z-index: -1;
}

.btn-clear:hover::before {
    left: 0;
}

.btn-clear:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Premium Filter Sidebar */
.filter-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.filter-header {
    padding: 1.5rem 2rem;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.filter-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: translate(30px, -30px);
}

.filter-header-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.filter-header-info {
    background: linear-gradient(135deg, var(--info) 0%, #0891b2 100%);
}

.filter-header-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

.filter-header-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    display: block;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    text-decoration: none;
    color: var(--gray-700);
    background: white;
    position: relative;
    overflow: hidden;
}

.filter-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    transition: width var(--transition-base);
}

.filter-item:hover::before,
.filter-item.active::before {
    width: 100%;
}

.filter-item:hover {
    padding-left: 2.5rem;
    transform: translateX(8px);
    color: var(--primary);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
}

.filter-item.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-left: 5px solid var(--primary);
    padding-left: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Premium Test Card */
.test-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    height: 100%;
    transform-style: preserve-3d;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.test-card:hover::before {
    opacity: 1;
}

.test-card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--success) 0%, var(--primary) 33%, var(--info) 66%, var(--purple) 100%);
    background-size: 200% 100%;
    animation: gradient 3s ease infinite;
}

.test-card-body {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.test-card-header {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
}

.test-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
    color: white;
    font-size: 1.75rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.test-card-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg);
    transition: all var(--transition-slow);
}

.test-card:hover .test-card-icon::before {
    animation: shimmer 2s infinite;
}

.test-card-title {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--gray-900);
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.test-card-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge-category {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all var(--transition-base);
}

.badge-category:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.badge-type {
    background: linear-gradient(135deg, var(--info) 0%, #0891b2 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.test-card-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.test-card-stats {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge-difficulty-easy {
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.badge-difficulty-medium {
    background: linear-gradient(135deg, var(--warning) 0%, #fbbf24 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.badge-difficulty-hard {
    background: linear-gradient(135deg, var(--danger) 0%, #f87171 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.badge-questions {
    background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-600) 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 12px;
}

.badge-duration {
    background: linear-gradient(135deg, var(--warning) 0%, #fbbf24 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 12px;
}

.test-card-result {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 20px;
    border-left: 5px solid var(--success);
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.1);
}

.test-card-result-score {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--success);
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.test-card-result-progress {
    height: 10px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.test-card-result-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, #34d399 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    transition: width 1s ease;
}

.btn-start {
    width: 100%;
    font-weight: 800;
    padding: 1.25rem;
    border-radius: 16px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--info) 100%);
    background-size: 200% 200%;
    border: none;
    color: white;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-start::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.6s;
}

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

.btn-start:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
    color: white;
    animation: gradient 3s ease infinite;
}

.test-card:hover {
    transform: translateY(-16px) scale(1.03) rotateY(3deg);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.test-card:hover .test-card-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}

.empty-state {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.empty-state-icon {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 4rem;
    color: var(--gray-400);
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

.empty-state-title {
    font-weight: 800;
    font-size: 2rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.empty-state-text {
    font-size: 1.125rem;
    color: var(--gray-500);
}

/* Premium Video Card */
.video-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    height: 100%;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.video-card:hover::after {
    opacity: 1;
}

.video-card-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.video-card-image {
    height: 260px;
    object-fit: cover;
    width: 100%;
    transition: transform var(--transition-slow);
    filter: brightness(1);
}

.video-card-placeholder {
    height: 260px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    opacity: 0.6;
    position: relative;
    overflow: hidden;
}

.video-card-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: rotate 3s linear infinite;
}

.video-card-badge-watched {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.video-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.video-card-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.video-card-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.7;
}

.video-card-badges {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.video-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
} 


.btn-watch {
    flex-grow: 1;
    font-weight: 700;
    padding: 0.875rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    color: white;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-watch:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
    color: white;
}

.video-card:hover {
    transform: translateY(-16px) scale(1.03) rotateX(3deg);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.video-card:hover .video-card-image {
    transform: scale(1.2);
    filter: brightness(1.1) saturate(1.2);
}

.category-icon-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary)20 0%, var(--primary)10 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary)30;
    font-size: 1.75rem;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
    transition: all var(--transition-base);
}

.category-icon-small:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.category-title-small {
    font-weight: 900;
    font-size: 2rem;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.category-count-small {
    font-size: 1rem;
    color: var(--gray-500);
    margin: 0;
    font-weight: 600;
}

/* Dashboard Styles */
.dashboard-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    box-shadow: var(--shadow-2xl);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboard-welcome-content {
    position: relative;
    z-index: 1;
    padding: 4rem;
}

.dashboard-welcome-title {
    font-weight: 900;
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.dashboard-welcome-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.dashboard-stats-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 2.5rem;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all var(--transition-base);
}

.dashboard-stats-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(0,0,0,0.3);
}

.dashboard-stats-label {
    font-size: 0.9375rem;
    opacity: 0.95;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-stats-value {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--success) 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-base);
}

.stat-card:hover::before {
    transform: scaleY(1);
}

.stat-card-primary {
    border-left: 5px solid var(--primary);
}

.stat-card-success {
    border-left: 5px solid var(--success);
}

.stat-card-info {
    border-left: 5px solid var(--info);
}

.stat-card-warning {
    border-left: 5px solid var(--warning);
}

.stat-card-value {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.stat-card-label {
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.stat-card:hover .stat-card-value {
    animation: pulse 1s ease-in-out;
}

.quick-link-card {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: 24px;
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    position: relative;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-link-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: var(--shadow-2xl);
    color: inherit;
}

.quick-link-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.quick-link-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all var(--transition-slow);
}

.quick-link-card:hover .quick-link-icon::before {
    animation: shimmer 2s infinite;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-16px) scale(1.03);
    box-shadow: var(--shadow-2xl);
}

.category-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.category-icon-large::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all var(--transition-slow);
}

.category-card:hover .category-icon-large::before {
    animation: shimmer 2s infinite;
}

.category-card:hover .category-icon-large {
    transform: scale(1.2) rotate(15deg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

/* Profile Styles */
.profile-header {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: var(--shadow-2xl);
    border-radius: 32px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
}

.profile-avatar:hover {
    transform: scale(1.1) rotate(5deg);
}

.profile-title {
    font-weight: 900;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.profile-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 1.25rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Test Detail Styles */
.test-detail-card {
    border-radius: 32px;
    box-shadow: var(--shadow-2xl);
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.test-detail-alert {
    border-radius: 20px;
    border-left: 5px solid;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
}

.test-detail-alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-left-color: #f59e0b;
}

.test-detail-alert-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-left-color: var(--info);
}

/* Video Detail Styles */
.video-detail-card {
    border-radius: 32px;
    box-shadow: var(--shadow-2xl);
    border: none;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.video-controls {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.video-progress-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.video-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--danger) 0%, #f87171 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    transition: width 0.3s ease;
}

.video-time {
    color: white;
    font-size: 0.875rem;
    min-width: 60px;
    font-weight: 600;
}

.video-info-card {
    border-radius: 32px;
    box-shadow: var(--shadow-2xl);
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.video-info-title {
    font-weight: 900;
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.video-notes-card {
    border-radius: 32px;
    box-shadow: var(--shadow-2xl);
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.video-notes-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-bottom: 3px solid var(--primary);
    padding: 2rem;
}

.video-note-item {
    border-left: 5px solid var(--primary) !important;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.video-note-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.related-video-item {
    border: none;
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    padding: 1.25rem;
}

.related-video-item:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    color: inherit;
    transform: translateX(8px);
}

.related-video-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.related-video-item:hover .related-video-thumb {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Premium Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

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

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-down {
    animation: fadeInDown 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left {
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.fade-in-right {
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.scale-in {
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-item {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation-fill-mode: forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }
.stagger-item:nth-child(8) { animation-delay: 0.8s; }

.hover-lift {
    transition: all var(--transition-base);
    position: relative;
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: var(--shadow-2xl);
}

.hover-lift::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.hover-lift:hover::before {
    opacity: 1;
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Bounce Animation */
.bounce-animation {
    animation: bounce 1.5s ease-in-out infinite;
}

/* Rotate Animation */
.rotate-animation {
    animation: rotate 3s linear infinite;
}

/* Smooth Transitions */
* {
    transition: background-color var(--transition-fast), 
                color var(--transition-fast),
                transform var(--transition-base),
                box-shadow var(--transition-base),
                opacity var(--transition-base);
}

/* Premium Card Hover Effects */
.card {
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

/* Premium Button Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    font-weight: 700;
    border-radius: 14px;
    padding: 0.875rem 1.75rem;
    box-shadow: var(--shadow-md);
}

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

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.6);
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(40px) saturate(180%);
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

/* Progress Bar Animation */
.progress-bar {
    transition: width 0.8s ease;
}

.progress-bar-animated {
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Premium Login Styles */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 3.5rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.login-card .form-control {
    border-radius: 14px;
    border: 2px solid var(--gray-300);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: white;
    box-shadow: var(--shadow-sm);
}

.login-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-md);
    outline: none;
    transform: scale(1.02);
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
}

.login-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    transition: all var(--transition-base);
    animation: float 6s ease-in-out infinite;
}

.login-icon:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 48px rgba(99, 102, 241, 0.6);
}

/* Premium Leaderboard Styles */
.leaderboard-row {
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--gray-200);
}

.leaderboard-row:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    transform: translateX(8px);
}

.leaderboard-row-current {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-left: 5px solid var(--primary);
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.leaderboard-medal {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
    animation: pulse 2s ease-in-out infinite;
}

.leaderboard-medal:hover {
    transform: scale(1.15) rotate(10deg);
}

.leaderboard-medal-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.leaderboard-medal-silver {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: 0 4px 20px rgba(100, 116, 139, 0.4);
}

.leaderboard-medal-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.4);
}

.leaderboard-position {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--gray-700);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
}

.leaderboard-row:hover .leaderboard-position {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaderboard-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    margin-right: 1.25rem;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transition: all var(--transition-base);
}

.leaderboard-row:hover .leaderboard-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.leaderboard-score {
    display: inline-block;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transition: all var(--transition-base);
}

.leaderboard-row:hover .leaderboard-score {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

/* Premium Profile Styles */
.profile-bookmark-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
}

.profile-bookmark-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.profile-table-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 28px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.profile-table-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-bottom: 3px solid var(--primary);
    padding: 2rem;
}

.profile-table {
    margin: 0;
}

.profile-table thead {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.profile-table thead th {
    padding: 1.5rem 1rem;
    font-weight: 800;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

.profile-table tbody tr {
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--gray-200);
}

.profile-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    transform: translateX(4px);
}

.profile-table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
}

.profile-video-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
    overflow: hidden;
}

.profile-video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.profile-video-card img {
    transition: transform var(--transition-slow);
}

.profile-video-card:hover img {
    transform: scale(1.1);
}

/* Empty State Styles */
.empty-state-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: var(--gray-400);
    box-shadow: var(--shadow-sm);
    animation: float 6s ease-in-out infinite;
}

.empty-state-title {
    color: var(--gray-600);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Premium Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    transition: all var(--transition-base);
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    transition: all var(--transition-base);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN - KENG QAMROVLI
   ============================================ */

/* Extra Large Devices (Large Desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .page-header {
        padding: 5rem 0;
    }
    
    .test-card-body {
        padding: 3rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Navbar */
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-brand {
        font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    }
    
    .navbar-toggler {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9375rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--gray-200);
    }
    
    .dropdown-menu {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 3rem 0;
        border-radius: 24px;
        margin-bottom: 2.5rem;
    }
    
    .page-header-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    .page-header-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
    }
    
    .page-header-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    /* Cards */
    .test-card-body {
        padding: 2rem;
    }
    
    .test-card-title {
        font-size: 1.375rem;
    }
    
    .video-card-body {
        padding: 1.5rem;
    }
    
    /* Dashboard */
    .dashboard-welcome-content {
        padding: 2.5rem;
    }
    
    .dashboard-welcome-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    .dashboard-welcome-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
    }
    
    .dashboard-stats-card {
        padding: 1.75rem;
    }
    
    .dashboard-stats-value {
        font-size: 2.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card-value {
        font-size: 2.25rem;
    }
    
    .category-card {
        padding: 2rem;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
    
    .category-icon-large {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .quick-link-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    /* Profile */
    .profile-header {
        padding: 2.5rem;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-right: 1.25rem;
    }
    
    .profile-title {
        font-size: 1.75rem;
    }
    
    .profile-subtitle {
        font-size: 1rem;
    }
    
    /* Leaderboard */
    .leaderboard-medal,
    .leaderboard-position {
        width: 56px;
        height: 56px;
        font-size: 1.125rem;
    }
    
    .leaderboard-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
        margin-right: 1rem;
    }
    
    .leaderboard-score {
        padding: 0.625rem 1.25rem;
        font-size: 1.125rem;
    }
    
    /* Login */
    .login-card {
        padding: 2.5rem;
    }
    
    .login-icon {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }
    
    /* Filter Sidebar */
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    /* Tables */
    .profile-table thead th,
    .profile-table tbody td {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Buttons */
    .btn-start {
        padding: 1.125rem;
        font-size: 1rem;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    /* Navbar */
    .navbar {
        padding: 0.875rem 0;
    }
    
    .navbar-brand {
        font-size: clamp(1.125rem, 4vw, 1.375rem);
    }
    
    .navbar-toggler {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .navbar-collapse {
        margin-top: 0.875rem;
        padding-top: 0.875rem;
        border-top: 1px solid var(--gray-200);
    }
    
    .dropdown-menu {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 2.5rem 0;
        border-radius: 20px;
        margin-bottom: 2rem;
    }
    
    .page-header-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
    
    .page-header-subtitle {
        font-size: clamp(0.9375rem, 3vw, 1.125rem);
    }
    
    .page-header-icon {
        width: 70px;
        height: 70px;
        font-size: 2.25rem;
    }
    
    /* Cards */
    .test-card-body {
        padding: 1.75rem;
    }
    
    .test-card-title {
        font-size: 1.25rem;
    }
    
    .test-card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-right: 1rem;
    }
    
    .video-card-body {
        padding: 1.25rem;
    }
    
    /* Dashboard */
    .dashboard-welcome-content {
        padding: 2rem;
    }
    
    .dashboard-welcome-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
    
    .dashboard-welcome-subtitle {
        font-size: clamp(0.9375rem, 3vw, 1.125rem);
    }
    
    .dashboard-stats-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-stats-value {
        font-size: 2.25rem;
    }
    
    .stat-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .stat-card-value {
        font-size: 2rem;
    }
    
    .stat-card-label {
        font-size: 0.8125rem;
    }
    
    .category-card {
        padding: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 2.25rem;
    }
    
    .category-icon-large {
        width: 90px;
        height: 90px;
        font-size: 2.75rem;
    }
    
    .quick-link-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    /* Profile */
    .profile-header {
        padding: 2rem;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-right: 1rem;
    }
    
    .profile-title {
        font-size: 1.5rem;
    }
    
    .profile-subtitle {
        font-size: 0.9375rem;
    }
    
    /* Leaderboard */
    .leaderboard-medal,
    .leaderboard-position {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .leaderboard-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 0.875rem;
    }
    
    .leaderboard-score {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    /* Login */
    .login-card {
        padding: 2rem;
    }
    
    .login-icon {
        width: 80px;
        height: 80px;
        font-size: 2.25rem;
    }
    
    /* Tables */
    .profile-table {
        font-size: 0.875rem;
    }
    
    .profile-table thead th,
    .profile-table tbody td {
        padding: 0.875rem 0.5rem;
    }
    
    /* Buttons */
    .btn-start {
        padding: 1rem;
        font-size: 0.9375rem;
    }
    
    /* Badges */
    .badge-category,
    .badge-type,
    .badge-difficulty-easy,
    .badge-difficulty-medium,
    .badge-difficulty-hard {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Navbar */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: clamp(1.125rem, 4.5vw, 1.25rem);
    }
    
    .navbar-toggler {
        padding: 0.375rem 0.625rem;
        font-size: 0.875rem;
    }
    
    .navbar-collapse {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--gray-200);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 1rem;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .dropdown-menu {
        width: 100%;
        margin-top: 0.5rem;
        position: static !important;
        transform: none !important;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
    
    .dropdown-item {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 2rem 0;
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }
    
    .page-header-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 0.5rem;
    }
    
    .page-header-subtitle {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
    }
    
    .page-header-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .btn-back {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        margin-top: 1rem;
    }
    
    /* Cards */
    .test-card {
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
    
    .test-card-body {
        padding: 1.5rem;
    }
    
    .test-card-title {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    .test-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.375rem;
        margin-right: 0.875rem;
    }
    
    .test-card-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .test-card-stats {
        gap: 0.5rem;
    }
    
    .video-card {
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
    
    .video-card-body {
        padding: 1rem;
    }
    
    .video-card-title {
        font-size: 1.0625rem;
    }
    
    /* Dashboard */
    .dashboard-welcome {
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
    
    .dashboard-welcome-content {
        padding: 1.75rem;
    }
    
    .dashboard-welcome-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 0.5rem;
    }
    
    .dashboard-welcome-subtitle {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
    }
    
    .dashboard-stats-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
        border-radius: 16px;
    }
    
    .dashboard-stats-label {
        font-size: 0.75rem;
    }
    
    .dashboard-stats-value {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.125rem;
        margin-bottom: 1rem;
        border-radius: 16px;
    }
    
    .stat-card-value {
        font-size: 1.75rem;
    }
    
    .stat-card-label {
        font-size: 0.75rem;
    }
    
    .category-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 20px;
    }
    
    .category-icon {
        width: 56px;
        height: 56px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .category-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .quick-link-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    /* Profile */
    .profile-header {
        padding: 1.75rem;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
    
    .profile-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-right: 1rem;
    }
    
    .profile-title {
        font-size: 1.375rem;
    }
    
    .profile-subtitle {
        font-size: 0.875rem;
    }
    
    /* Leaderboard */
    .leaderboard-medal,
    .leaderboard-position {
        width: 44px;
        height: 44px;
        font-size: 0.9375rem;
    }
    
    .leaderboard-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
        margin-right: 0.75rem;
    }
    
    .leaderboard-score {
        padding: 0.5rem 0.875rem;
        font-size: 0.9375rem;
    }
    
    .leaderboard-row td {
        padding: 1rem 0.5rem !important;
    }
    
    .leaderboard-row td:first-child {
        padding-left: 0.75rem !important;
    }
    
    /* Login */
    .login-card {
        padding: 1.75rem;
        border-radius: 24px;
    }
    
    .login-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .login-card h2 {
        font-size: 1.75rem;
    }
    
    .login-card .form-control {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .login-card .btn-primary {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    /* Tables */
    .profile-table-card {
        border-radius: 20px;
    }
    
    .profile-table-header {
        padding: 1.5rem;
    }
    
    .profile-table-header h5 {
        font-size: 1.25rem;
    }
    
    .profile-table {
        font-size: 0.8125rem;
    }
    
    .profile-table thead th {
        padding: 0.875rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .profile-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Buttons */
    .btn-start {
        padding: 1rem;
        font-size: 0.9375rem;
        border-radius: 14px;
    }
    
    .btn-primary,
    .btn-outline-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    /* Badges */
    .badge-category,
    .badge-type,
    .badge-difficulty-easy,
    .badge-difficulty-medium,
    .badge-difficulty-hard,
    .badge-questions,
    .badge-duration {
        padding: 0.4375rem 0.75rem;
        font-size: 0.6875rem;
        border-radius: 10px;
    }
    
    /* Filter Sidebar */
    .filter-sidebar {
        margin-bottom: 1.5rem;
    }
    
    .filter-header {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .filter-item {
        padding: 1rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    /* Empty States */
    .empty-state-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .empty-state-title {
        font-size: 1.125rem;
    }
    
    /* Profile Bookmarks */
    .profile-bookmark-card {
        border-radius: 20px;
    }
    
    .profile-video-card {
        border-radius: 16px;
    }
    
    .profile-video-card img {
        height: 140px !important;
    }
    
    /* Video Detail */
    .video-detail-card {
        border-radius: 20px;
    }
    
    .video-controls {
        padding: 0.875rem;
    }
    
    .video-progress-container {
        padding: 0.625rem 0.875rem;
    }
    
    /* Test Detail */
    .test-detail-card {
        border-radius: 20px;
    }
    
    /* Footer */
    footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    /* Messages */
    #messages-container {
        margin-bottom: 1rem;
    }
    
    .alert {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Responsive Typography */
    h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
    h2 { font-size: clamp(1.375rem, 6vw, 1.75rem); }
    h3 { font-size: clamp(1.25rem, 5vw, 1.5rem); }
    h4 { font-size: clamp(1.125rem, 4vw, 1.25rem); }
    h5 { font-size: clamp(1rem, 3.5vw, 1.125rem); }
    h6 { font-size: clamp(0.9375rem, 3vw, 1rem); }
    p { font-size: clamp(0.875rem, 2.5vw, 1rem); }
    
    /* Spacing adjustments */
    .mb-5 { margin-bottom: 2rem !important; }
    .mb-4 { margin-bottom: 1.5rem !important; }
    .mt-4 { margin-top: 1.5rem !important; }
    .mt-5 { margin-top: 2rem !important; }
    .p-5 { padding: 1.75rem !important; }
    .p-4 { padding: 1.5rem !important; }
}

/* Very Small Devices (320px and below) */
@media (max-width: 320px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .page-header-title {
        font-size: 1.375rem;
    }
    
    .dashboard-welcome-title {
        font-size: 1.375rem;
    }
    
    .test-card-body,
    .video-card-body {
        padding: 1.25rem;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .btn-start {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .page-header {
        padding: 1.5rem 0;
    }
    
    .dashboard-welcome-content {
        padding: 1.5rem;
    }
    
    .login-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .filter-sidebar {
        display: none !important;
    }
    
    .test-card,
    .video-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

