/* =============================================
   LMS - Modern Premium Stylesheet
   ============================================= */

/* ---- CSS Variables / Design Tokens ---- */
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #4834d4;
    --accent: #00cec9;
    --accent-light: #81ecec;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --info: #74b9ff;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #e8e8f0;
    --text-muted: #888899;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --gradient-1: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-2: linear-gradient(135deg, #00cec9, #81ecec);
    --gradient-3: linear-gradient(135deg, #e17055, #fab1a0);
    --glass-bg: rgba(20, 20, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

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

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

a {
    text-decoration: none;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a1628 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
    animation-delay: -3s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--danger);
    top: 50%;
    left: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

.login-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-card .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 14px 16px;
    height: 56px;
    transition: all 0.3s ease;
}

.login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
    color: var(--text-primary);
}

.login-card .form-floating label {
    color: var(--text-muted);
}

.btn-login {
    height: 52px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    background: var(--gradient-1);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.5);
}

.login-footer p {
    font-size: 0.8rem;
}

/* =============================================
   SIDEBAR
   ============================================= */
.admin-body {
    background: linear-gradient(135deg, #0a0a1a 0%, #0d1117 100%);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-brand i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.menu-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 12px 16px 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.menu-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.menu-item.active {
    color: white;
    background: var(--gradient-1);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.menu-item i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

/* =============================================
   MAIN CONTENT & TOPBAR
   ============================================= */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    font-weight: 700;
    font-size: 1.15rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-info {
    text-align: right;
}

.admin-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-role {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.page-content {
    padding: 28px 32px;
}

/* =============================================
   GLASS CARDS
   ============================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.glass-card .card-body {
    padding: 1.5rem;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.glass-card .card-title {
    font-weight: 600;
    font-size: 1rem;
}

.glass-modal {
    background: rgba(20, 20, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* =============================================
   STAT CARDS
   ============================================= */
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.stat-primary .stat-icon { background: var(--gradient-1); }
.stat-success .stat-icon { background: linear-gradient(135deg, #00b894, #55efc4); }
.stat-warning .stat-icon { background: linear-gradient(135deg, #fdcb6e, #ffeaa7); color: #2d3436; }
.stat-danger .stat-icon { background: var(--gradient-3); }
.stat-info .stat-icon { background: linear-gradient(135deg, #0984e3, #74b9ff); }

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.mini-stat {
    text-align: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    flex: 1;
}

.mini-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.mini-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =============================================
   TABLES
   ============================================= */
.table {
    color: var(--text-primary);
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
}

.table thead th {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

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

.table-row-unpaid {
    border-left: 3px solid var(--danger);
}

/* =============================================
   FORMS
   ============================================= */
.form-control, 
.form-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus, 
.form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-select option {
    background: #1a1a2e;
    color: var(--text-primary);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
    background: var(--gradient-1);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary-light);
    border-radius: 10px;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-muted);
    border-radius: 10px;
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.btn-outline-danger {
    border-radius: 10px;
}

.btn-outline-info {
    border-radius: 10px;
}

.btn-success {
    background: linear-gradient(135deg, #00b894, #55efc4);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: #1a1a2e;
}

.btn-outline-warning {
    border-radius: 10px;
}

/* =============================================
   BADGES
   ============================================= */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 8px;
}

.badge-free-card {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(111, 66, 193, 0.2));
    border: 1px solid rgba(111, 66, 193, 0.3);
    color: #a29bfe;
    font-weight: 600;
}

.badge-free-card i {
    color: #74b9ff;
}

/* =============================================
   ALERTS
   ============================================= */
.alert {
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
}

.alert-dismissible .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

/* =============================================
   ACTIVITY LIST
   ============================================= */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-info {
    min-width: 0;
}

.activity-info .fw-medium {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   BATCH ASSIGNMENT CARD
   ============================================= */
.batch-assignment-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.batch-assignment-card h6 {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.85rem;
}

/* =============================================
   RECORDING ELEMENTS
   ============================================= */
.recording-thumb {
    width: 80px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.recording-thumb-placeholder {
    width: 80px;
    height: 45px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* =============================================
   STUDENT PORTAL
   ============================================= */
.student-body {
    background: linear-gradient(135deg, #0a0a1a 0%, #0d1117 100%);
}

.student-navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 0;
}

.student-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary) !important;
}

.student-navbar .navbar-brand i {
    color: var(--primary-light);
}

.student-navbar .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    border-radius: 10px;
    transition: all 0.2s;
    margin: 0 2px;
}

.student-navbar .nav-link:hover,
.student-navbar .nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.06);
}

.student-navbar .navbar-toggler {
    border-color: var(--border-color);
}

.student-navbar .dropdown-menu {
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
}

.student-navbar .dropdown-item {
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    margin: 2px 4px;
}

.student-navbar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.student-navbar .dropdown-divider {
    border-color: var(--border-color);
}

/* Payment Warning Banner */
.payment-warning-banner {
    background: linear-gradient(90deg, rgba(225, 112, 85, 0.15), rgba(225, 112, 85, 0.05));
    border-bottom: 1px solid rgba(225, 112, 85, 0.3);
    padding: 12px 0;
    font-size: 0.88rem;
    color: #fab1a0;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-bottom-color: rgba(225, 112, 85, 0.3); }
    50% { border-bottom-color: rgba(225, 112, 85, 0.6); }
}

/* Welcome Card */
.welcome-card {
    background: var(--gradient-1);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.welcome-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-content h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.welcome-content p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Class Card */
.class-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.class-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gradient-1);
    color: white;
}

/* Recording Cards (Student) */
.recording-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.recording-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.recording-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.3);
}

.recording-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recording-card:hover .recording-card-thumb img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 3rem;
    color: white;
}

.recording-card:hover .play-overlay {
    opacity: 1;
}

/* Locked Recording */
.recording-locked {
    position: relative;
}

.locked-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(225, 112, 85, 0.1), rgba(225, 112, 85, 0.02));
    border-bottom: 1px solid rgba(225, 112, 85, 0.2);
    color: var(--danger);
    gap: 8px;
}

.locked-thumb i {
    font-size: 2rem;
}

.locked-thumb span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Recording Item (Dashboard) */
.recording-item {
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.recording-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.recording-item-thumb {
    width: 80px;
    height: 48px;
    flex-shrink: 0;
}

.recording-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.thumb-placeholder,
.thumb-locked {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.thumb-placeholder {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.thumb-locked {
    background: rgba(225, 112, 85, 0.1);
    color: var(--danger);
}

/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-avatar {
    font-size: 5rem;
    color: var(--primary-light);
    line-height: 1;
}

.profile-details {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.detail-value {
    font-weight: 500;
    font-size: 0.88rem;
}

/* =============================================
   STUDENT FOOTER
   ============================================= */
.student-footer {
    border-top: 1px solid var(--border-color);
}

/* =============================================
   DROPDOWN MENU (Admin)
   ============================================= */
.dropdown-menu {
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    padding: 8px;
}

.dropdown-item {
    color: var(--text-muted);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.dropdown-item.text-danger:hover {
    background: rgba(225, 112, 85, 0.1);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .page-content {
        padding: 20px 16px;
    }
    
    .topbar {
        padding: 0 16px;
    }
}

@media (max-width: 575.98px) {
    .login-card {
        margin: 16px;
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .welcome-card {
        padding: 24px;
    }
    
    .welcome-content h2 {
        font-size: 1.2rem;
    }
}

/* =============================================
   ANIMATIONS
   ============================================= */
.glass-card,
.stat-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.glass-card:nth-child(1) { animation-delay: 0.05s; }
.glass-card:nth-child(2) { animation-delay: 0.1s; }
.glass-card:nth-child(3) { animation-delay: 0.15s; }

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

/* Hover animation for cards */
.stat-card,
.class-card,
.recording-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}
