/* dashboard.css */

body {
    background-color: #FAFBFD;
    font-family: 'Cairo', sans-serif;
    color: #111;
}

/* Page Header and Title */
.dashboard-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 15px;
}

.page-title {
    font-size: 26px;
    font-weight: 900;
    font-family: 'Cairo', sans-serif !important;
    color: #111;
    margin-bottom: 6px;
}

.page-subtitle {
    font-size: 13.5px;
    color: #6b7280;
    font-weight: 600;
}

/* Tabs Toggle Customization */
.tab-btn-custom {
    padding: 8px 30px;
    border-radius: 50px;
    border: 1.5px solid #00416a;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    color: #00416a;
    transition: all 0.3s ease;
}

.tab-btn-custom.active {
    background: #00416a;
    color: #fff;
}

/* Common Section Title */
.section-heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #05457A !important; /* Dark Blue */

    margin-bottom: 25px;
}

/* Content Sections */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card General Style */
.dash-card {
    background-color: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.3s ease;
}

.dash-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

/* --- Course Progress Cards --- */
.progress-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.progress-img-wrapper {
    width: 100px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa; /* Fallback */
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progress-content {
    flex-grow: 1;
}

.pills-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.custom-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

.pill-orange { background: #fff4e5; color: #d97706; }
.pill-blue { background: #eef4ff; color: #2563eb; }

.course-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.teacher-name {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.progress-area {
    width: 250px;
    flex-shrink: 0;
}

.progress-text-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.progress-bar-bg {
    height: 6px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.progress-bar-fill {
    height: 100%;
    background: #00416a;
    border-radius: 4px;
}

.btn-resume {
    background: transparent;
    border: none;
    color: #f59e0b;
    font-weight: 800;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
}

/* --- Stats Small Cards --- */
.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 120px;
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    align-self: flex-end;
}

.stat-icon-orange { background: #fff4e5; color: #f59e0b; }

.stat-main-text {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 2px;
}

.stat-sub-text {
    font-size: 12.5px;
    color: #6b7280;
    font-weight: 700;
}

/* --- Subjects Display Cards --- */
.subject-pill-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sp-top {
    padding: 12px 15px;
}

.sp-bottom {
    padding: 15px;
    background-color: #fff;
}

.subject-pill-card.bg-light-blue .sp-top { background: #eff6ff; }     /* Science */
.subject-pill-card.bg-light-green .sp-top { background: #ecfdf5; }    /* Biology */
.subject-pill-card.bg-light-purple .sp-top { background: #f5f3ff; }   /* Arabic */
.subject-pill-card.bg-light-yellow .sp-top { background: #fffbeb; }   /* English */
.subject-pill-card.bg-light-red .sp-top { background: #fdf2f8; }      /* Math */
.subject-pill-card.bg-light-gray .sp-top { background: #f3f4f6; }     /* Chemistry */

.subject-name {
    font-size: 14px;
    font-weight: 800;
}

.subject-pill-card.bg-light-blue .subject-name { color: #1e40af; }
.subject-pill-card.bg-light-green .subject-name { color: #065f46; }
.subject-pill-card.bg-light-purple .subject-name { color: #6d28d9; }
.subject-pill-card.bg-light-yellow .subject-name { color: #b45309; }
.subject-pill-card.bg-light-red .subject-name { color: #be185d; }
.subject-pill-card.bg-light-gray .subject-name { color: #4b5563; }

.subject-count { font-size: 22px; font-weight: 900; color: #111; margin-bottom: 2px;}
.subject-label { font-size: 12px; color: #6b7280; font-weight: 700; }

/* --- Exams Records --- */
.exam-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.exam-info h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
}

.exam-info p {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 8px;
}

.exam-pill-row span {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-inline-end: 8px;
}

.pill-grey { background: #f3f4f6; color: #4b5563; }

.exam-score-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.score-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 20px;
    min-width: 120px;
}

.score-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 4px;
}

.score-value {
    font-size: 16px;
    font-weight: 900;
    color: #111;
}

.btn-review {
    font-size: 13px;
    font-weight: 800;
    color: #00416a;
    border: 1.5px solid #00416a;
    border-radius: 6px;
    padding: 6px 16px;
    background: transparent;
    transition: all 0.3s;
}

.btn-review:hover {
    background: #00416a;
    color: #fff;
}

/* --- Completed Courses --- */
.completed-course-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s;
}
.completed-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.cc-image-wrapper {
    position: relative;
    height: 140px;
}

.cc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-done {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.badge-done i {
    color: #10b981;
}

.cc-body { padding: 15px; }

.cc-category {
    background-color: #f0f5ff;
    color: #1e3a8a;
    text-align: right;
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 800;
    margin: -15px -15px 15px -15px;
}

.cc-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.5;
    text-align: right;
    color: #111;
}

.cc-teacher-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}
.cc-teacher-row img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.cc-teacher-name-block {
    text-align: right;
}
.cc-teacher-name {
    font-size: 12.5px;
    font-weight: 800;
    color: #4b5563;
    display: block;
}
.cc-teacher-subtitle {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    display: block;
    margin-top: 2px;
}

.cc-footer {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    align-items: center;
    border-top: 1px dashed #e5e7eb;
    padding-top: 12px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
}

/* --- Review Tab Specifics --- */
.review-item-card {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
    margin-bottom: 20px;
    padding-top: 10px;
}
.review-item-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-course-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}
.review-course-sub {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 10px;
}
.stars i { color: #fbbf24; font-size: 13px; }
.stars .fa-regular { color: #d1d5db; }

/* Teacher review card */
.teacher-rev-card {
    display: flex;
    align-items: center;
    gap: 15px;
}
.tr-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.tr-info h5 { font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.tr-info span { font-size: 12px; color: #6b7280; font-weight: 700; display: block; margin-bottom: 4px;}

/* Comments List */
.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.comment-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-body { flex: 1; }
.comment-author { font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.comment-text {
    font-size: 13.5px;
    color: #4b5563;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 8px;
}
.comment-date {
    font-size: 12px;
    color: #2563eb;
    font-weight: 700;
}


/* --- Extracted Inline Styles (Refactored) --- */
.navbar-logo-img-13 {
    height: 50px;
}
.custom-style-1 {
    margin-inline-start: 60px;
}
.custom-style-2 {
    gap: 15px;
}
.custom-style-3 {
    gap: 15px;
    margin-inline-end: 30px;
}
.btn-nav-primary-16 {
    background-color: #00416a;
    color: white;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14.5px;
}
.nav-circle-btn-67 {
    width: 44px;
    height: 44px;
    background: #eef4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00416a;
    text-decoration: none;
}
.custom-style-4 {
    font-size: 18px;
}
.custom-style-5 {
    cursor: pointer;
}
.nav-circle-btn-44 {
    width: 44px;
    height: 44px;
    background: #eef4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00416a;
}
.custom-style-6 {
    line-height: 1.3;
}
.custom-style-7 {
    font-size: 14px;
    color: #111;
}
.custom-style-8 {
    font-size: 11.5px;
    font-weight: 700;
}
.custom-style-9 {
    font-size: 13px;
    color: #6b7280;
}
.bg-section-white-45 {
    background-color: #fff;
    padding: 40px 0 15px;
}
.custom-style-10 {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}
.custom-style-11 {
    font-size: 23px;
    font-weight: 800;
}
.custom-style-12 {
    font-size: 14px;
}
.bg-section-white-79 {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 25px;
}
.bg-section-white-40 {
    background-color: #fff;
    padding: 40px 0;
}
.custom-style-13 {
    color: #00416a;
}
.flex-center-overflow-49 {
    width: 100px;
    height: 100px;
    background: #e0f2fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.img-w100-cover-45 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.custom-style-14 {
    min-width: 250px;
}
.custom-style-15 {
    border: 1px solid #f59e0b;
    color: #f59e0b;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.custom-style-16 {
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}
.custom-style-17 {
    color: #f59e0b;
    font-size: 12px;
    font-weight: 700;
}
.custom-style-18 {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    margin-bottom: 6px;
}
.custom-style-19 {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}
.custom-style-20 {
    text-align: right;
    margin-right: 80px;
}
.custom-style-21 {
    font-size: 14px;
    font-weight: 800;
    color: #111;
}
.progress-bar-350-85 {
    width: 350px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.progress-65-46 {
    width: 65%;
    height: 100%;
    background: #00416a;
}
.custom-style-22 {
    font-size: 13px;
    color: #4b5563;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
}
.custom-style-23 {
    color: #f59e0b;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.custom-style-24 {
    border-color: #e5e7eb;
}
.flex-center-overflow-49-1 {
    width: 100px;
    height: 100px;
    background: #ffe4e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bg-section-gray-43 {
    background-color: #F3F3F3;
    padding: 50px 0;
}
.custom-style-25 {
    padding: 24px;
}
.custom-style-26 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stat-primary-num-47 {
    font-weight: 800;
    font-size: 25px;
    color: #111;
}
.custom-style-27 {
    font-size: 13.5px;
    color: #6b7280;
    font-weight: 700;
    margin-top: 5px;
    text-align: right;
}
.custom-style-28 {
    font-weight: 800;
    color: #111;
    font-family: inherit;
}
.custom-style-29 {
    font-size: 25px;
}
.custom-style-30 {
    font-size: 15px;
    font-weight: 500;
}
.custom-style-31 {
    margin: 0 4px;
}
.custom-style-32 {
    margin-top: 30px;
}
.bg-section-white-43 {
    background-color: #ffffff;
    padding: 50px 0;
}
.custom-style-33 {
    font-size: 11px;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 8px;
}
.custom-style-34 {
    background:#dcfce7;
    color:#166534;
}
.custom-style-35 {
    font-size: 13px;
    font-weight: 800;
}
.custom-style-36 {
    font-size: 11px;
    color: #2563eb;
    font-weight: 700;
}
.custom-style-37 {
    background:#f3e8ff;
    color:#7e22ce;
}
.custom-style-38 {
    background: transparent;
}
.custom-style-39 {
    background:#e0e7ff;
    color:#4338ca;
}
.custom-style-40 {
    background:#ffe4e6;
    color:#be123c;
}
.custom-style-41 {
    color: #d97706;
    font-weight: 800;
    font-size: 15px;
}
.bg-section-white-48 {
    background-color: #ffffff;
    padding: 50px 0 80px;
}
.custom-style-42 {
    filter: brightness(0.9);
}
.custom-style-43 {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 15px;
}
.custom-style-44 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 20px;
}
.custom-style-45 {
    color: #9ca3af;
    font-size: 14px;
    cursor:pointer;
}
/* --- Added Layout Classes for Reviews --- */

/* Reviews Tab Custom Grid Layout */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

.review-section-title {
    font-size: 19px;
    font-weight: 800;
    color: #00416a;
    margin-bottom: 25px;
}

.rev-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #00416a;
    margin-bottom: 48px !important;
}

/* Base item review layout */
.rev-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6; /* solid light grey as in image */
    padding: 22px 0;
}

.rev-item-info h5 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111;
}
.rev-item-info span {
    display: block;
    font-size: 12.5px;
    color: #6b7280;
    margin-bottom: 14px;
    font-weight: 600;
}
.rev-stars i {
    color: #fbbf24;
    font-size: 14px;
    margin-left: 2px;
}

.rev-arrow {
    color: #94a3b8; /* darker grey for clearer visibility */
    font-size: 13px;
}

/* Teachers specific */
.teacher-rev-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tr-img {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    object-fit: cover;
}

/* Comment Cards List */
.comments-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-direction: row-reverse;
}

.comment-right {
    display: flex;
    gap: 20px;
    flex: 1; /* take up left space */
}

.comment-user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content h5 {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
}

.comment-content p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 12px;
    font-weight: 600;
}

.comment-date {
    font-size: 13px;
    color: #60a5fa; 
    font-weight: 700;
}

.comment-left {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start; /* right aligned inside RTL */
    text-align: right;
}

.lesson-title {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.5;
}

.course-grey-title {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 30px; 
    line-height: 1.5;
}

.watch-btn {
    font-size: 14px;
    color: #f59e0b; 
    font-weight: 800;
    text-decoration: none;
}
.watch-btn:hover {
    color: #d97706;
}

/* --- Tab Transition Animation - Smooth & Beautiful --- */
.tab-pane {
    opacity: 0;
    display: none;
    transform: translateY(15px) scale(0.97);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: blur(1px);
    will-change: transform, opacity, filter;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    animation: dashboardFadeInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Dashboard specific smooth animation */
@keyframes dashboardFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
        filter: blur(2px);
    }
    60% {
        opacity: 0.9;
        transform: translateY(3px) scale(1.01);
        filter: blur(0.3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Enhanced dashboard tab navigation */
.dashboard-tabs .tab-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    overflow: hidden;
}

.dashboard-tabs .tab-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(5, 69, 122, 0.1), transparent);
    transition: left 0.5s ease;
}

.dashboard-tabs .tab-link:hover::before {
    left: 100%;
}

.dashboard-tabs .tab-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 69, 122, 0.15);
}

.dashboard-tabs .tab-link.active {
    background: linear-gradient(135deg, rgba(5, 69, 122, 0.1) 0%, rgba(10, 94, 143, 0.15) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(5, 69, 122, 0.2);
}

/* Smooth dashboard content reveal */
.tab-pane .dashboard-card {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-pane.active .dashboard-card {
    opacity: 1;
    transform: translateY(0);
}

.tab-pane .dashboard-card:nth-child(1) { transition-delay: 0.05s; }
.tab-pane .dashboard-card:nth-child(2) { transition-delay: 0.1s; }
.tab-pane .dashboard-card:nth-child(3) { transition-delay: 0.15s; }
.tab-pane .dashboard-card:nth-child(4) { transition-delay: 0.2s; }
.tab-pane .dashboard-card:nth-child(5) { transition-delay: 0.25s; }
/* --- Extracted Inline Styles --- */

.tab-loader-wrapper {
    padding: 100px 0;
}
.custom-spinner {
    width: 3.5rem;
    height: 3.5rem;
    color: #00416a;
}
.exam-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 8px;
}
.exam-subtitle {
    font-size: 12.5px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}
.exam-unit {
    color: #3b82f6;
    margin-right: 5px;
}
.score-box {
    background-color: #f3f4f6;
    border-radius: 12px;
    min-width: 90px;
    text-align: center;
}
.score-box-label {
    font-size: 11px;
    font-weight: 700;
    color: #111;
    display: block;
    margin-bottom: 5px;
}
.score-val-black {
    font-size: 14px;
    font-weight: 800;
    color: #111;
}
.score-val-red {
    font-size: 14px;
    font-weight: 800;
    color: #e11d48;
}
.score-val-blue {
    font-size: 14px;
    font-weight: 800;
    color: #0284c7;
}
.pill-indigo {
    background-color: #e2e8f0;
    color: #6366f1;
}
.pill-pink {
    background-color: #fce7f3;
    color: #db2777;
}
.pill-sky {
    background-color: #e0f2fe;
    color: #0284c7;
}
.badge-done i {
    color: #0d9488;
}
.rev-stars i.text-muted {
    color: #d1d5db !important;
}
