:root {
    /* Colors */
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --secondary-color: #f59e0b;
    --bg-color: #f5f8fc;
    --white: #ffffff;
    --text-main: #172033;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    /* Typography */
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    
    /* Border Radius (Design System) */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows (Design System) */
    --shadow-sm: 0 4px 15px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 1.05rem;
}

.play-btn {
    gap: 10px;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    overflow: hidden;
    background: radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-main);
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(245, 158, 11, 0.2);
    z-index: -1;
    transform: rotate(-2deg);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Dashboard Mockup in Hero */
.mockup-card {
    background: var(--white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(14, 165, 233, 0.1);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.mockup-card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.02));
    border-radius: 24px;
    z-index: -1;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mockup-header .avatar {
    font-size: 2.2rem;
    background: #f1f5f9;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mockup-header h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.mockup-header span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mockup-body h5 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.mockup-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.progress-wrapper {
    margin-bottom: 25px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.progress-labels strong {
    color: var(--primary-color);
}

.mockup-btn {
    border-radius: 12px;
    font-size: 1rem;
    padding: 12px;
    width: 100%;
}

/* Categories Tabs */
.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.feature-card .icon {
    font-size: 2.5rem; /* تصغير الأيقونات */
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }
    
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        padding: 80px 30px 30px;
        transition: right 0.4s ease;
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        margin: 0 auto 30px;
        font-size: 1rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .image-wrapper img {
        height: 300px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
}

/* Stages Section */
.stages {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stage-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stage-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.stage-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--bg-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

.stage-card:hover .stage-icon {
    background: var(--primary-color);
    color: var(--white);
}

.stage-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.stage-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.stage-card .btn {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px; /* Arabic RTL slide effect */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.9rem;
}

/* Page Header (General) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    box-shadow: inset 0 -5px 15px rgba(0,0,0,0.1);
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.section-padding {
    padding: 80px 0;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 30px;
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

/* Courses Grid & Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.course-img {
    position: relative;
    width: 100%;
    height: 220px;
}

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

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

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.course-badge.badge-sec {
    background: #10b981; /* Emerald */
}

.course-badge.badge-third {
    background: #8b5cf6; /* Purple */
}

.course-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.course-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

.price {
    display: flex;
    flex-direction: column;
}

.price .current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.course-footer .btn {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* Scroll Animation (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Auth Pages */
.auth-page {
    background: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
                var(--bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.auth-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal !important;
}

.forgot-password {
    color: var(--primary-color);
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition);
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
    }
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Dashboard Layout */
.dashboard-body {
    background-color: #f1f5f9;
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 280px;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.dashboard-sidebar .sidebar-logo h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-info .avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    font-size: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.user-info h4 {
    font-size: 1.1rem;
    color: var(--text-main);
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
}

.sidebar-menu a.text-danger {
    color: #ef4444;
    margin-top: auto;
}

.sidebar-menu a.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-right: 280px; /* Offset for sidebar in RTL */
    padding: 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: var(--white);
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.header-title h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.header-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

.header-wallet {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-color);
    padding: 15px 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.header-wallet span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.header-wallet strong {
    font-size: 1.4rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.9rem;
    border-radius: 30px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-details h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Dashboard Sections */
.dashboard-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dash-section {
    background: var(--white);
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h3 {
    font-size: 1.3rem;
    color: var(--text-main);
}

.view-all {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Continue Course Card */
.continue-card {
    display: flex;
    gap: 25px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.continue-card img {
    width: 140px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

.continue-info {
    flex: 1;
}

.continue-info h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.continue-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Exams List */
.exams-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exam-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background: var(--bg-color);
}

.exam-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.exam-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.exam-score {
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 6px 12px;
    border-radius: 8px;
}

.exam-score.good {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.exam-score.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.mobile-sidebar-toggle {
    display: none;
}

@media (max-width: 992px) {
    .dashboard-body {
        flex-direction: column;
    }
    
    .mobile-sidebar-toggle {
        display: block !important;
    }
    
    .dashboard-sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        right: -100%;
        top: 0;
        padding: 20px;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .dashboard-sidebar.active {
        right: 0;
    }
    
    .dashboard-main {
        margin-right: 0;
        padding: 20px;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .continue-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .continue-card img {
        width: 100%;
        height: 160px;
    }
}
