/* ===== IMPORTS & VARIABLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    min-height: 100vh;
    line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    border-radius: 50%;
    transform: rotate(-15deg);
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0.05;
    border-radius: 50%;
    transform: rotate(15deg);
}

.container {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.6s ease;
    position: relative;
    z-index: 1;
}

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

.form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.form-wrapper .brand {
    text-align: center;
    margin-bottom: 32px;
}

.form-wrapper .brand .logo-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.form-wrapper .brand h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.form-wrapper .brand p {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 4px;
}

.form-container {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-container.active {
    display: block;
}

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

.form-container h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-container h2 i {
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 13px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary);
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    background: var(--gray-100);
    color: var(--gray-800);
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    font-size: 16px;
}

.toggle-password:hover {
    color: var(--primary);
}

.password-hint {
    display: block;
    margin-top: 6px;
    color: var(--gray-400);
    font-size: 12px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-primary i {
    margin-right: 8px;
}

.form-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-500);
    font-size: 14px;
}

.form-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.form-switch a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    display: none;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.message.info {
    display: block;
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ===== HEADER ===== */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo span {
    letter-spacing: -0.5px;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.main-nav ul li a i {
    font-size: 16px;
}

.main-nav ul li a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.main-nav ul li a.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.main-nav ul li a.active i {
    color: var(--white);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--gray-700);
    padding: 6px 12px;
    border-radius: var(--radius);
    background: var(--gray-100);
}

.user-name i {
    font-size: 20px;
    color: var(--primary);
}

.btn-logout {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.btn-logout:hover {
    background: #fee2e2;
    transform: scale(1.05);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}

.page {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--primary);
}

.page-header p {
    color: var(--gray-500);
    font-size: 16px;
    margin-top: 4px;
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card .stat-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.stat-card .stat-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-card .stat-icon.green {
    background: #d1fae5;
    color: #059669;
}

.stat-card .stat-icon.orange {
    background: #fef3c7;
    color: #d97706;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.stat-info p {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
}

/* ===== COURSE GRID ===== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.course-card .course-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-card .course-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image-wrapper img {
    transform: scale(1.05);
}

.course-card .course-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.course-card .course-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.course-card .course-badge.category {
    background: rgba(99, 102, 241, 0.9);
    color: white;
}

.course-card .course-badge.level {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.course-card .course-content {
    padding: 20px;
}

.course-card .course-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.course-card .course-content p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card .course-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.course-card .course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--gray-500);
}

.course-card .course-meta span i {
    color: var(--primary);
    font-size: 14px;
}

.course-card .course-stats {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    margin-bottom: 16px;
}

.course-card .course-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--gray-500);
}

.course-card .course-stats span i {
    font-size: 14px;
}

.course-card .course-stats span i.fa-file-pdf {
    color: #ef4444;
}

.course-card .course-stats span i.fa-video {
    color: #3b82f6;
}

.btn-view {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
}

.btn-view:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-view i {
    margin-right: 8px;
}

/* ===== VIDEO GRID ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.video-item .video-thumbnail {
    position: relative;
    height: 160px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-item .video-thumbnail i {
    font-size: 48px;
    color: white;
    opacity: 0.9;
    transition: var(--transition);
}

.video-item:hover .video-thumbnail i {
    transform: scale(1.1);
}

.video-item .video-thumbnail .video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.video-item .video-info {
    padding: 16px;
}

.video-item .video-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.video-item .video-info p {
    color: var(--gray-500);
    font-size: 13px;
}

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

.pdf-item {
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.pdf-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateX(4px);
}

.pdf-item .pdf-icon {
    width: 44px;
    height: 44px;
    background: #fee2e2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ef4444;
    flex-shrink: 0;
}

.pdf-item .pdf-info {
    flex: 1;
    min-width: 0;
}

.pdf-item .pdf-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.pdf-item .pdf-info p {
    color: var(--gray-500);
    font-size: 13px;
}

.pdf-item .pdf-info .pdf-size {
    font-size: 12px;
    color: var(--gray-400);
}

.pdf-item .btn-pdf {
    padding: 8px 20px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
}

.pdf-item .btn-pdf:hover {
    background: #059669;
    transform: scale(1.05);
}

.pdf-item .btn-pdf i {
    margin-right: 6px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    margin: 3% auto;
    padding: 32px;
    width: 92%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
}

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

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: 300;
    color: var(--gray-400);
    cursor: pointer;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-course .modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.modal-course .modal-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.modal-course .modal-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.modal-course .modal-badge.debutant {
    background: #d1fae5;
    color: #065f46;
}

.modal-course .modal-badge.intermediaire {
    background: #fef3c7;
    color: #92400e;
}

.modal-course .modal-badge.avance {
    background: #fee2e2;
    color: #991b1b;
}

.modal-course .modal-description {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

.modal-course .modal-section {
    margin-bottom: 24px;
}

.modal-course .modal-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.modal-course .modal-section h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.modal-video-item,
.modal-pdf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--gray-100);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-video-item:hover,
.modal-pdf-item:hover {
    background: var(--gray-200);
    transform: translateX(6px);
}

.modal-video-item i {
    color: #3b82f6;
    font-size: 18px;
}

.modal-pdf-item i {
    color: #ef4444;
    font-size: 18px;
}

.modal-video-item .duration,
.modal-pdf-item .size {
    margin-left: auto;
    color: var(--gray-500);
    font-size: 13px;
}

/* ===== VIDEO PLAYER ===== */
.video-player h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 16px 0 20px;
    border-radius: var(--radius);
    background: var(--dark);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.btn-close-modal {
    padding: 12px 32px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    font-family: inherit;
}

.btn-close-modal:hover {
    background: #dc2626;
    transform: scale(1.02);
}

.btn-close-modal i {
    margin-right: 8px;
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 80px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
    max-width: 420px;
    border-left: 4px solid var(--primary);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: var(--success);
}

.notification.success i {
    color: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.error i {
    color: var(--danger);
}

.notification.info {
    border-left-color: var(--primary);
}

.notification.info i {
    color: var(--primary);
}

.notification i {
    font-size: 20px;
}

.notification span {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
    background: var(--gradient-primary);
    color: white;
    padding: 32px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

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

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

.welcome-banner h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.welcome-banner p {
    opacity: 0.9;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.welcome-banner .welcome-icon {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 72px;
    opacity: 0.15;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 8px;
    }

    .main-nav {
        width: 100%;
        order: 3;
        overflow-x: auto;
        padding: 4px 0;
    }

    .main-nav ul {
        gap: 2px;
        flex-wrap: nowrap;
    }

    .main-nav ul li a {
        padding: 6px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .main-nav ul li a span {
        display: none;
    }

    .logo span {
        font-size: 18px;
    }

    .user-menu .user-name span {
        display: none;
    }

    .form-wrapper {
        padding: 32px 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-info h3 {
        font-size: 22px;
    }

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

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

    .pdf-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pdf-item .btn-pdf {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        padding: 20px;
        margin: 5% auto;
        width: 95%;
    }

    .welcome-banner {
        padding: 24px;
    }

    .welcome-banner h2 {
        font-size: 22px;
    }

    .welcome-banner .welcome-icon {
        display: none;
    }

    .main-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 24px 16px;
    }

    .container {
        max-width: 100%;
    }
}