* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --accent: #f59e0b;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.logo {
    cursor: pointer;
}

.logo h1 {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: -4px;
}

.logo .tagline {
    font-size: 0.68rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
}

.nav-links a.btn-primary:hover {
    color: white;
    background: linear-gradient(135deg, #4f46e5, #6d28d9);
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user-info .user-badge {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-user-info .user-badge.admin {
    background: linear-gradient(135deg, var(--danger), #f97316);
}

.nav-user-info .user-badge.instructor {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    color: var(--dark);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: white;
    background: linear-gradient(135deg, #4f46e5, #6d28d9);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #f97316);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 15px 36px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.88rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

select.form-control {
    cursor: pointer;
    background: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4f46e5 60%, #7c3aed 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    color: white;
    padding: 100px 40px 120px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139,92,246,0.1) 0%, transparent 40%);
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--light), transparent);
}

.hero h2 {
    position: relative;
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    position: relative;
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .btn {
    position: relative;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.hero-stat .label {
    font-size: 0.82rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tech Marquee */
.tech-marquee {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.tech-marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

.tech-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.1);
}

.card-header {
    padding: 22px 25px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
}

/* ===== COLORFUL COURSE CARDS ===== */
.course-card[data-color="1"] .card-header {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}
.course-card[data-color="1"] .card-body {
    background: linear-gradient(180deg, #eff6ff, #ffffff);
}
.course-card[data-color="1"] .card-body .price { color: #1e40af; }

.course-card[data-color="2"] .card-header {
    background: linear-gradient(135deg, #065f46, #10b981);
}
.course-card[data-color="2"] .card-body {
    background: linear-gradient(180deg, #ecfdf5, #ffffff);
}
.course-card[data-color="2"] .card-body .price { color: #065f46; }

.course-card[data-color="3"] .card-header {
    background: linear-gradient(135deg, #0e7490, #06b6d4);
}
.course-card[data-color="3"] .card-body {
    background: linear-gradient(180deg, #ecfeff, #ffffff);
}
.course-card[data-color="3"] .card-body .price { color: #0e7490; }

.course-card[data-color="4"] .card-header {
    background: linear-gradient(135deg, #9f1239, #f43f5e);
}
.course-card[data-color="4"] .card-body {
    background: linear-gradient(180deg, #fff1f2, #ffffff);
}
.course-card[data-color="4"] .card-body .price { color: #9f1239; }

.course-card[data-color="5"] .card-header {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
}
.course-card[data-color="5"] .card-body {
    background: linear-gradient(180deg, #f5f3ff, #ffffff);
}
.course-card[data-color="5"] .card-body .price { color: #6d28d9; }

.course-card[data-color="6"] .card-header {
    background: linear-gradient(135deg, #b45309, #f59e0b);
}
.course-card[data-color="6"] .card-body {
    background: linear-gradient(180deg, #fffbeb, #ffffff);
}
.course-card[data-color="6"] .card-body .price { color: #b45309; }

.course-card[data-color="7"] .card-header {
    background: linear-gradient(135deg, #4338ca, #6366f1);
}
.course-card[data-color="7"] .card-body {
    background: linear-gradient(180deg, #eef2ff, #ffffff);
}
.course-card[data-color="7"] .card-body .price { color: #4338ca; }

.course-card[data-color="8"] .card-header {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.course-card[data-color="8"] .card-body {
    background: linear-gradient(180deg, #f0fdfa, #ffffff);
}
.course-card[data-color="8"] .card-body .price { color: #0f766e; }

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.6rem;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.course-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.35);
}

.card-body {
    padding: 22px 25px;
}

.card-footer {
    padding: 16px 25px;
    border-top: 1px solid var(--border);
    background: rgba(248, 250, 252, 0.5);
}

/* ===== AUTH PAGES ===== */
.auth-container {
    max-width: 460px;
    margin: 0 auto;
    padding: 50px 20px 60px;
    animation: fadeInUp 0.6s ease;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.12), 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 48px 42px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa, #6366f1);
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: -0.5px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 32px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-card .form-group {
    margin-bottom: 22px;
}

.auth-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

.auth-card .form-control {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.auth-card .form-control:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 2px 8px rgba(99, 102, 241, 0.08);
}

.auth-card .form-control::placeholder {
    color: #9ca3af;
}

.auth-card select.form-control {
    cursor: pointer;
    background: #f9fafb;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5, #6d28d9);
}

.auth-card .auth-link {
    text-align: center;
    margin-top: 18px;
    color: var(--gray);
    font-size: 0.88rem;
}

.auth-card .auth-link a {
    color: #6366f1;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-card .auth-link a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* ===== DASHBOARD ===== */
.dashboard {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h2 {
    font-size: 1.8rem;
    color: var(--dark);
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 6px;
    font-weight: 600;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 25px;
    gap: 4px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
}

/* ===== TABLE ===== */
.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    font-weight: 700;
    color: var(--dark);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.data-table tr:hover {
    background: rgba(99, 102, 241, 0.02);
}

.data-table .actions {
    white-space: nowrap;
}

.data-table .actions .btn {
    margin-right: 6px;
}

.data-table td .tag {
    display: inline-block;
    white-space: nowrap;
    margin-right: 4px;
}

/* ===== COURSES GRID ===== */
.courses-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-filter-bar {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-row input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-row select {
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    min-width: 150px;
    background: white;
    transition: var(--transition);
    cursor: pointer;
}

.filter-row select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
    outline: none;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s ease,
                border-color 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.course-card .card-body {
    flex: 1;
}

.course-card .card-footer {
    margin-top: auto;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.course-card:hover .card-header {
    background-size: 200% 200%;
    animation: shimmer 1.5s ease infinite;
}

.course-card:hover .card-body .price {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.course-card:hover .card-footer .btn {
    transform: translateY(-1px);
    transition: transform 0.3s ease;
}

.course-card .card-header {
    position: relative;
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: background-position 0.5s ease;
}

.course-card .card-header .badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.course-card:hover .card-header .badge {
    background: rgba(255,255,255,0.35);
}

.course-card .card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    transition: letter-spacing 0.3s ease;
}

.course-card:hover .card-header h3 {
    letter-spacing: 0.3px;
}

.course-card .card-body .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    font-size: 0.9rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--gray);
}

.info-row .value {
    font-weight: 600;
    color: var(--dark-secondary);
}

.session-tags {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
}

.tag-daily {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.tag-weekend {
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    pointer-events: all;
    z-index: 1001;
    animation: scaleIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark);
    background: var(--light);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    padding: 14px 24px;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, var(--success), #34d399);
}

.toast.error {
    background: linear-gradient(135deg, var(--danger), #f97316);
}

.toast.info {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
}

/* ===== ENROLLMENT SECTION ===== */
.enrollment-list {
    display: grid;
    gap: 15px;
}

.enrollment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
}

.enrollment-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.1);
}

.enrollment-card .course-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.enrollment-card .enrollment-meta {
    color: var(--gray);
    font-size: 0.85rem;
}

.status-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-active {
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-completed {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.status-pending {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

.empty-state .icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 7px 12px;
    }

    .nav-user-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .hero {
        padding: 50px 16px 70px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-stat {
        min-width: 80px;
    }

    .tech-marquee {
        margin-top: 20px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-row {
        flex-direction: column;
    }

    .filter-row {
        flex-direction: column;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .modal-content {
        padding: 20px;
        margin: 10px;
        border-radius: var(--radius-lg);
        max-height: 90vh;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .auth-container {
        padding: 20px 16px;
        min-height: auto;
    }

    .auth-card {
        padding: 30px 20px;
        margin: 0 auto;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo .tagline {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 14px;
        gap: 10px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .course-card .card-header {
        padding: 20px 16px;
    }

    .course-card .card-body {
        padding: 16px;
    }

    .course-card .card-footer {
        padding: 14px 16px;
    }
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
    color: #cbd5e1;
    padding: 0;
    margin-top: 80px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 14px;
    font-weight: 800;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    border-color: var(--primary);
}

.footer-links h4 {
    color: white;
    margin-bottom: 18px;
    font-size: 1rem;
    font-weight: 700;
}

.footer-links a,
.footer-links p {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 14px 20px;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 7px 12px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== AI CHATBOT ===== */
#chatBubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    height: 56px;
    padding: 0 20px 0 16px;
    border-radius: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.45), 0 0 0 3px rgba(139, 92, 246, 0.15);
    z-index: 9998;
    transition: all 0.3s ease;
    animation: bubbleBounce 3s ease-in-out infinite;
}

@keyframes bubbleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

#chatBubble:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 36px rgba(99, 102, 241, 0.55), 0 0 0 4px rgba(139, 92, 246, 0.2);
    animation: none;
}

#chatBubble.active {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    transform: scale(0.9);
    background: linear-gradient(135deg, #ef4444, #f97316);
    animation: none;
}

#chatBubble.active .chat-bubble-label {
    display: none;
}

.chat-bubble-icon {
    font-size: 1.5rem;
}

.chat-bubble-label {
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.chat-bubble-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: rgba(99, 102, 241, 0.25);
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

#chatBubble.active .chat-bubble-pulse {
    display: none;
}

#chatWindow {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-height: 520px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

#chatWindow.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    font-size: 1.5rem;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.chat-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: statusBlink 2s infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chat-header-actions {
    display: flex;
    gap: 6px;
}

.chat-clear-btn, .chat-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.chat-clear-btn:hover, .chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: 340px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-welcome {
    text-align: center;
    padding: 20px 10px;
}

.chat-welcome-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.chat-welcome h4 {
    color: var(--dark);
    margin-bottom: 6px;
    font-size: 1rem;
}

.chat-welcome p {
    color: var(--gray);
    font-size: 0.82rem;
    line-height: 1.5;
}

.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 0 10px 10px;
}

.chat-quick-actions button {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--dark);
}

.chat-quick-actions button:hover {
    background: #e0e7ff;
    border-color: #6366f1;
    color: #6366f1;
}

.chat-msg {
    display: flex;
    gap: 8px;
    animation: msgSlide 0.3s ease;
}

@keyframes msgSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.user-msg {
    flex-direction: row-reverse;
}

.chat-msg.user-msg .msg-bubble {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.chat-msg.bot-msg .msg-bubble {
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 16px 16px 16px 4px;
}

.msg-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e7ff;
    border-radius: 50%;
}

.msg-content {
    max-width: 80%;
}

.msg-bubble {
    padding: 10px 14px;
    font-size: 0.84rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.msg-time {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 4px;
    padding: 0 4px;
}

.user-msg .msg-time {
    text-align: right;
}

/* Typing indicator */
.typing-indicator .msg-bubble {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 14px 18px;
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.chat-input-area {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-top: 1px solid #e2e8f0;
    gap: 8px;
    background: #fafbfc;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: #6366f1;
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Mobile chatbot */
@media (max-width: 768px) {
    #chatWindow {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 80px;
        max-height: 70vh;
    }

    #chatBubble {
        bottom: 16px;
        right: 16px;
        height: 48px;
        padding: 0 14px 0 12px;
    }

    .chat-bubble-icon {
        font-size: 1.2rem;
    }

    .chat-bubble-label {
        font-size: 0.75rem;
    }
}
