:root {
    --white: #ffffff;
    --white-rgb: 255, 255, 255;
    --black: #000000;
}

/* ============================================
   Student Course Access Styles
   ============================================ */

.section-title-area-spacing {
    margin-bottom: 30px;
}

.dashboard-gap-md {
    margin-bottom: 30px;
}

.action-btn-compact {
    padding: 6px 12px;
}

/* Quiz Header Section */
.quiz-header-section {
    background: linear-gradient(135deg, var(--theme) 0%, var(--theme-2) 100%);
    padding: 40px;
    border-radius: 18px;
    color: white;
    position: relative;
    overflow: hidden;
}

.quiz-header-content {
    position: relative;
    z-index: 2;
}

.quiz-header-title {
    color: white;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
}

.quiz-header-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.6;
}

.quiz-header-decoration-1,
.quiz-header-decoration-2 {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.quiz-header-decoration-1 {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
}

.quiz-header-decoration-2 {
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
}

/* Quiz Info Cards */
.quiz-info-card {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: var(--box-shadow);
    text-align: center;
    border-top: 4px solid var(--theme-2);
    position: relative;
}

.quiz-info-card.theme-border {
    border-top: 4px solid var(--theme);
}

.quiz-info-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 167, 41, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.quiz-info-icon-wrapper.theme-bg {
    background: rgba(0, 79, 68, 0.1);
}

.quiz-info-icon {
    color: var(--theme-2);
    font-size: 28px;
}

.quiz-info-icon.theme-color {
    color: var(--theme);
}

.quiz-info-label {
    color: #6C706F;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-info-value {
    color: var(--theme);
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.quiz-info-card.timer-card {
    padding: 31px;
}

/* Quiz Timer */
#quiz-timer {
    font-size: 32px;
    font-weight: 800;
    color: #856404;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
}

/* Previous Attempt Alert */
.previous-attempt-alert {
    background: linear-gradient(135deg, rgba(0, 79, 68, 0.1) 0%, rgba(255, 167, 41, 0.1) 100%);
    border: 2px solid var(--theme);
    border-radius: 18px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.previous-attempt-content {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.previous-attempt-info {
    flex: 1;
}

.previous-attempt-title {
    color: var(--header);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.previous-attempt-title-icon {
    color: var(--theme);
}

.previous-attempt-details {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.previous-attempt-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.previous-attempt-badge {
    display: flex;
    justify-content: flex-end;
}

.previous-attempt-score-label {
    color: #6C706F;
    display: block;
    margin-bottom: 5px;
}

.previous-attempt-score-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--theme);
}

.badge-passed {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.badge-failed {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.view-results-btn {
    white-space: nowrap;
}

.results-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.retake-quiz-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.retake-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 68, 0.3);
}

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

/* Question Card */
.question-card {
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: var(--box-shadow);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.question-number-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--theme);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 79, 68, 0.3);
}

.question-header {
    margin-bottom: 25px;
    padding-right: 60px;
}

.question-title {
    color: var(--header);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.5;
}

.question-type-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.question-type-badge.theme-2 {
    background: var(--theme-2);
    color: var(--header);
}

.question-type-badge.theme {
    background: var(--theme);
    color: white;
}

/* Quiz Options */
.quiz-option-item {
    margin-bottom: 12px;
    position: relative;
}

.quiz-radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-option-label {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    position: relative;
    user-select: none;
}

.quiz-option-radio {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #ffffff;
}

.quiz-option-radio-dot {
    width: 10px;
    height: 10px;
    background: var(--eduex-primary, #635bff);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.quiz-option-text {
    color: #1e293b;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    flex: 1;
}

.quiz-option-check {
    color: var(--eduex-primary, #635bff);
    font-size: 18px;
    margin-left: 10px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-option-label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(4px);
}

/* Checked State - Highly Visible */
.quiz-option-item input[type="radio"]:checked + .quiz-option-label {
    background: var(--eduex-primary-light, #f3f0ff) !important;
    border-color: var(--eduex-primary, #635bff) !important;
    box-shadow: 0 0 0 1px var(--eduex-primary, #635bff), 0 4px 14px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.12) !important;
}

.quiz-option-item input[type="radio"]:checked + .quiz-option-label .quiz-option-radio {
    border-color: var(--eduex-primary, #635bff) !important;
    background: #ffffff !important;
}

.quiz-option-item input[type="radio"]:checked + .quiz-option-label .quiz-option-radio-dot {
    opacity: 1 !important;
    transform: scale(1) !important;
    background: var(--eduex-primary, #635bff) !important;
    display: block !important;
}

.quiz-option-item input[type="radio"]:checked + .quiz-option-label .quiz-option-text {
    color: #1e1b4b !important;
    font-weight: 700 !important;
}

.quiz-option-item input[type="radio"]:checked + .quiz-option-label .quiz-option-check {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Quiz Submit Section */
.quiz-submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.quiz-submit-btn {
    font-size: 18px;
    padding: 18px 50px;
}

.quiz-submit-info {
    color: #6C706F;
    margin-top: 15px;
    font-size: 14px;
}

/* Quiz Timer Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.quiz-timer-icon {
    animation: pulse 2s infinite;
}

/* Floating Quiz Timer */
.floating-quiz-timer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    background: #1e1b4b;
    border-radius: 40px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(30, 27, 75, 0.25);
    min-width: 100px;
    transition: all 0.25s ease;
}

.floating-quiz-timer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 27, 75, 0.35);
}

.floating-timer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
}

.floating-timer-icon {
    font-size: 16px;
    color: #fbbf24;
}

.floating-timer-text {
    font-size: 18px;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
    color: #ffffff;
}

/* Warning state when time is running low (less than 5 minutes) */
.floating-quiz-timer.warning {
    background: #ea580c;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Danger state when time is very low (less than 1 minute) */
.floating-quiz-timer.danger {
    background: #dc2626;
    border-color: rgba(255, 255, 255, 0.2);
    animation: gentlePulse 1.2s infinite ease-in-out;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-quiz-timer {
        bottom: 16px;
        right: 16px;
        padding: 8px 14px;
        min-width: 80px;
    }

    .floating-timer-icon {
        font-size: 15px;
    }

    .floating-timer-text {
        font-size: 16px;
        min-width: 50px;
    }
}

/* Floating Navigation Buttons - Clean, No Harsh Shadows */
.floating-navigation-buttons {
    position: fixed;
    bottom: 24px;
    left: calc(50% + 175px);
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 8px;
    align-items: center;
    background: #ffffff;
    padding: 6px 8px;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-collapsed .floating-navigation-buttons,
.course-sidebar-wrapper.collapsed ~ .course-main-content-wrapper .floating-navigation-buttons {
    left: 50%;
}

.floating-nav-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
}

.floating-nav-btn:hover:not(:disabled) {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.25) !important;
}

.floating-nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.floating-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

/* Responsive adjustments for floating navigation */
@media (max-width: 991px) {
    .floating-navigation-buttons {
        bottom: 16px;
        left: 50% !important;
        transform: translateX(-50%);
        padding: 5px 6px;
        gap: 6px;
    }

    .floating-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

/* ── Smooth Modern Loading Spinner & Animations ───────────────────────────── */
.eduex-smooth-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.15);
    border-top-color: var(--eduex-primary, #635bff);
    border-radius: 50%;
    animation: smoothSpinner 0.75s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin: 0 auto;
    display: inline-block;
}

.eduex-smooth-spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

@keyframes smoothSpinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.eduex-content-loader-overlay {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInContent 0.25s ease forwards;
}

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

.floating-quiz-timer {
    bottom: 20px;
    right: 20px;
}

/* Lesson Content */
.lesson-description-content {
    line-height: 1.8;
    color: var(--text);
}

.lesson-actions {
    margin-top: 30px;
}

/* Assignment Content */
.assignment-description {
    line-height: 1.8;
    color: var(--text);
}

.assignment-instructions {
    background: var(--bg);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--theme);
}

.assignment-instructions-title {
    color: var(--header);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assignment-instructions-icon {
    color: var(--theme);
}

.assignment-instructions-text {
    color: var(--text);
    line-height: 1.8;
}

.assignment-files {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.assignment-files-title {
    color: var(--header);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assignment-files-icon {
    color: var(--theme);
}

.assignment-file-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.assignment-file-link {
    color: var(--theme);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.assignment-file-size {
    color: #6C706F;
    font-size: 13px;
}

/* Assignment Submission Status */
.submission-status-pending {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.submission-status-graded {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    color: #155724;
}

.submission-status-returned {
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid var(--theme);
    color: #004085;
}

.submission-status-box {
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.submission-status-title {
    color: var(--header);
    margin-bottom: 15px;
}

.submission-status-text {
    text-transform: capitalize;
}

.submission-grade-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--theme);
}

.submission-text-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.submission-text-content {
    color: var(--text);
    line-height: 1.8;
}

.submission-files-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Assignment Form */
.assignment-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.assignment-form-label {
    color: var(--header);
    font-weight: 600;
    margin-bottom: 10px;
}

.assignment-form-textarea {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 15px;
}

.assignment-form-file-input {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px;
}

.assignment-form-help {
    color: #6C706F;
    margin-top: 8px;
    display: block;
}

/* Quiz Results */
.results-summary-card {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid;
}

.results-summary-card.passed {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.results-summary-card.failed {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.results-summary-card.theme {
    background: var(--bg);
    border-color: var(--theme);
}

.results-summary-card.theme-2 {
    background: var(--bg);
    border-color: var(--theme-2);
}

.results-score-value {
    margin-bottom: 10px;
    font-size: 36px;
}

.results-score-value.passed {
    color: #28a745;
}

.results-score-value.failed {
    color: #dc3545;
}

.results-score-value.theme {
    color: var(--theme);
}

.results-score-value.theme-2 {
    color: var(--theme-2);
}

.results-passing-score {
    color: #6C706F;
}

.results-label {
    margin-bottom: 0;
    color: var(--header);
    font-weight: 600;
}

/* Question Review */
.question-review-title {
    color: var(--header);
}

.question-review-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid;
}

.question-review-item.correct {
    border-left-color: #28a745;
}

.question-review-item.incorrect {
    border-left-color: #dc3545;
}

.question-review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.question-review-number {
    color: var(--header);
    margin: 0;
}

.question-review-badge {
    padding: 8px 16px;
    border-radius: 20px;
}

.question-review-badge.correct {
    background: #28a745;
    color: white;
}

.question-review-badge.incorrect {
    background: #dc3545;
    color: white;
}

.question-review-text {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-option-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.review-option-item.correct-answer {
    background: rgba(40, 167, 69, 0.1);
}

.review-option-item.wrong-answer {
    background: rgba(220, 53, 69, 0.1);
}

.review-option-item.default {
    background: #fff;
}

.review-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-option-text {
    font-weight: 400;
}

.review-option-text.correct {
    color: #28a745;
    font-weight: 600;
}

.review-option-text.wrong {
    color: #dc3545;
}

.review-option-text.default {
    color: var(--text);
}

.review-option-label {
    margin-left: auto;
    font-size: 14px;
}

.review-option-label.correct {
    color: #28a745;
}

.review-option-label.wrong {
    color: #dc3545;
}

/* Assignment Submission Success */
.assignment-submission-success {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.assignment-submission-success-title {
    color: #155724;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assignment-submission-success-icon {
    color: #28a745;
    font-size: 28px;
}

.assignment-submission-success-text {
    color: #155724;
    margin: 0;
}

.submission-details-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.submission-details-title {
    color: var(--header);
    margin-bottom: 20px;
}

.submission-detail-item {
    margin-bottom: 15px;
}

.submission-detail-label {
    color: var(--header);
}

.submission-detail-value {
    color: var(--text);
}

.submission-detail-divider {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

.submission-text-box-content {
    background: var(--bg);
    padding: 20px;
    border-radius: 10px;
    color: var(--text);
    line-height: 1.8;
}

.submission-file-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submission-file-link {
    color: var(--theme);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.submission-file-size {
    color: #6C706F;
    font-size: 13px;
}

/* Video Player */
.video-iframe {
    border-radius: 18px;
}

/* ============================================
   Full Screen Course Access Layout
   ============================================ */

.course-access-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    z-index: 9999;
    overflow: hidden;
}

/* Course Header Bar */
.course-header-bar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    color: #1e293b;
    border-bottom: 1px solid rgba(238, 241, 248, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    z-index: 100;
    position: relative;
}

.course-header-bar .sidebar-toggle-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.course-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.sidebar-toggle-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
    transform: translateY(-1px);
}

.sidebar-toggle-btn:active {
    transform: scale(0.95);
}

.sidebar-toggle-btn.is-collapsed {
    background: var(--eduex-primary-light, #f3f0ff);
    color: var(--eduex-primary, #635bff);
    border-color: var(--eduex-primary-border, #ede9fe);
}

.sidebar-toggle-btn.is-collapsed:hover {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
}

.sidebar-toggle-btn.active {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
}

.sidebar-toggle-btn i {
    transition: transform 0.25s ease;
    font-size: 16px;
}

.course-header-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.course-header-play-icon {
    font-size: 20px;
    color: var(--eduex-primary, #635bff);
    flex-shrink: 0;
}

.course-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e1b4b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
}

.course-header-duration {
    font-size: 12px;
    font-weight: 600;
    color: var(--eduex-primary, #635bff);
    background: var(--eduex-primary-light, #f3f0ff);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.course-header-center {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.course-header-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 30px;
    gap: 4px;
}

.course-header-tabs li {
    margin: 0;
}

.course-header-tabs a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: 25px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.course-header-tabs a:hover {
    color: #1e293b;
}

.course-header-tabs li.active a {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.25);
}

.course-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.course-header-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-nav-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.course-nav-btn:hover {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
    transform: scale(1.05);
}

.course-nav-btn:active {
    transform: scale(0.95);
}

.course-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.course-header-link {
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.course-header-link:hover {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
}

/* Main Container */
.course-access-main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    height: calc(100vh - 64px);
}

/* Sidebar Overlay Backdrop for Mobile/Tablet */
.course-sidebar-backdrop {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.course-sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Wrapper */
.course-sidebar-wrapper {
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-right: 1px solid rgba(238, 241, 248, 0.95);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    flex-shrink: 0;
    z-index: 10;
}

/* Desktop Collapse: clean 0 width without negative margins */
.course-sidebar-wrapper.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

.course-sidebar-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f6;
    background: #fff;
}

.sidebar-mobile-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e1b4b;
}

.sidebar-close-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
    background: var(--eduex-primary-light, #f3f0ff);
    color: var(--eduex-primary, #635bff);
}

.course-sidebar {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Main Content Wrapper */
.course-main-content-wrapper {
    flex: 1;
    min-width: 0;
    width: 100%;
    overflow-y: auto;
    background: #f6f8fd;
    padding: 30px 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.course-main-content {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.course-main-content .lesson-content,
.course-main-content .quiz-content,
.course-main-content .assignment-content,
.course-main-content .mhq-courses-details-area,
.course-main-content .mhq-courses-details-wrapper,
.course-main-content .mhq-left-content {
    width: 100%;
    max-width: 100%;
}

/* Sidebar Search */
.sidebar-search {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--eduex-primary, #635bff);
    box-shadow: 0 0 0 3px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.12);
}

.search-icon-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #818cf8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results {
    margin-top: 12px;
}

/* Chapter Section */
.chapter-section {
    margin-bottom: 20px;
}

.chapter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.chapter-header:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.chapter-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.chapter-toggle-icon {
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    width: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chapter-header:hover .chapter-toggle-icon {
    color: var(--eduex-primary, #635bff);
}

.chapter-section.collapsed .chapter-toggle-icon.fa-chevron-down {
    transform: rotate(-90deg);
}

.chapter-number {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--eduex-primary, #635bff);
    background: var(--eduex-primary-light, #f3f0ff);
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.chapter-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e1b4b;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-progress {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.chapter-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Curriculum Item */
.curriculum-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.curriculum-item:hover {
    background: #f8fafc;
}

.curriculum-item.active {
    background: var(--eduex-primary-light, #f3f0ff);
    border-color: var(--eduex-primary-border, #ede9fe);
}

.curriculum-item.active .curriculum-item-title {
    color: var(--eduex-primary, #635bff);
    font-weight: 700;
}

.curriculum-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.curriculum-item.locked .curriculum-item-title {
    color: #94a3b8;
}

.curriculum-item.locked:hover {
    background: transparent;
}

.status-locked {
    color: #cbd5e1;
    font-size: 13px;
}

.curriculum-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.curriculum-item-icon i {
    font-size: 13px;
    color: #64748b;
}

.curriculum-item.active .curriculum-item-icon {
    background: var(--eduex-primary, #635bff);
}

.curriculum-item.active .curriculum-item-icon i {
    color: #ffffff;
}

.curriculum-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.curriculum-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
    word-wrap: break-word;
}

.curriculum-item-duration {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}

.curriculum-item-status {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-completed {
    color: #059669;
    font-size: 16px;
}

.status-circle {
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .course-sidebar-mobile-header {
        display: flex;
    }

    .course-sidebar-wrapper {
        position: fixed;
        left: 0;
        top: 60px;
        bottom: 0;
        width: 320px;
        min-width: 320px;
        max-width: 85vw;
        z-index: 999;
        transform: translateX(-100%);
        margin-left: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        background: #fff;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .course-sidebar-wrapper.open {
        transform: translateX(0);
    }

    .course-sidebar-wrapper.collapsed {
        transform: translateX(-100%);
        width: 320px !important;
        min-width: 320px !important;
    }

    .course-main-content-wrapper {
        width: 100%;
        padding: 20px 15px;
    }
}

/* Mobile Icons Only (< 768px) */
@media (max-width: 767px) {
    .course-header-bar {
        padding: 0 12px;
        height: 56px;
    }

    .course-header-left {
        gap: 8px;
        flex: 0 0 auto;
    }

    /* Hide lesson title and duration on mobile, keeping only the lesson icon */
    .course-header-item-info .course-header-title,
    .course-header-item-info .course-header-duration {
        display: none !important;
    }

    .course-header-play-icon {
        font-size: 18px;
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 8px;
    }

    .sidebar-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
        border-radius: 8px;
    }

    /* Tab bar: icons only */
    .course-header-tabs {
        padding: 3px;
        border-radius: 20px;
    }

    .course-header-tabs a {
        padding: 6px 14px;
        border-radius: 16px;
        font-size: 14px;
        justify-content: center;
    }

    .course-header-tabs .tab-label {
        display: none !important;
    }

    .course-header-tabs a i {
        margin: 0;
        font-size: 15px;
    }

    /* Back button: icon only */
    .course-header-right {
        flex: 0 0 auto;
    }

    .course-header-link {
        width: 36px;
        height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 15px;
    }

    .course-header-link .back-link-label {
        display: none !important;
    }

    .course-header-link i {
        margin: 0;
    }

    .course-access-main-container {
        height: calc(100vh - 56px);
    }

    /* Adjust sidebar and backdrop top position to match mobile header height */
    .course-sidebar-wrapper {
        top: 56px;
    }

    .course-sidebar-backdrop {
        top: 56px;
    }
}

/* Hide default header/footer on course access page */
.course-access-fullscreen~* {
    display: none;
}

.section-bg {
    background-image: url('../../img/home-1/hero/hero-bg.jpg');
    background-size: cover;
}

/* ============================================
   Community Q&A Styles
   ============================================ */
.tag-chip {
    transition: all 0.3s ease;
    cursor: default;
}

.tag-chip:hover {
    background: #e1edea !important;
    color: var(--theme) !important;
}

.vote-widget {
    user-select: none;
}

.vote-btn {
    transition: all 0.2s ease;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-btn:hover {
    background: #f8f9fa;
}

.vote-btn.active {
    background: #f1f7f6;
    color: var(--theme);
}

.vote-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.accept-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.dashboard-activity-item:hover {
    background: #fcfcfc;
}

.custom-pills .nav-link {
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   Exact Match EduEx SaaS Student Portal & Dashboard Styles
   ========================================================================== */

body.instructor-app-body, .student-app-body {
    background-color: #f6f8fd !important;
    background-image: 
        radial-gradient(circle at 92% 10%, rgba(216, 180, 254, 0.42) 0%, rgba(246, 248, 253, 0) 45%),
        radial-gradient(circle at 12% 22%, rgba(167, 243, 208, 0.35) 0%, rgba(246, 248, 253, 0) 40%),
        radial-gradient(circle at 80% 55%, rgba(199, 210, 254, 0.38) 0%, rgba(246, 248, 253, 0) 48%),
        radial-gradient(circle at 22% 78%, rgba(254, 205, 211, 0.28) 0%, rgba(246, 248, 253, 0) 42%),
        radial-gradient(circle at 55% 90%, rgba(224, 231, 255, 0.35) 0%, rgba(246, 248, 253, 0) 40%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    margin: 0;
    padding: 0;
    color: #1e293b;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.instructor-app-layout, .student-app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    background: transparent;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.instructor-app-layout, .student-app-layout button,
.instructor-app-layout, .student-app-layout input,
.instructor-app-layout, .student-app-layout select,
.instructor-app-layout, .student-app-layout textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Ensure Icon Fonts Are Never Overridden */
i[class*="fa-"],
i.fa,
i.fas,
i.far,
i.fal,
i.fab,
i.fa-solid,
i.fa-regular,
i.fa-brands,
.fa,
.fas,
.far,
.fal,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
}

.fa-brands,
i.fa-brands,
i.fab {
    font-family: "Font Awesome 6 Brands", "FontAwesome" !important;
}

.hgi-stroke {
    font-family: "hugeicons-stroke-rounded" !important;
}

/* ── Sidebar (250px Fixed Left) ─────────────────────────────────────────── */
.eduex-sidebar {
    width: 250px;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(238, 241, 248, 0.9);
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    overflow: visible;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
}

.instructor-app-main-wrapper, .student-app-main-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.eduex-sidebar-brand {
    padding: 4px 6px 18px 6px;
    transition: all 0.25s ease;
}

/* Edge Circular Toggle Button (Sticky on Sidebar Right Seam) */
.eduex-sidebar-edge-toggle {
    position: absolute;
    right: -13px;
    top: 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.4), 0 0 0 1px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1060;
    padding: 0;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.eduex-sidebar-edge-toggle:hover {
    background: var(--eduex-primary, #635bff);
    filter: brightness(0.9);
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.55), 0 0 0 1px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.25);
    color: #ffffff;
}

.eduex-sidebar-edge-toggle i {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 13px;
    display: inline-block;
}

.eduex-sidebar-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    padding: 0;
}

.eduex-sidebar-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

/* ── Collapsed Sidebar ────────────────────────────────────────── */
html.sidebar-collapsed .eduex-sidebar,
body.sidebar-collapsed .eduex-sidebar,
.instructor-app-layout.sidebar-collapsed .eduex-sidebar,
.student-app-layout.sidebar-collapsed .eduex-sidebar {
    width: 80px;
    min-width: 80px;
    padding: 20px 10px;
}

html.sidebar-collapsed .eduex-sidebar-brand,
body.sidebar-collapsed .eduex-sidebar-brand,
.instructor-app-layout.sidebar-collapsed .eduex-sidebar-brand,
.student-app-layout.sidebar-collapsed .eduex-sidebar-brand {
    justify-content: center !important;
    padding: 4px 0 18px 0;
}

html.sidebar-collapsed .eduex-brand-name,
body.sidebar-collapsed .eduex-brand-name,
.instructor-app-layout.sidebar-collapsed .eduex-brand-name,
.student-app-layout.sidebar-collapsed .eduex-brand-name {
    display: none !important;
}

/* In collapsed mode, the arrow rotates 180deg to point right */
html.sidebar-collapsed .eduex-sidebar-edge-toggle i,
body.sidebar-collapsed .eduex-sidebar-edge-toggle i,
.instructor-app-layout.sidebar-collapsed .eduex-sidebar-edge-toggle i,
.student-app-layout.sidebar-collapsed .eduex-sidebar-edge-toggle i {
    transform: rotate(180deg);
}

html.sidebar-collapsed .eduex-menu-label,
body.sidebar-collapsed .eduex-menu-label,
.instructor-app-layout.sidebar-collapsed .eduex-menu-label,
.student-app-layout.sidebar-collapsed .eduex-menu-label {
    text-indent: -9999px;
    height: 1px;
    background: #f1f5f9;
    padding: 0;
    margin: 12px 6px;
    overflow: hidden;
}

html.sidebar-collapsed .eduex-menu-link,
body.sidebar-collapsed .eduex-menu-link,
.instructor-app-layout.sidebar-collapsed .eduex-menu-link,
.student-app-layout.sidebar-collapsed .eduex-menu-link {
    justify-content: center;
    padding: 10px 0;
    position: relative;
}

html.sidebar-collapsed .eduex-item-icon,
body.sidebar-collapsed .eduex-item-icon,
.instructor-app-layout.sidebar-collapsed .eduex-item-icon,
.student-app-layout.sidebar-collapsed .eduex-item-icon {
    font-size: 20px;
    width: auto;
    margin: 0;
}

html.sidebar-collapsed .eduex-item-text,
html.sidebar-collapsed .eduex-item-arrow,
html.sidebar-collapsed .eduex-menu-link .badge,
body.sidebar-collapsed .eduex-item-text,
body.sidebar-collapsed .eduex-item-arrow,
body.sidebar-collapsed .eduex-menu-link .badge,
.instructor-app-layout.sidebar-collapsed .eduex-item-text,
.instructor-app-layout.sidebar-collapsed .eduex-item-arrow,
.instructor-app-layout.sidebar-collapsed .eduex-menu-link .badge,
.student-app-layout.sidebar-collapsed .eduex-item-text,
.student-app-layout.sidebar-collapsed .eduex-item-arrow,
.student-app-layout.sidebar-collapsed .eduex-menu-link .badge {
    display: none !important;
}

html.sidebar-collapsed .eduex-promo-box,
body.sidebar-collapsed .eduex-promo-box,
.instructor-app-layout.sidebar-collapsed .eduex-promo-box,
.student-app-layout.sidebar-collapsed .eduex-promo-box {
    display: none !important;
}

html.sidebar-collapsed .eduex-user-card-footer,
body.sidebar-collapsed .eduex-user-card-footer,
.instructor-app-layout.sidebar-collapsed .eduex-user-card-footer,
.student-app-layout.sidebar-collapsed .eduex-user-card-footer {
    padding: 10px 4px;
    justify-content: center;
}

html.sidebar-collapsed .eduex-footer-userinfo,
html.sidebar-collapsed .eduex-footer-logout-btn,
body.sidebar-collapsed .eduex-footer-userinfo,
body.sidebar-collapsed .eduex-footer-logout-btn,
.instructor-app-layout.sidebar-collapsed .eduex-footer-userinfo,
.instructor-app-layout.sidebar-collapsed .eduex-footer-logout-btn,
.student-app-layout.sidebar-collapsed .eduex-footer-userinfo,
.student-app-layout.sidebar-collapsed .eduex-footer-logout-btn {
    display: none !important;
}

/* Fixed Floating Tooltip on hover when collapsed */
.eduex-sidebar-floating-tooltip {
    position: fixed;
    z-index: 9999999;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    display: none;
}

.eduex-sidebar-floating-tooltip.show {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
}

.eduex-sidebar-floating-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #0f172a;
}

/* Mobile backdrop */
.eduex-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.eduex-sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

.eduex-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.eduex-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.25);
    overflow: hidden;
    flex-shrink: 0;
}

.eduex-brand-favicon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.eduex-brand-name {
    font-size: 21px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.4px;
}

.eduex-sidebar-menu-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.eduex-menu-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 12px 6px;
}

.eduex-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.eduex-menu-item {
    margin-bottom: 3px;
}

.eduex-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.eduex-item-icon {
    font-size: 18px;
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
    transition: color 0.2s;
}

.eduex-item-text {
    flex: 1;
}

.eduex-item-arrow {
    font-size: 12px;
    color: var(--eduex-primary, #635bff);
}

.eduex-menu-link:hover {
    color: var(--eduex-primary, #635bff);
    background: rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.05);
}

.eduex-menu-link:hover .eduex-item-icon {
    color: var(--eduex-primary, #635bff);
}

.eduex-menu-link.active {
    background: rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.1);
    color: var(--eduex-primary, #635bff);
    font-weight: 700;
}

.eduex-menu-link.active .eduex-item-icon {
    color: var(--eduex-primary, #635bff);
}

/* Sidebar Promo Card Box */
.eduex-promo-box {
    background: rgba(248, 247, 255, 0.95);
    border: 1px solid var(--eduex-primary-border, #ede9fe);
    border-radius: 14px;
    padding: 14px;
    margin: 12px 0;
    position: relative;
}

.eduex-promo-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
}

.eduex-promo-header h6 {
    font-size: 13.5px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 2px;
}

.eduex-promo-header p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

.eduex-promo-banner-art {
    margin: 10px 0;
    background: linear-gradient(135deg, #0f766e 0%, #042f2e 100%);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-art-badge {
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.promo-play-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--eduex-primary, #635bff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.promo-art-text {
    line-height: 1.2;
    text-align: left;
}

.eduex-promo-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.promo-btn-dismiss {
    background: var(--eduex-primary, #7c3aed);
    color: #ffffff;
    border: none;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.promo-btn-whatsnew {
    font-size: 11px;
    font-weight: 600;
    color: var(--eduex-primary, #7c3aed);
    text-decoration: none;
}

/* User Card Footer in Sidebar */
.eduex-user-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    background: transparent;
    border-radius: 12px;
    margin-top: auto;
}

.eduex-footer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.eduex-footer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eduex-footer-userinfo {
    flex: 1;
    min-width: 0;
}

.eduex-footer-username {
    font-size: 13px;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eduex-footer-useremail {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eduex-footer-logout-btn {
    color: #f43f5e;
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.eduex-footer-logout-btn:hover {
    color: #e11d48;
    transform: scale(1.1);
}

/* ── Main Area (Header + Content) ────────────────────────────────────────── */
.instructor-app-main-wrapper, .student-app-main-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* Top Header Bar */
.eduex-header {
    background: rgba(246, 248, 253, 0.359);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(238, 241, 248, 0.85);
    padding: 14px 36px 12px 36px;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.eduex-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.eduex-mobile-toggle {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #475569;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.eduex-search-container {
    flex: 1;
    max-width: 340px;
}

.eduex-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.eduex-search-icon {
    position: absolute;
    left: 14px;
    color: #8b5cf6;
    font-size: 17px;
    pointer-events: none;
}

.eduex-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 30px;
    padding: 8px 38px 8px 38px;
    font-size: 13px;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
}

.eduex-search-input:focus {
    outline: none;
    border-color: var(--eduex-primary, #635bff);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.12);
}

.eduex-search-shortcut {
    position: absolute;
    right: 14px;
    color: #8b5cf6;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eduex-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.eduex-notif-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.eduex-notif-wrap #notificationWrapper {
    margin: 0 !important;
    position: relative;
    display: inline-block;
}

.eduex-notif-wrap #customNotifToggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--eduex-primary-light, #f3f0ff) !important;
    border: 1px solid rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eduex-primary, #635bff) !important;
    font-size: 18px;
    text-decoration: none;
    box-shadow: none !important;
    transition: all 0.2s;
}

.eduex-notif-wrap #customNotifToggle:hover {
    background: var(--eduex-primary-border, #ede9fe) !important;
    color: var(--eduex-primary, #635bff) !important;
    transform: translateY(-1px);
}

.eduex-notif-wrap #customNotifToggle i {
    font-size: 18px !important;
    color: var(--eduex-primary, #635bff) !important;
}

.eduex-notif-wrap .custom-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: -40px;
    left: auto;
    width: 340px;
    max-width: min(340px, calc(100vw - 32px));
    background: #ffffff;
    border-radius: 16px;
    z-index: 1080;
    margin: 0;
    overflow: hidden;
    border: 1px solid #eef1f8;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12) !important;
}

.eduex-notif-wrap .custom-dropdown-menu.show {
    display: block !important;
}

.eduex-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--eduex-primary-light, #f3f0ff);
    border: 1px solid rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eduex-primary, #635bff);
    font-size: 18px;
    text-decoration: none;
    box-shadow: none;
    transition: all 0.2s;
}

.eduex-circle-btn:hover {
    background: var(--eduex-primary-border, #ede9fe);
    color: var(--eduex-primary, #635bff);
    transform: translateY(-1px);
}

.eduex-badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #ffffff;
}

.eduex-badge-count {
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 9.5px;
    font-weight: 800;
    background: #ef4444;
    color: #ffffff;
    padding: 1px 5px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    line-height: 1.2;
}

.eduex-header-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    margin: 0 4px;
}

.eduex-user-dropdown {
    position: relative;
}

.eduex-avatar-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    cursor: pointer;
}

.eduex-avatar-img-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.eduex-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.eduex-avatar-arrow {
    font-size: 13px;
    color: #94a3b8;
}

.eduex-profile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    border-radius: 16px !important;
    width: 230px !important;
    min-width: 220px !important;
    max-width: 280px !important;
    padding: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #eef1f8 !important;
    margin: 0 !important;
    z-index: 1080 !important;
}

.eduex-profile-menu.show {
    display: block !important;
}

.eduex-profile-menu .dropdown-item {
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    padding: 8px 12px;
    transition: all 0.15s ease;
}

.eduex-profile-menu .dropdown-item:hover {
    background: var(--eduex-primary-light, #f3f0ff);
    color: var(--eduex-primary, #635bff);
}

/* ── Content Body ────────────────────────────────────────────────────────── */
.instructor-app-content, .student-app-content {
    padding: 24px 36px 40px 36px;
    flex: 1;
}

.eduex-dashboard-content {
    width: 100%;
}

.eduex-greeting-header {
    margin-bottom: 22px;
}

.eduex-greeting-title {
    font-size: 24px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

.eduex-greeting-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

.eduex-sub-alert-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.04);
}

.sub-alert-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ── Top 4 KPI Cards ─────────────────────────────────────────────────────── */
.eduex-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.eduex-kpi-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

@media (max-width: 991px) {
    .eduex-kpi-row-3 {
        grid-template-columns: 1fr;
    }
}

.eduex-kpi-card {
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 126px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}



.eduex-kpi-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.eduex-kpi-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.eduex-kpi-card:hover .eduex-kpi-icon-box {
    transform: scale(1.05);
}

.eduex-kpi-title-block {
    flex: 1;
    min-width: 0;
}

.eduex-kpi-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2px 0;
    line-height: 1.25;
}

.eduex-kpi-subtitle {
    font-size: 11.5px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.2;
    display: block;
}

.eduex-kpi-bottom {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.eduex-kpi-number {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.eduex-kpi-unit {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

.eduex-kpi-trend {
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.trend-positive, .trend-green {
    color: #10b981;
}

.trend-amber {
    color: #f59e0b;
}

.trend-purple {
    color: #8b5cf6;
}

.trend-negative {
    color: #ef4444;
}

/* ── Pastel Gradient Themes (Matching Reference) ─────────────────────────── */
/* 1. Peach / Soft Orange */
.eduex-kpi-card.kpi-card-peach,
.eduex-kpi-card.kpi-card-orange {
    background: linear-gradient(135deg, #fff7ed 0%, rgba(255, 247, 237, 0.5) 45%, #ffffff 100%);
    border: 1px solid #ffedd5;
}
.eduex-kpi-card.kpi-card-peach .eduex-kpi-icon-box,
.eduex-kpi-card.kpi-card-orange .eduex-kpi-icon-box {
    background: #ffedd5;
    color: #ea580c;
}
.eduex-kpi-card.kpi-card-peach:hover,
.eduex-kpi-card.kpi-card-orange:hover {
    border-color: #fed7aa;
    box-shadow: 0 10px 25px -4px rgba(234, 88, 12, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* 2. Indigo / Periwinkle / Soft Blue */
.eduex-kpi-card.kpi-card-indigo,
.eduex-kpi-card.kpi-card-blue {
    background: linear-gradient(135deg, #eef2ff 0%, rgba(238, 242, 255, 0.5) 45%, #ffffff 100%);
    border: 1px solid #e0e7ff;
}
.eduex-kpi-card.kpi-card-indigo .eduex-kpi-icon-box,
.eduex-kpi-card.kpi-card-blue .eduex-kpi-icon-box {
    background: #e0e7ff;
    color: #4f46e5;
}
.eduex-kpi-card.kpi-card-indigo:hover,
.eduex-kpi-card.kpi-card-blue:hover {
    border-color: #c7d2fe;
    box-shadow: 0 10px 25px -4px rgba(79, 70, 229, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* 3. Cream / Vanilla / Soft Yellow */
.eduex-kpi-card.kpi-card-cream,
.eduex-kpi-card.kpi-card-yellow {
    background: linear-gradient(135deg, #fefce8 0%, rgba(254, 252, 232, 0.5) 45%, #ffffff 100%);
    border: 1px solid #fef08a;
}
.eduex-kpi-card.kpi-card-cream .eduex-kpi-icon-box,
.eduex-kpi-card.kpi-card-yellow .eduex-kpi-icon-box {
    background: #fef9c3;
    color: #ca8a04;
}
.eduex-kpi-card.kpi-card-cream:hover,
.eduex-kpi-card.kpi-card-yellow:hover {
    border-color: #fde047;
    box-shadow: 0 10px 25px -4px rgba(202, 138, 4, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* 4. Lavender / Violet / Purple */
.eduex-kpi-card.kpi-card-purple,
.eduex-kpi-card.kpi-card-violet {
    background: linear-gradient(135deg, #f5f3ff 0%, rgba(245, 243, 255, 0.5) 45%, #ffffff 100%);
    border: 1px solid var(--eduex-primary-border, #ede9fe);
}
.eduex-kpi-card.kpi-card-purple .eduex-kpi-icon-box,
.eduex-kpi-card.kpi-card-violet .eduex-kpi-icon-box {
    background: var(--eduex-primary-border, #ede9fe);
    color: var(--eduex-primary, #7c3aed);
}
.eduex-kpi-card.kpi-card-purple:hover,
.eduex-kpi-card.kpi-card-violet:hover {
    border-color: #ddd6fe;
    box-shadow: 0 10px 25px -4px rgba(124, 58, 237, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* 5. Mint / Emerald / Teal */
.eduex-kpi-card.kpi-card-mint,
.eduex-kpi-card.kpi-card-green,
.eduex-kpi-card.kpi-card-teal {
    background: linear-gradient(135deg, #ecfdf5 0%, rgba(236, 253, 245, 0.5) 45%, #ffffff 100%);
    border: 1px solid #d1fae5;
}
.eduex-kpi-card.kpi-card-mint .eduex-kpi-icon-box,
.eduex-kpi-card.kpi-card-green .eduex-kpi-icon-box,
.eduex-kpi-card.kpi-card-teal .eduex-kpi-icon-box {
    background: #d1fae5;
    color: #059669;
}
.eduex-kpi-card.kpi-card-mint:hover,
.eduex-kpi-card.kpi-card-green:hover,
.eduex-kpi-card.kpi-card-teal:hover {
    border-color: #a7f3d0;
    box-shadow: 0 10px 25px -4px rgba(5, 150, 105, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* 6. Rose / Pink */
.eduex-kpi-card.kpi-card-rose,
.eduex-kpi-card.kpi-card-pink {
    background: linear-gradient(135deg, #fff1f2 0%, rgba(255, 241, 242, 0.5) 45%, #ffffff 100%);
    border: 1px solid #ffe4e6;
}
.eduex-kpi-card.kpi-card-rose .eduex-kpi-icon-box,
.eduex-kpi-card.kpi-card-pink .eduex-kpi-icon-box {
    background: #ffe4e6;
    color: #e11d48;
}
.eduex-kpi-card.kpi-card-rose:hover,
.eduex-kpi-card.kpi-card-pink:hover {
    border-color: #fecdd3;
    box-shadow: 0 10px 25px -4px rgba(225, 29, 72, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* 7. Cyan / Sky */
.eduex-kpi-card.kpi-card-cyan,
.eduex-kpi-card.kpi-card-sky {
    background: linear-gradient(135deg, #f0fdfa 0%, rgba(240, 253, 250, 0.5) 45%, #ffffff 100%);
    border: 1px solid #ccfbf1;
}
.eduex-kpi-card.kpi-card-cyan .eduex-kpi-icon-box,
.eduex-kpi-card.kpi-card-sky .eduex-kpi-icon-box {
    background: #ccfbf1;
    color: #0d9488;
}
.eduex-kpi-card.kpi-card-cyan:hover,
.eduex-kpi-card.kpi-card-sky:hover {
    border-color: #99f6e4;
    box-shadow: 0 10px 25px -4px rgba(13, 148, 136, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* 8. Amber / Golden */
.eduex-kpi-card.kpi-card-amber,
.eduex-kpi-card.kpi-card-golden {
    background: linear-gradient(135deg, #fffbeb 0%, rgba(255, 251, 235, 0.5) 45%, #ffffff 100%);
    border: 1px solid #fef3c7;
}
.eduex-kpi-card.kpi-card-amber .eduex-kpi-icon-box,
.eduex-kpi-card.kpi-card-golden .eduex-kpi-icon-box {
    background: #fef3c7;
    color: #d97706;
}
.eduex-kpi-card.kpi-card-amber:hover,
.eduex-kpi-card.kpi-card-golden:hover {
    border-color: #fde68a;
    box-shadow: 0 10px 25px -4px rgba(217, 119, 6, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* ── Middle Row: 2 Interactive Charts ────────────────────────────────────── */
.eduex-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.eduex-chart-box {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.04), 0 2px 8px -1px rgba(0, 0, 0, 0.02);
}

/* ── Modern Chart Topbar & Legend ─────────────────── */
.eduex-chart-topbar-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.chart-header-title-block {
    display: flex;
    flex-direction: column;
}

.eduex-chart-overline {
    font-size: 13px;
    font-weight: 500;
    color: #8c9ba5;
    line-height: 1.2;
}

.eduex-chart-main-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e1b4b;
    margin: 2px 0 0 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.chart-header-right-block {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.eduex-chart-legend-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.chart-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-free {
    background: #8222fa;
}

.dot-basic {
    background: #b37afc;
}

.dot-pro {
    background: #d8b4fe;
}

.dot-enterprise {
    background: #f3e8ff;
    border: 1.5px solid #d8b4fe;
}

/* ── Filter Dropdown Pill ────────────────────────────────────────────────── */
.eduex-chart-filter-wrap {
    position: relative;
}

.eduex-chart-filter-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: none;
}

.eduex-chart-filter-btn:hover,
.eduex-chart-filter-btn:focus,
.eduex-chart-filter-btn[aria-expanded="true"] {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.eduex-chart-filter-btn::after {
    display: none;
}

.eduex-filter-dropdown-menu {
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 6px;
    min-width: 140px;
}

.eduex-filter-dropdown-menu .dropdown-item {
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 12px;
    color: #475569;
    transition: all 0.15s ease;
}

.eduex-filter-dropdown-menu .dropdown-item:hover {
    background: #f5f3ff;
    color: var(--eduex-primary, #7c3aed);
}

.eduex-filter-dropdown-menu .dropdown-item.active {
    background: var(--eduex-primary, #7c3aed);
    color: #ffffff;
}

/* ── Study Score Card Metrics & Segmented Tabs ────────────────────────────── */
.study-score-main-value {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.study-score-num {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.study-score-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1.3;
}

.study-score-sub {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-segmented-tabs {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.chart-tab-btn {
    padding: 6px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.2;
}

.chart-tab-btn:hover {
    color: #1e1b4b;
}

.chart-tab-btn.active {
    background: #1e1b4b;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(30, 27, 75, 0.2);
}

.eduex-chart-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.chart-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eduex-chart-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0;
}

.eduex-chart-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.pill-green { background: #dcfce7; color: #15803d; }
.pill-red { background: #fee2e2; color: #dc2626; }

.eduex-date-badge {
    font-size: 11.5px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.eduex-chart-sublegend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.legend-circle-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bullet-light-purple { background: #a78bfa; }
.bullet-purple { background: var(--eduex-primary, #635bff); }
.bullet-dark-purple { background: var(--eduex-primary-border, #ede9fe); }
.bullet-red { background: #ef4444; }

.eduex-canvas-container {
    height: 230px;
    position: relative;
}

/* ── Bottom Section: Table ───────────────────────────────────────────────── */
.eduex-table-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px -2px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.04), 0 2px 8px -1px rgba(0, 0, 0, 0.02);
}

.eduex-chart-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.chart-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eduex-chart-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0;
}

.eduex-chart-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.pill-green { background: #dcfce7; color: #15803d; }
.pill-red { background: #fee2e2; color: #dc2626; }

.eduex-date-badge {
    font-size: 11.5px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.eduex-chart-sublegend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.legend-circle-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bullet-light-purple { background: #a78bfa; }
.bullet-purple { background: var(--eduex-primary, #635bff); }
.bullet-dark-purple { background: var(--eduex-primary-border, #ede9fe); }
.bullet-red { background: #ef4444; }

.eduex-canvas-container {
    height: 230px;
    position: relative;
}

/* ── Bottom Section: Table ───────────────────────────────────────────────── */
.eduex-table-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.eduex-table-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.eduex-table-heading {
    font-size: 17px;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0;
}

.eduex-table-viewall-btn {
    font-size: 12px;
    font-weight: 700;
    color: var(--eduex-primary, #635bff);
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.eduex-table-viewall-btn:hover {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
}

.eduex-datatable thead th {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.sort-icon {
    font-size: 10px;
    color: #cbd5e1;
    margin-left: 4px;
}

.eduex-datatable tbody td {
    padding: 14px 14px;
    border-bottom: 1px solid #f8fafc;
    font-size: 13.5px;
}

.customer-td-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.customer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
}

.customer-id {
    font-size: 11px;
    color: #94a3b8;
}

.course-td-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
}

.price-td-val {
    font-weight: 700;
    color: #1e1b4b;
}

.payment-method-td {
    color: #64748b;
    font-size: 13px;
}

.method-dots {
    letter-spacing: 1px;
    font-weight: 800;
}

.eduex-status-pill {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
}

.status-success { background: #dcfce7; color: #16a34a; }
.status-cancel { background: #fee2e2; color: #ef4444; }
.status-pending { background: #fef9c3; color: #ca8a04; }

.eduex-action-squares {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-sq {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-decoration: none;
    color: #ffffff !important;
    transition: all 0.2s;
}

.sq-purple { background: var(--eduex-primary, #635bff); }
.sq-green { background: #22c55e; }
.sq-red { background: #ef4444; }

.action-sq:hover {
    transform: scale(1.08);
}

.eduex-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 12.5px;
    color: #94a3b8;
}

.eduex-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pag-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.pag-btn.active {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
}

.pag-btn:hover:not(.active) {
    background: #f1f5f9;
    color: #1e1b4b;
}

.pag-ellipsis {
    color: #94a3b8;
    font-size: 12px;
}

/* ── Responsive Rules ────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .eduex-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .eduex-kpi-row-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .eduex-kpi-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .eduex-sidebar {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1100;
    }

    .eduex-sidebar.menu-open {
        display: flex;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .eduex-header {
        padding: 14px 20px 10px 20px;
    }

    .instructor-app-content, .student-app-content {
        padding: 20px 20px 30px 20px;
    }

    .eduex-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .eduex-header {
        position: sticky;
        top: 0;
        z-index: 1040;
        padding: 10px 14px 8px 14px;
        background: rgba(246, 248, 253, 0.94);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(238, 241, 248, 0.9);
    }

    .eduex-header-inner {
        position: static;
    }

    .eduex-header-actions {
        gap: 8px;
        position: static;
    }

    .eduex-notif-wrap,
    .eduex-user-dropdown {
        position: static !important;
    }

    .eduex-circle-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .eduex-notif-wrap #customNotifToggle {
        width: 36px;
        height: 36px;
    }

    .eduex-avatar-img-wrap {
        width: 34px;
        height: 34px;
    }

    .eduex-header-divider {
        height: 18px;
        margin: 0 2px;
    }

    /* Fixed floating dropdown menus beneath sticky mobile header */
    .eduex-notif-wrap .custom-dropdown-menu,
    .custom-dropdown-menu,
    .eduex-profile-menu {
        position: fixed !important;
        top: 58px !important;
        left: 12px !important;
        right: 12px !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        margin: 0 !important;
        z-index: 1090 !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
    }

    .eduex-kpi-row,
    .eduex-kpi-row-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .eduex-kpi-card {
        padding: 14px 12px;
        min-height: auto;
        border-radius: 14px;
    }

    .eduex-kpi-top {
        gap: 10px;
        margin-bottom: 10px;
    }

    .eduex-kpi-icon-box {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }

    .eduex-kpi-title {
        font-size: 12.5px;
    }

    .eduex-kpi-subtitle {
        font-size: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .eduex-kpi-bottom {
        flex-wrap: wrap;
        gap: 4px 6px;
    }

    .eduex-kpi-number {
        font-size: 20px;
    }

    .eduex-kpi-unit {
        font-size: 12px;
    }

    .eduex-kpi-trend {
        font-size: 10.5px;
    }

    .eduex-search-container {
        display: none;
    }

    .eduex-greeting-title {
        font-size: 20px;
    }

    .eduex-greeting-subtitle {
        font-size: 12.5px;
    }

    .eduex-table-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .eduex-chart-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .chart-legend-top {
        flex-wrap: wrap;
        gap: 8px !important;
    }
}

/* ── Bottom Section: Modern Quick Actions & Announcements ────────────────── */
.eduex-quick-action-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eduex-qa-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* .eduex-qa-card:hover {
    transform: translateY(-2px);
} */

.eduex-qa-purple {
    background: #f8f6ff;
    border: 1px solid var(--eduex-primary-border, #ede9fe);
    color: #1e1b4b;
}

.eduex-qa-purple:hover {
    background: var(--eduex-primary-border, #ede9fe);
    border-color: #ddd6fe;
    box-shadow: 0 4px 15px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.08);
}

.eduex-qa-blue {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    color: #1e1b4b;
}

.eduex-qa-blue:hover {
    background: #e0f2fe;
    border-color: #bae6fd;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
}

.eduex-qa-gradient {
    background: linear-gradient(135deg, var(--eduex-primary, #635bff) 0%, var(--eduex-primary, #7c3aed) 100%);
    border: 1px solid transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.2);
}

.eduex-qa-gradient:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 6px 20px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.3);
}

.eduex-qa-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.eduex-qa-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.icon-purple-bg {
    background: #ffffff;
    color: var(--eduex-primary, #635bff);
    box-shadow: 0 2px 8px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.12);
}

.icon-blue-bg {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

.icon-gradient-bg {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.eduex-qa-info h6 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: inherit;
}

.eduex-qa-info p {
    font-size: 12px;
    margin: 0;
    color: #64748b;
}

.eduex-qa-gradient .eduex-qa-info p {
    color: rgba(255, 255, 255, 0.85);
}

.eduex-qa-arrow {
    font-size: 16px;
    color: #94a3b8;
    transition: transform 0.2s;
}

.eduex-qa-gradient .eduex-qa-arrow {
    color: #ffffff;
}

.eduex-qa-card:hover .eduex-qa-arrow {
    /* transform: translateX(4px); */
    color: var(--eduex-primary, #635bff);
}

.eduex-qa-gradient:hover .eduex-qa-arrow {
    color: #ffffff;
}

/* Announcements List */
.eduex-announcement-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eduex-announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    transition: all 0.2s;
}

.eduex-ann-welcome {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.eduex-ann-welcome:hover {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.eduex-ann-highlight {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.eduex-ann-highlight:hover {
    background: #fef3c7;
}

.eduex-ann-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ann-icon-welcome {
    background: var(--eduex-primary-border, #ede9fe);
    color: var(--eduex-primary, #635bff);
}

.ann-icon-highlight {
    background: #fef3c7;
    color: #d97706;
}

.eduex-ann-body h6 {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 3px 0;
}

.eduex-ann-body p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.eduex-ann-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 4px;
    display: inline-block;
}

/* ==========================================================================
   Modern EduEx SaaS My Courses Page Styles
   ========================================================================== */

.eduex-mycourses-container {
    width: 100%;
}

.eduex-badge-count-pill {
    background: var(--eduex-primary-border, #ede9fe);
    color: var(--eduex-primary, #635bff);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eduex-browse-btn {
    background: #ffffff;
    color: var(--eduex-primary, #635bff);
    border: 1px solid var(--eduex-primary-border, #ede9fe);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.08);
}

.eduex-browse-btn:hover {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.25);
}

/* ── Filter Bar & Tabs ───────────────────────────────────────────────────── */
.eduex-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    padding: 8px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.eduex-tabs-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.eduex-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    padding: 7px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.eduex-filter-tab i {
    font-size: 16px;
}

.eduex-filter-tab .tab-counter {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.eduex-filter-tab:hover {
    color: var(--eduex-primary, #635bff);
    background: #f8f6ff;
}

.eduex-filter-tab.active {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.25);
}

.eduex-filter-tab.active .tab-counter {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.eduex-course-search-form {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 240px;
    flex: 1;
    max-width: 320px;
}

.eduex-course-search-form .search-icon {
    position: absolute;
    left: 12px;
    color: #8b5cf6;
    font-size: 16px;
    pointer-events: none;
}

.eduex-course-search-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    padding: 7px 32px 7px 34px;
    font-size: 12.5px;
    color: #1e293b;
    transition: all 0.2s ease;
}

.eduex-course-search-input:focus {
    outline: none;
    border-color: var(--eduex-primary, #635bff);
    box-shadow: 0 0 0 3px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.12);
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    color: #f43f5e;
}

/* ── Modern Course Cards ─────────────────────────────────────────────────── */
.eduex-course-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.eduex-course-card:hover {
    /* transform: translateY(-3px); */
    border-color: rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.28);
    box-shadow: 0 10px 25px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.08);
}

.eduex-card-thumb {
    position: relative;
    width: calc(100% - 16px);
    height: 170px;
    margin: 8px 8px 0 8px;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f5f9;
}

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

/* .eduex-course-card:hover .thumb-img {
    transform: scale(1.03);
} */

.eduex-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.eduex-card-status-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.eduex-live-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
    animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 1; }
}

.eduex-status-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

.tag-completed {
    background: rgba(220, 252, 231, 0.95);
    backdrop-filter: blur(6px);
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.tag-inprogress {
    background: rgba(243, 240, 255, 0.95);
    backdrop-filter: blur(6px);
    color: var(--eduex-primary, #635bff);
    border: 1px solid var(--eduex-primary-border, #ede9fe);
}

.eduex-card-body {
    padding: 14px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.eduex-card-instructor {
    display: flex;
    align-items: center;
    gap: 7px;
}

.eduex-card-instructor .inst-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.eduex-card-instructor .inst-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eduex-card-instructor .inst-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
}

.eduex-lesson-badge {
    font-size: 11px;
    font-weight: 600;
    color: #8b5cf6;
    background: #f5f3ff;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.eduex-card-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    margin: 6px 0 0 0;
}

.eduex-card-title a {
    color: #1e1b4b;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eduex-card-title a:hover {
    color: var(--eduex-primary, #635bff);
}

/* ── Minimal Progress Bar ────────────────────────────────────────────────── */
.eduex-progress-wrap {
    background: transparent;
    border: none;
    padding: 10px 0 0 0;
}

.progress-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.progress-percent {
    font-size: 11.5px;
    font-weight: 800;
}

.eduex-bar-container {
    height: 5px;
    border-radius: 8px;
    background: #f1f5f9;
    overflow: hidden;
    margin: 4px 0;
}

.progress-sub {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── Minimal Card Buttons ────────────────────────────────────────────────── */
.eduex-btn-continue {
    background: var(--eduex-primary-light, #f3f0ff);
    color: var(--eduex-primary, #635bff);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--eduex-primary-border, #ede9fe);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.eduex-btn-continue:hover {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.25);
}

.eduex-btn-continue.btn-completed {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.eduex-btn-continue.btn-completed:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.eduex-card-circle-btn {
    width: 33px;
    height: 33px;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.eduex-card-circle-btn:hover {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
    transform: translateY(-1px);
}

/* ── Empty State Card ────────────────────────────────────────────────────── */
.eduex-empty-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(238, 241, 248, 0.95);
    border-radius: 20px;
    padding: 50px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.empty-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--eduex-primary-light, #f3f0ff);
    color: var(--eduex-primary, #635bff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.12);
}

.empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e1b4b;
}

.empty-desc {
    font-size: 13.5px;
    color: #64748b;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.eduex-primary-pill-btn {
    background: linear-gradient(135deg, var(--eduex-primary, #635bff) 0%, var(--eduex-primary, #7c3aed) 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 14px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.25);
    transition: all 0.2s ease;
}

.eduex-primary-pill-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.35);
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.eduex-pagination-wrap .pagination {
    gap: 6px;
    margin: 0;
}

.eduex-pagination-wrap .page-item .page-link {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.eduex-pagination-wrap .page-item.active .page-link {
    background: var(--eduex-primary, #635bff) !important;
    border-color: var(--eduex-primary, #635bff) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.25);
}

.eduex-pagination-wrap .page-item .page-link:hover {
    background: var(--eduex-primary-light, #f3f0ff);
    border-color: var(--eduex-primary-border, #ede9fe);
    color: var(--eduex-primary, #635bff);
}

@media (max-width: 576px) {
    .eduex-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .eduex-course-search-form {
        max-width: 100%;
        min-width: 100%;
    }

    .eduex-tabs-group {
        width: 100%;
        justify-content: space-between;
    }

    .eduex-filter-tab {
        flex: 1;
        justify-content: center;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ==========================================================================
   EduEx SaaS Student Assignments
   ========================================================================== */

.eduex-assignments-container {
    width: 100%;
}

/* ── Filter Card ─────────────────────────────────────────────────────────── */
.eduex-assignment-filter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(238, 241, 248, 0.95);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.eduex-filter-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
}

.filter-field-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.filter-field-item.search-field {
    flex: 1;
    min-width: 220px;
}

.filter-field-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-field-label i {
    color: #818cf8;
    font-size: 13px;
}

.eduex-form-select,
.eduex-form-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
    height: 40px;
}

.eduex-form-select:focus,
.eduex-form-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--eduex-primary, #635bff);
    box-shadow: 0 0 0 3px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.12);
}

.filter-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.eduex-filter-btn {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 0 20px;
    height: 40px;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.25);
    white-space: nowrap;
    text-decoration: none;
}

.eduex-filter-btn:hover {
    background: #4f46e5;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.32);
}

.eduex-reset-btn {
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 0 16px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.eduex-reset-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ── Modern Assignment Cards ─────────────────────────────────────────────── */
.eduex-assignment-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.eduex-assignment-card:hover {
    border-color: rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.3);
    box-shadow: 0 10px 25px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.08);
}

.assignment-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.assignment-course-pill {
    background: var(--eduex-primary-light, #f3f0ff);
    color: var(--eduex-primary, #635bff);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assignment-course-pill i {
    font-size: 12px;
}

/* Status Pills */
.status-pill-graded {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-pill-pending {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-pill-returned {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #ffe4e6;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.assignment-title {
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 8px 0;
}

.assignment-title a {
    color: #1e1b4b;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.assignment-title a:hover {
    color: var(--eduex-primary, #635bff);
}

.assignment-snippet {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Stats Box */
.assignment-meta-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-item-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.meta-item-value {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item-value.grade-value {
    color: #059669;
    font-size: 13px;
    font-weight: 800;
}

.meta-item-value i {
    font-size: 13px;
    color: #818cf8;
}

.eduex-assignment-submit-btn {
    background: var(--eduex-primary-light, #f3f0ff);
    color: var(--eduex-primary, #635bff);
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid var(--eduex-primary-border, #ede9fe);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    width: 100%;
}

.eduex-assignment-submit-btn:hover {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
    box-shadow: 0 4px 12px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.25);
    transform: translateY(-1px);
}

.eduex-assignment-submit-btn i {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.eduex-assignment-submit-btn:hover i {
    transform: translateX(3px);
}

/* ── Modern Course Access Assignment Partial Styles ─────────────────────── */
.assignment-content-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #eef2f6;
}

.assignment-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--eduex-primary-light, #f3f0ff);
    color: var(--eduex-primary, #635bff);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.assignment-detail-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.assignment-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 10px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 4px;
}

.assignment-file-chip:hover {
    border-color: var(--eduex-primary, #635bff);
    color: var(--eduex-primary, #635bff);
    background: #f5f3ff;
}

@media (max-width: 768px) {
    .eduex-filter-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-field-item {
        min-width: 100%;
    }

    .filter-actions-group {
        width: 100%;
        margin-left: 0;
        justify-content: stretch;
    }

    .eduex-filter-btn,
    .eduex-reset-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ==========================================================================
   Course Private Discussion Forum Styles
   ========================================================================== */
.forum-header-card {
    background: linear-gradient(135deg, #ffffff 0%, #fcfbfe 100%);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.forum-filter-bar {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 18px;
    padding: 12px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.forum-pill-btn {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.forum-pill-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.forum-pill-btn.active {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
    box-shadow: 0 3px 12px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.28);
}

.forum-search-wrap {
    position: relative;
    width: 100%;
}

.forum-search-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 9px 40px 9px 18px;
    font-size: 13px;
    color: #1e293b;
    transition: all 0.2s ease;
}

.forum-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--eduex-primary, #635bff);
    box-shadow: 0 0 0 3px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.12);
}

.forum-search-submit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #818cf8;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Discussion Card */
.forum-thread-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.forum-thread-card:hover {
    border-color: rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.35);
    box-shadow: 0 8px 25px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.08);
    transform: translateY(-2px);
}

.forum-thread-card.is-pinned {
    border-left: 4px solid #f59e0b;
}

.forum-thread-card.is-announcement {
    border-left: 4px solid var(--eduex-primary, #635bff);
}

.forum-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--eduex-primary-border, #ede9fe);
    box-shadow: 0 2px 6px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.1);
    flex-shrink: 0;
}

.forum-thread-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.forum-thread-title:hover {
    color: var(--eduex-primary, #635bff);
}

.forum-badge-pinned {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.forum-badge-announcement {
    background: var(--eduex-primary-light, #f3f0ff);
    color: var(--eduex-primary, #635bff);
    border: 1px solid var(--eduex-primary-border, #ede9fe);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.forum-thread-snippet {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 8px 0 14px 0;
}

.forum-meta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f8fafc;
}

.forum-author-info {
    font-size: 12.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forum-author-name {
    font-weight: 700;
    color: #334155;
}

.forum-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-btn-like {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.forum-btn-like:hover {
    background: #fdf2f8;
    color: #db2777;
    border-color: #fbcfe8;
}

.forum-btn-like.liked {
    background: #fdf2f8;
    color: #db2777;
    border-color: #f472b6;
    box-shadow: 0 2px 8px rgba(219, 39, 119, 0.15);
}

.forum-replies-count-btn {
    background: var(--eduex-primary-light, #f3f0ff);
    color: var(--eduex-primary, #635bff);
    border: 1px solid var(--eduex-primary-border, #ede9fe);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.forum-replies-count-btn:hover {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
}

.forum-btn-delete {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #ffe4e6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.forum-btn-delete:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
    transform: scale(1.05);
}

/* Discussion Detail View */
.forum-thread-detail-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.forum-thread-body {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    background: #fafafa;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 20px 0;
    white-space: pre-line;
}

/* Reply Item Cards */
.forum-reply-item {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015);
    transition: all 0.2s ease;
}

.forum-reply-item:hover {
    border-color: rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.2);
    box-shadow: 0 4px 14px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.05);
}

.forum-reply-item.moderator-reply {
    background: #faf8ff;
    border-color: #e4ddff;
    border-left: 3px solid var(--eduex-primary, #635bff);
}

.forum-role-badge {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.forum-reply-composer {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   Student Live Classes Styles
   ========================================================================== */
.live-broadcast-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px 28px;
    color: #ffffff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.live-dot-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: livePulseAnim 1.6s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes livePulseAnim {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.live-badge-live {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-badge-upcoming {
    background: var(--eduex-primary-light, #f3f0ff);
    color: var(--eduex-primary, #635bff);
    border: 1px solid var(--eduex-primary-border, #ede9fe);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.live-badge-soon {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.live-countdown-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 14px;
    text-align: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.live-countdown-label {
    font-size: 9.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.live-countdown-value {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.live-join-btn {
    background: #ef4444;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.live-join-btn:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.live-watch-btn {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.live-watch-btn:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
}

/* ==========================================================================
   Student Community & Q&A Styles (Minimal & Clean SaaS)
   ========================================================================== */
.community-tab-item {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    background: transparent;
    border: none;
}

.community-tab-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.community-tab-item.active {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    font-weight: 600;
}

.community-tab-item.active i {
    color: #ffffff;
}

.community-question-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: all 0.15s ease;
}

.community-question-card:hover {
    border-color: #cbd5e1;
    background: #fafcff;
}

.community-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--eduex-primary, #635bff);
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.community-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-author-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
}

.community-post-time {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.community-card-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.community-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.community-card-title a:hover {
    color: var(--eduex-primary, #635bff);
}

.community-card-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community-status-badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.community-status-badge.badge-answered {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

.community-status-badge.badge-unanswered {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.community-tag-chip {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.15s ease;
}

.community-tag-chip:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.community-meta-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 500;
}

.community-meta-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.community-meta-stats i {
    font-size: 14px;
    color: #94a3b8;
}

.community-join-btn {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--eduex-primary, #635bff);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.community-join-btn:hover {
    background: var(--eduex-primary-light, #f3f0ff);
    color: #4f46e5;
}

/* Detail page elements */
.community-vote-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 6px;
    min-width: 48px;
}

.community-vote-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    padding: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-vote-btn:hover {
    color: var(--eduex-primary, #635bff);
}

.community-vote-btn.active {
    color: var(--eduex-primary, #635bff);
}

.community-vote-count {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 3px 0;
}

.community-card-main {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 14px;
    padding: 20px;
}

.community-accepted-card {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.community-accepted-badge {
    background: #059669;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.community-accept-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.community-accept-btn:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #16a34a;
}

.community-author-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.community-author-pill .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--eduex-primary, #635bff);
    font-weight: 700;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.community-author-pill .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Student AI Assistant / Chat Styles
   ========================================================================== */
.eduex-ai-chat-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 210px);
    min-height: 520px;
}

.eduex-ai-chat-header {
    padding: 14px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eduex-ai-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--eduex-primary-light, #f3f0ff);
    color: var(--eduex-primary, #635bff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.eduex-ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f8fafc;
}

.ai-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 82%;
}

.chat-message-item.user-message-item {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-item.ai-message-item {
    align-self: flex-start;
}

.ai-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--eduex-primary-border, #ede9fe);
    color: var(--eduex-primary, #635bff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
    overflow: hidden;
}

.user-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-message-content {
    display: flex;
    flex-direction: column;
}

.user-message-item .chat-message-content {
    align-items: flex-end;
}

.ai-message-item .chat-message-content {
    align-items: flex-start;
}

.user-bubble {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 14px 14px 3px 14px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
}

.ai-bubble {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 14px 18px;
    border-radius: 14px 14px 14px 3px;
    font-size: 13.5px;
    line-height: 1.65;
    word-break: break-word;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.ai-bubble p {
    margin-bottom: 0.65rem;
}

.ai-bubble p:last-child {
    margin-bottom: 0;
}

.ai-bubble strong,
.ai-bubble b {
    color: #0f172a;
    font-weight: 700;
}

.ai-bubble h1,
.ai-bubble h2,
.ai-bubble h3,
.ai-bubble h4 {
    font-weight: 700;
    color: #0f172a;
    margin-top: 1rem;
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.ai-bubble h1 { font-size: 17px; }
.ai-bubble h2 { font-size: 16px; }
.ai-bubble h3 { font-size: 15px; }
.ai-bubble h4 { font-size: 14px; }

.ai-bubble ul,
.ai-bubble ol {
    margin-top: 0.35rem;
    margin-bottom: 0.75rem;
    padding-left: 1.4rem;
}

.ai-bubble li {
    margin-bottom: 0.35rem;
    line-height: 1.55;
    color: #334155;
}

.ai-bubble li:last-child {
    margin-bottom: 0;
}

.ai-bubble pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 10px 0;
    overflow-x: auto;
    font-family: 'Fira Code', 'Cascadia Code', Consolas, Monaco, monospace;
    font-size: 12.5px;
    line-height: 1.5;
}

.ai-bubble pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.ai-bubble code {
    background: #f1f5f9;
    color: var(--eduex-primary, #635bff);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 5px;
    font-family: 'Fira Code', 'Cascadia Code', Consolas, Monaco, monospace;
    font-size: 12px;
}

.ai-bubble blockquote {
    border-left: 3px solid var(--eduex-primary, #635bff);
    background: #f8fafc;
    padding: 8px 14px;
    margin: 8px 0;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}

.ai-bubble a {
    color: var(--eduex-primary, #635bff);
    text-decoration: underline;
    font-weight: 600;
}

.ai-bubble hr {
    margin: 12px 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}


.message-time-text {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
}

.eduex-ai-chat-footer {
    padding: 14px 18px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.ai-prompt-suggestion-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12.5px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}

.ai-prompt-suggestion-chip:hover {
    background: var(--eduex-primary-light, #f3f0ff);
    border-color: #c4b5fd;
    color: var(--eduex-primary, #635bff);
}

.ai-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
}

.ai-typing-indicator span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    display: inline-block;
    animation: ai-pulse 1.4s infinite ease-in-out both;
}

.ai-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes ai-pulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; background: var(--eduex-primary, #635bff); }
}

/* ==========================================================================
   Student Direct Messages / Instructor Chat Styles
   ========================================================================== */
.chat-conversation-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.chat-conversation-card:hover {
    border-color: #cbd5e1;
    background: #fafcff;
}

.chat-avatar-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    color: var(--eduex-primary, #635bff);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-attachment-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    margin-top: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.user-message .chat-attachment-pill {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.user-message .chat-attachment-pill:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.other-message .chat-attachment-pill {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.other-message .chat-attachment-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.chat-attachment-img {
    max-width: 240px;
    max-height: 200px;
    border-radius: 10px;
    margin-top: 6px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease;
}

.chat-attachment-img:hover {
    transform: scale(1.02);
}

.file-preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    color: #334155;
}

.eduex-btn-view-ticket {
    background: #f1f5f9;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.eduex-btn-view-ticket:hover {
    background: var(--eduex-primary, #635bff);
    color: #ffffff;
    border-color: var(--eduex-primary, #635bff);
}

.eduex-btn-view-ticket i {
    font-size: 14px;
}

/* ==========================================================================
   Student Certificate Styles
   ========================================================================== */
.eduex-certificate-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    height: 100%;
}

.eduex-certificate-card:hover {
    border-color: rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.35);
    background: #fafcff;
}

.eduex-cert-badge-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.eduex-cert-code-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* ==========================================================================
   Modern List & Table Components
   ========================================================================== */
.eduex-modern-table-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.eduex-modern-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 13.5px;
    border-collapse: separate;
    border-spacing: 0;
}

.eduex-modern-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    white-space: nowrap;
}

.eduex-modern-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

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

.eduex-modern-table tbody tr:hover {
    background-color: #fafbfc;
}

.eduex-modern-table tbody td {
    padding: 16px 20px;
    vertical-align: middle;
}

.eduex-table-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.1) 0%, rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.04) 100%);
    border: 1px solid rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.15);
    color: var(--eduex-primary, #635bff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.eduex-table-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    max-width: 260px;
}

.eduex-table-subtitle {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    align-items: center;
}

.eduex-gateway-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.eduex-gateway-pill i {
    font-size: 14px;
    color: #64748b;
}

.eduex-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
}

.eduex-status-badge.status-completed {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
}

.eduex-status-badge.status-pending {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
}

.eduex-status-badge.status-failed {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.eduex-status-badge i {
    font-size: 13px;
}

.eduex-amount-main {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.eduex-amount-discount {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    margin-top: 2px;
}

.eduex-coupon-tag {
    font-size: 9.5px;
    font-family: monospace;
    padding: 1px 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #64748b;
}

.eduex-amount-tax {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

.eduex-txn-pill {
    display: inline-block;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.3px;
}

.eduex-date-main {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.eduex-date-sub {
    font-size: 11px;
    color: #94a3b8;
}

/* ==========================================================================
   Modern Notifications Component (Matches SaaS Preview UI)
   ========================================================================== */
.notif-dot-indicator {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 9px;
    height: 9px;
    background: #f97316;
    border: 2px solid #ffffff;
    border-radius: 50%;
    pointer-events: none;
}

.notif-dropdown-window {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 400px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 48px -6px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.04);
    z-index: 1080;
    overflow: hidden;
    animation: eduexFadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-dropdown-window.show {
    display: block !important;
}

.notif-dropdown-header {
    padding: 16px 20px 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.notif-dropdown-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.notif-mark-read-link {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: underline;
    transition: opacity 0.15s ease;
}

.notif-mark-read-link:hover {
    color: var(--eduex-primary, #635bff);
    opacity: 0.8;
}

.notif-tabs-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.notif-tab-item {
    background: none;
    border: none;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.notif-tab-item:hover {
    color: #0f172a;
}

.notif-tab-item.active {
    color: #0f172a;
    font-weight: 700;
    border-bottom-color: #0f172a;
}

.notif-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 700;
}

.notif-count-badge.badge-dark {
    background: #0f172a;
    color: #ffffff;
}

.notif-count-badge.badge-soft {
    background: #f1f5f9;
    color: #64748b;
}

.notif-settings-btn {
    margin-left: auto;
    color: #94a3b8;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    text-decoration: none;
}

.notif-settings-btn:hover {
    color: #0f172a;
    background: #f8fafc;
}

.notif-items-scroll {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.notif-row-item {
    padding: 14px 18px;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.notif-row-item:hover {
    background-color: #f8fafc;
    color: inherit;
}

.notif-row-item.is-unread {
    background-color: #fffaf5;
}

.notif-row-item.is-unread:hover {
    background-color: #fff6ee;
}

.notif-avatar-box {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
}

.notif-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.notif-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    background: #f1f5f9;
    color: #475569;
}

.notif-avatar-placeholder.preset-amber {
    background: #fef3c7;
    color: #d97706;
}

.notif-avatar-placeholder.preset-purple {
    background: var(--eduex-primary-border, #ede9fe);
    color: var(--eduex-primary, #7c3aed);
}

.notif-avatar-placeholder.preset-mint {
    background: #dcfce7;
    color: #16a34a;
}

.notif-avatar-placeholder.preset-blue {
    background: #e0f2fe;
    color: #0284c7;
}

.notif-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.notif-status-dot.dot-orange {
    background: #f97316;
}

.notif-status-dot.dot-green {
    background: #22c55e;
}

.notif-status-dot.dot-blue {
    background: #3b82f6;
}

.notif-status-dot.dot-purple {
    background: #8b5cf6;
}

.notif-body-content {
    flex-grow: 1;
    overflow: hidden;
}

.notif-row-title {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 2px;
}

.notif-row-title b,
.notif-row-title strong {
    font-weight: 800;
}

.notif-row-meta {
    font-size: 11.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.notif-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.notif-action-btn-primary {
    background: #0f172a;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease;
}

.notif-action-btn-primary:hover {
    background: #1e293b;
    color: #ffffff;
}

.notif-action-btn-secondary {
    background: #ffffff;
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.notif-action-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.notif-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    margin-top: 6px;
}

.notif-dropdown-footer {
    padding: 12px 18px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.notif-dropdown-footer a {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--eduex-primary, #635bff);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.notif-dropdown-footer a:hover {
    color: #4f46e5;
}

@keyframes eduexFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .notif-dropdown-window {
        position: fixed !important;
        top: 62px !important;
        left: 12px !important;
        right: 12px !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        border-radius: 18px !important;
    }
}



/* ==========================================================================
   Modern Settings Component
   ========================================================================== */
.eduex-settings-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.eduex-settings-card.danger-card {
    border-color: rgba(239, 68, 68, 0.3);
    background: #ffffff;
}

.eduex-settings-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 22px;
}

.eduex-settings-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eduex-settings-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 0;
}

.eduex-avatar-upload-box {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.eduex-avatar-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eduex-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    backdrop-filter: blur(2px);
}

.eduex-avatar-upload-box:hover .eduex-avatar-overlay {
    opacity: 1;
}

.eduex-input-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.eduex-input-text {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 9px 14px;
    font-size: 13.5px;
    color: #0f172a;
    width: 100%;
    background: #ffffff;
    transition: all 0.15s ease;
}

.eduex-input-text:focus {
    border-color: var(--eduex-primary, #635bff);
    box-shadow: 0 0 0 3px rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.12);
    outline: none;
}

.eduex-password-wrapper {
    position: relative;
    width: 100%;
}

.eduex-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.eduex-password-toggle:hover {
    color: #475569;
}

.eduex-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.eduex-switch-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.eduex-switch-row:first-child {
    padding-top: 0;
}

.eduex-switch-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.eduex-switch-desc {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   Modern Subscription Component
   ========================================================================== */
.eduex-active-plan-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
    border-radius: 20px;
    padding: 32px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30, 27, 75, 0.2);
}

.eduex-active-plan-card::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.3) 0%, rgba(var(--eduex-primary-rgb, 99, 91, 255), 0) 70%);
    pointer-events: none;
}

.eduex-plan-stat-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 18px;
    backdrop-filter: blur(8px);
}

.eduex-plan-course-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 14px;
    padding: 18px 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.eduex-plan-course-card:hover {
    border-color: rgba(var(--eduex-primary-rgb, 99, 91, 255), 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.eduex-switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.eduex-switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.eduex-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.25s;
    border-radius: 24px;
}

.eduex-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.eduex-switch-toggle input:checked + .eduex-switch-slider {
    background-color: var(--eduex-primary, #635bff);
}

.eduex-switch-toggle input:checked + .eduex-switch-slider:before {
    transform: translateX(20px);
}
















/* ── Preserved Course Builder Styles ───────────────────────── */
/*
--------------------------------------------------------------
Instructor Pages Styles
--------------------------------------------------------------
*/

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    gap: 30px;
    min-height: calc(100vh - 200px);
}

.dashboard-sidebar {
    width: 300px;
    min-width: 300px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 20px;
    padding: 30px 0;
    box-shadow: var(--box-shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Profile Section */
.dashboard-profile {
    text-align: center;
    padding: 0 30px 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.dashboard-profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--theme);
    overflow: hidden;
    position: relative;
}

.dashboard-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-profile h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 5px;
}

.dashboard-profile p {
    color: var(--theme);
    font-size: 14px;
    margin-bottom: 15px;
}

.dashboard-profile .status-badge {
    display: inline-block;
    background: rgba(0, 79, 68, 0.1);
    color: var(--theme);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Menu Toggle Button */
.dashboard-menu-toggle {
    display: none;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 20px;
    background: var(--theme);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-direction: row;
}

.dashboard-menu-toggle:hover {
    background: var(--theme-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 68, 0.3);
}

.dashboard-menu-toggle i {
    font-size: 16px;
}

.dashboard-menu-toggle.active i::before {
    content: "\f00d";
    /* X icon when active */
}

.section-title-area-spacing {
    margin-bottom: 30px;
}

.dashboard-gap-lg {
    margin-bottom: 40px;
}

.dashboard-section-mt {
    margin-top: 30px;
}

.analytics-row-gap {
    margin-bottom: 40px;
}

.analytics-card-auto {
    height: auto;
}

.analytics-card-spacing {
    margin-top: 30px;
    height: auto;
}

.analytics-chart-fixed {
    height: 300px;
}

.dashboard-empty-padding {
    padding: 40px;
}

.section-title-area-compact {
    margin-bottom: 25px;
}

.stat-icon--theme {
    background: rgba(0, 79, 68, 0.1);
    color: var(--theme);
}

.stat-icon--warning {
    background: rgba(255, 164, 27, 0.1);
    color: #ffa41b;
}

.stat-icon--success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-icon--violet {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.section-title-area-top {
    margin-top: 50px;
}

.cta-button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-button {
    justify-content: flex-start;
    padding: 15px 20px;
}

.cta-button__label {
    margin-left: 10px;
}

.cta-button--outline-theme {
    background: transparent;
    border: 2px solid var(--theme);
    color: var(--theme);
}

.cta-button--outline-theme:hover {
    background: var(--theme);
    color: var(--white);
}

.cta-button--outline-theme-2 {
    background: transparent;
    border: 2px solid var(--theme-2);
    color: var(--theme-2);
}

.cta-button--outline-theme-2:hover {
    background: var(--theme-2);
    color: var(--white);
}

.support-card {
    background: rgba(0, 79, 68, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.promotion-card {
    background: rgba(255, 167, 41, 0.05);
    padding: 20px;
    border-radius: 12px;
}

.info-card-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.info-card-text {
    font-size: 14px;
    color: var(--text);
    opacity: 0.8;
    margin: 0;
}

.text-theme {
    color: var(--theme);
}

.text-theme-2 {
    color: var(--theme-2);
}

/* Sidebar Navigation Wrapper */
.dashboard-nav-wrapper {
    transition: all 0.3s ease;
}

/* Sidebar Navigation */
.dashboard-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-nav li {
    margin-bottom: 5px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.dashboard-nav a i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: var(--text);
    opacity: 0.7;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: rgba(0, 79, 68, 0.05);
    border-left-color: var(--theme);
    color: var(--theme);
}

.dashboard-nav a:hover i,
.dashboard-nav a.active i {
    opacity: 1;
    color: var(--theme);
}

/* Minimalistic Stats Grid */
.dashboard-stats-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card-minimal {
    background: var(--white);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(108, 112, 111, 0.15);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.stat-card-minimal:hover {
    border-color: var(--theme);
    box-shadow: 0 2px 12px rgba(0, 79, 68, 0.1);
    transform: translateY(-2px);
}

.stat-icon-minimal {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    flex-shrink: 0;
}

.stat-icon-minimal.stat-icon-1 {
    background: var(--theme);
}

.stat-icon-minimal.stat-icon-2 {
    background: var(--theme-2);
}

.stat-icon-minimal.stat-icon-3 {
    background: #10b981;
}

.stat-icon-minimal.stat-icon-4 {
    background: #8b5cf6;
}

.stat-content-minimal {
    flex: 1;
    min-width: 0;
}

.stat-value-minimal {
    font-size: 22px;
    font-weight: 700;
    color: var(--header);
    line-height: 1.2;
    margin-bottom: 3px;
}

.stat-label-minimal {
    font-size: 13px;
    color: var(--text);
    opacity: 0.65;
    line-height: 1.3;
}


/* Dashboard Content Section */
.dashboard-content-section {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
}

.dashboard-content-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-content-section h3 i {
    color: var(--theme);
}

/* Activity List */
.dashboard-activity {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.dashboard-activity-item:last-child {
    border-bottom: none;
}

.dashboard-activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 79, 68, 0.1);
    color: var(--theme);
    font-size: 18px;
    flex-shrink: 0;
}

.dashboard-activity-content {
    flex: 1;
}

.dashboard-activity-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 4px;
}

.dashboard-activity-content p {
    font-size: 13px;
    color: var(--text);
    opacity: 0.6;
    margin: 0;
}

.dashboard-activity-time {
    font-size: 13px;
    color: var(--text);
    opacity: 0.6;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1199px) {
    .dashboard-layout {
        flex-direction: column;
        gap: 20px;
    }

    .dashboard-sidebar {
        width: 100%;
        min-width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 0;
    }

    .dashboard-stats-minimal {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .dashboard-stats-minimal {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card-minimal {
        padding: 14px;
        gap: 10px;
        position: relative;
    }

    .stat-icon-minimal {
        width: 36px;
        height: 36px;
        font-size: 15px;
        flex-shrink: 0;
    }

    .stat-value-minimal {
        font-size: 18px;
    }

    .stat-label-minimal {
        font-size: 12px;
    }

    .stat-badge-minimal {
        padding: 3px 8px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .stat-content-minimal {
        min-width: 0;
        flex: 1;
    }

    .dashboard-content-section {
        padding: 25px 20px;
    }

    /* Show toggle button on mobile */
    .dashboard-menu-toggle {
        display: flex !important;
        margin-bottom: 15px;
    }

    .dashboard-sidebar {
        margin-bottom: 20px;
        border-radius: 16px;
        padding: 20px 0;
    }

    .dashboard-profile {
        padding: 0 20px 20px;
        margin-bottom: 20px;
    }

    /* Hide nav by default on mobile, show when toggled */
    .dashboard-nav-wrapper {
        display: none;
        overflow: hidden;
    }

    .dashboard-nav-wrapper.menu-open {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dashboard-profile-image {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
        border-width: 3px;
    }

    .dashboard-profile h4 {
        font-size: 18px;
    }

    .dashboard-profile p {
        font-size: 13px;
    }

    .dashboard-profile .status-badge {
        padding: 5px 12px;
        font-size: 12px;
    }

    .dashboard-nav {
        display: block;
        overflow-x: visible;
        padding: 0;
    }

    .dashboard-nav li {
        margin-bottom: 0;
    }

    .dashboard-nav a {
        white-space: normal;
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 12px 20px;
        font-size: 15px;
        gap: 12px;
    }

    .dashboard-nav a i {
        font-size: 18px;
        width: 22px;
    }

    .dashboard-nav a:hover,
    .dashboard-nav a.active {
        border-left: none;
        border-bottom-color: var(--theme);
        background: rgba(0, 79, 68, 0.08);
    }
}

@media (max-width: 480px) {
    .dashboard-stats-minimal {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card-minimal {
        padding: 12px;
        gap: 8px;
    }

    .stat-icon-minimal {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .stat-value-minimal {
        font-size: 16px;
    }

    .stat-label-minimal {
        font-size: 11px;
    }

    .stat-badge-minimal {
        padding: 2px 6px;
        font-size: 10px;
    }

    .dashboard-profile-image {
        width: 70px;
        height: 70px;
    }

    .dashboard-profile h4 {
        font-size: 16px;
    }

    .dashboard-nav a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .dashboard-menu-toggle {
        padding: 10px 16px;
        font-size: 14px;
    }

    .dashboard-menu-toggle span {
        font-size: 14px;
    }
}

/* Dashboard Courses Section with Gradient Background */
.dashboard-courses-section {
    background: linear-gradient(135deg,
            rgba(236, 253, 245, 0.6) 0%,
            rgba(254, 252, 232, 0.4) 50%,
            rgba(240, 253, 250, 0.5) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.dashboard-courses-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 79, 68, 0.02) 0%,
            rgba(254, 252, 232, 0.03) 50%,
            rgba(236, 253, 245, 0.02) 100%);
    pointer-events: none;
    z-index: 0;
}

.dashboard-courses-section>* {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .dashboard-courses-section {
        padding: 30px 20px;
        border-radius: 16px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-courses-section {
        padding: 25px 15px;
    }
}

/* Course Status Badge */
.course-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.course-status-badge.published {
    background: rgba(16, 185, 129, 0.9);
    color: var(--white);
}

.course-status-badge.draft {
    background: rgba(239, 68, 68, 0.9);
    color: var(--white);
}

/* Course Actions */
.course-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.course-actions .theme-btn {
    flex: 1;
    text-align: center;
    font-size: 14px;
    padding: 14px 20px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
}

.course-actions .theme-btn i {
    margin-left: 8px;
    margin-right: 0;
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
}

.course-actions .theme-btn.style-2 {
    background-color: transparent;
    border: 1px solid var(--theme);
    color: var(--theme);
}

.course-actions .theme-btn.style-2::before {
    background-color: var(--theme);
}

.course-actions .theme-btn.style-2:hover {
    color: var(--white);
    border-color: var(--theme);
}

.course-actions .theme-btn.style-2:hover i {
    background-color: var(--theme-2);
    color: var(--header);
}

/* Dashboard Header Actions */
.dashboard-main .section-title-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-header-actions {
    margin-top: 0;
    display: flex;
    align-items: center;
}

.dashboard-header-actions .theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
}

.dashboard-header-actions .theme-btn i {
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    background-color: var(--theme-2);
    color: var(--header);
    margin-left: 10px;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .dashboard-header-actions {
        margin-top: 15px;
        width: 100%;
        margin-bottom: 15px;
    }

    .dashboard-header-actions .theme-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
        gap: 6px;
    }

    .dashboard-header-actions .theme-btn i {
        width: 32px;
        height: 32px;
        line-height: 32px;
        margin-left: 6px;
        font-size: 12px;
    }

    .course-actions {
        flex-direction: column;
    }

    .course-actions .theme-btn {
        width: 100%;
    }
}

/* Dashboard Empty State */
.dashboard-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
    border: 2px dashed rgba(108, 112, 111, 0.2);
}

.dashboard-empty-state i {
    font-size: 64px;
    color: var(--theme);
    margin-bottom: 20px;
    opacity: 0.5;
}

.dashboard-empty-state h3 {
    font-size: 24px;
    color: var(--header);
    margin-bottom: 10px;
}

.dashboard-empty-state p {
    color: var(--text);
    margin-bottom: 25px;
    opacity: 0.7;
}

/* Students Page Styles */
.students-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.students-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--header);
    margin: 0;
}

.students-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.students-filter {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 4px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--theme);
    background: rgba(0, 79, 68, 0.05);
}

.filter-btn.active {
    background: var(--theme);
    color: var(--white);
}

.table-search {
    position: relative;
    display: flex;
    align-items: center;
}

.table-search .search-input {
    padding: 10px 40px 10px 15px;
    border: 1px solid rgba(108, 112, 111, 0.2);
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

.table-search .search-input:focus {
    outline: none;
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(0, 79, 68, 0.1);
}

.table-search i {
    position: absolute;
    right: 15px;
    color: var(--text);
    opacity: 0.5;
    pointer-events: none;
}

/* Students Table Styles */
.students-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.students-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.students-table-wrapper::-webkit-scrollbar-track {
    background: rgba(108, 112, 111, 0.1);
    border-radius: 4px;
}

.students-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 79, 68, 0.3);
    border-radius: 4px;
}

.students-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 79, 68, 0.5);
}

.students-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.students-table thead {
    background: rgba(0, 79, 68, 0.05);
}

.students-table thead th {
    padding: 18px 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--header);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(108, 112, 111, 0.1);
    white-space: nowrap;
}

.students-table tbody tr {
    border-bottom: 1px solid rgba(108, 112, 111, 0.1);
    transition: all 0.2s ease;
}

.students-table tbody tr:hover {
    background: rgba(0, 79, 68, 0.03);
}

.students-table tbody td {
    padding: 18px 15px;
    vertical-align: middle;
}

.table-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--theme);
}

.student-table-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar-small {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.student-avatar-small img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.student-avatar-small .status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.student-details {
    min-width: 0;
}

.student-name {
    font-weight: 600;
    color: var(--header);
    font-size: 15px;
    margin-bottom: 3px;
}

.student-email-small {
    font-size: 13px;
    color: var(--text);
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge-table {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-table.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge-table.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.table-value {
    font-size: 14px;
    color: var(--header);
    font-weight: 500;
}

.table-value.price {
    color: var(--theme);
    font-weight: 600;
}

.table-value.date {
    color: var(--text);
    opacity: 0.8;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 79, 68, 0.1);
    color: var(--theme);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.table-action-btn:hover {
    background: var(--theme);
    color: var(--white);
    transform: translateY(-2px);
}

/* Pagination Styles */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(108, 112, 111, 0.15);
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    font-size: 14px;
    color: var(--text);
    opacity: 0.7;
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid rgba(108, 112, 111, 0.2);
    color: var(--header);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--theme);
    color: var(--white);
    border-color: var(--theme);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid rgba(108, 112, 111, 0.2);
    color: var(--header);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-number:hover:not(.active) {
    background: rgba(0, 79, 68, 0.1);
    border-color: var(--theme);
    color: var(--theme);
}

.pagination-number.active {
    background: var(--theme);
    color: var(--white);
    border-color: var(--theme);
}

.students-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.student-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(108, 112, 111, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.student-card:hover {
    box-shadow: 0 8px 25px rgba(0, 79, 68, 0.12);
    transform: translateY(-4px);
    border-color: var(--theme);
}

.student-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--white);
}

.status-indicator.active {
    background: #10b981;
}

.status-indicator.inactive {
    background: #ef4444;
}

.student-info {
    text-align: center;
}

.student-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 5px;
}

.student-email {
    color: var(--text);
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 15px;
}

.student-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid rgba(108, 112, 111, 0.15);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
}

.stat-item i {
    color: var(--theme);
    font-size: 14px;
}

.student-meta {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(108, 112, 111, 0.15);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.meta-item i {
    color: var(--theme);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.meta-item>div {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 11px;
    color: var(--text);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--header);
    margin-top: 2px;
}

.student-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(108, 112, 111, 0.15);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 79, 68, 0.1);
    color: var(--theme);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--theme);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive Styles for Students Page */
@media (max-width: 1199px) {
    .students-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .students-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .students-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .students-filter {
        width: 100%;
        justify-content: center;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
    }

    .table-search {
        width: 100%;
    }

    .table-search .search-input {
        width: 100%;
    }

    .students-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .students-table {
        min-width: 800px;
    }

    .table-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}

/* Dashboard Theme Button Variants */
.dashboard-content-section .theme-btn {
    display: inline-flex;
    align-items: center;
}

/* Instructor Form Wrapper */
.instructor-wrapper {
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.instructor-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 10px;
}

.instructor-header p {
    color: var(--text);
    font-size: 16px;
}

/* Form Clt Styles for Instructor */
.instructor-form-clt {
    margin-bottom: 20px;
}

.instructor-form-clt input,
.instructor-form-clt textarea,
.instructor-form-clt select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text);
}

.instructor-form-clt input:focus,
.instructor-form-clt textarea:focus,
.instructor-form-clt select:focus {
    outline: none;
    border-color: var(--theme);
}

.instructor-form-clt input::placeholder,
.instructor-form-clt textarea::placeholder {
    color: var(--text);
    opacity: 0.6;
}

.instructor-form-clt textarea {
    min-height: 120px;
    resize: vertical;
}

.instructor-form-clt select {
    cursor: pointer;
}

/* File Upload Styles */
.instructor-file-upload {
    position: relative;
    width: 100%;
    padding: 20px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.instructor-file-upload:hover {
    border-color: var(--theme);
    background: var(--bg);
}

.instructor-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
}

.instructor-file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.instructor-file-upload-icon {
    font-size: 48px;
    color: var(--theme);
    margin-bottom: 10px;
}

.instructor-file-upload-text {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 5px;
}

.instructor-file-upload-hint {
    font-size: 14px;
    color: var(--text);
    opacity: 0.6;
}

.instructor-file-preview {
    margin-top: 15px;
    display: none;
}

.instructor-file-preview img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Section Divider */
.instructor-section-divider {
    margin: 40px 0;
    border-top: 1px solid var(--border);
}

/* Info Box */
.instructor-info-box {
    background: var(--bg);
    border-left: 4px solid var(--theme);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.instructor-info-box h5 {
    color: var(--theme);
    font-weight: 600;
    margin-bottom: 10px;
}

.instructor-info-box p {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 8px;
}

.instructor-info-box ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.instructor-info-box ul li {
    color: var(--text);
    font-size: 14px;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.instructor-info-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--theme);
    font-weight: bold;
}

/* Progress Indicator */
.instructor-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.instructor-progress-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.instructor-progress-item::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: -1;
}

.instructor-progress-item:last-child::after {
    display: none;
}

.instructor-progress-item.active .instructor-progress-circle {
    background: var(--theme);
    color: var(--white);
    border-color: var(--theme);
}

.instructor-progress-item.completed .instructor-progress-circle {
    background: var(--theme);
    color: var(--white);
    border-color: var(--theme);
}

.instructor-progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    background: var(--white);
    color: var(--text);
    opacity: 0.6;
}

.instructor-progress-label {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .instructor-wrapper {
        padding: 30px 20px;
    }

    .instructor-header h2 {
        font-size: 26px;
    }

    .instructor-progress {
        margin-bottom: 30px;
    }

    .instructor-progress-item::after {
        display: none;
    }

    .instructor-progress-label {
        font-size: 12px;
    }
}

/* Student Detail Page Styles */
.student-detail-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-end;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid rgba(108, 112, 111, 0.2);
    border-radius: 10px;
    color: var(--header);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(0, 79, 68, 0.05);
    border-color: var(--theme);
    color: var(--theme);
    transform: translateX(-3px);
}

.back-btn i {
    font-size: 12px;
}

/* Student Profile Header */
.student-profile-header {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.student-profile-main {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    flex: 1;
}

.student-profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.student-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--theme);
    box-shadow: 0 4px 15px rgba(0, 79, 68, 0.2);
}

.status-badge-large {
    position: absolute;
    bottom: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.status-badge-large.active {
    background: #10b981;
    color: var(--white);
}

.status-badge-large.inactive {
    background: #ef4444;
    color: var(--white);
}

.student-profile-info {
    flex: 1;
}

.student-profile-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 8px;
}

.student-email-header {
    font-size: 16px;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 20px;
}

.student-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.student-profile-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}

.student-profile-meta .meta-item i {
    color: var(--theme);
    font-size: 16px;
}

.student-profile-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Student Courses List */
.student-courses-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.student-course-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(108, 112, 111, 0.15);
    transition: all 0.3s ease;
    display: flex;
    gap: 25px;
}

.student-course-card:hover {
    box-shadow: 0 8px 25px rgba(0, 79, 68, 0.12);
    transform: translateY(-2px);
    border-color: var(--theme);
}

.student-course-card .course-image {
    position: relative;
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.student-course-card .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-status-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
}

.status-badge-complete,
.status-badge-progress,
.status-badge-not-started {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-badge-complete {
    background: rgba(16, 185, 129, 0.95);
    color: var(--white);
}

.status-badge-progress {
    background: rgba(59, 130, 246, 0.95);
    color: var(--white);
}

.status-badge-not-started {
    background: rgba(108, 112, 111, 0.95);
    color: var(--white);
}

.status-badge-complete i,
.status-badge-progress i,
.status-badge-not-started i {
    font-size: 10px;
}

.student-course-card .course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.student-course-card .course-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--header);
    margin: 0;
    line-height: 1.4;
}

.course-progress-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.progress-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--header);
}

.progress-percentage {
    font-size: 16px;
    font-weight: 700;
    color: var(--theme);
}

.progress-bar-wrapper {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(108, 112, 111, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--theme) 0%, rgba(0, 79, 68, 0.8) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.course-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item-small {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
}

.stat-item-small i {
    color: var(--theme);
    font-size: 14px;
}



/* Responsive Styles for Student Detail */
@media (max-width: 991px) {
    .student-profile-header {
        flex-direction: column;
        padding: 30px;
    }

    .student-profile-main {
        width: 100%;
    }

    .student-profile-actions {
        width: 100%;
    }

    .student-profile-actions .theme-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .student-profile-header {
        padding: 25px 20px;
    }

    .student-profile-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .student-profile-meta {
        justify-content: center;
    }

    .student-course-card {
        flex-direction: column;
        padding: 20px;
    }

    .student-course-card .course-image {
        width: 100%;
        height: 200px;
    }

    .course-stats {
        flex-direction: column;
        gap: 12px;
    }
}

/* Analytics Page Styles */
.stat-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    opacity: 0.8;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

/* Chart Cards */
.analytics-chart-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(108, 112, 111, 0.1);
}

.chart-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--header);
    margin: 0;
}

.chart-period {
    font-size: 13px;
    color: var(--text);
    opacity: 0.7;
}

.chart-container {
    height: 250px;
    position: relative;
}

/* Analytics Cards */
.analytics-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.analytics-card-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(108, 112, 111, 0.1);
}

.analytics-card-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--header);
    margin: 0;
}

/* Top Courses List */
.top-courses-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-course-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(108, 112, 111, 0.1);
    transition: all 0.3s ease;
}

.top-course-item:hover {
    box-shadow: 0 4px 15px rgba(0, 79, 68, 0.1);
    transform: translateY(-2px);
    border-color: var(--theme);
}

.course-rank {
    flex-shrink: 0;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--theme) 0%, rgba(0, 79, 68, 0.8) 100%);
    color: var(--white);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
}

.course-details {
    flex: 1;
}

.course-details h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}

.metric-item i {
    color: var(--theme);
    font-size: 14px;
}

.course-progress-bar {
    width: 100px;
    flex-shrink: 0;
    padding-top: 5px;
}

.progress-bar-small {
    width: 100%;
    height: 6px;
    background: rgba(108, 112, 111, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, var(--theme) 0%, rgba(0, 79, 68, 0.8) 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* Engagement Stats */
.engagement-stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.engagement-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.engagement-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
}

.engagement-icon.active {
    background: linear-gradient(135deg, #10b981 0%, rgba(16, 185, 129, 0.8) 100%);
}

.engagement-icon.completing {
    background: linear-gradient(135deg, #3b82f6 0%, rgba(59, 130, 246, 0.8) 100%);
}

.engagement-icon.at-risk {
    background: linear-gradient(135deg, #f59e0b 0%, rgba(245, 158, 11, 0.8) 100%);
}

.engagement-info {
    flex: 1;
}

.engagement-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 5px;
}

.engagement-label {
    font-size: 14px;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 5px;
}

.engagement-percentage {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme);
}

/* Recent Activity */
.recent-activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(108, 112, 111, 0.1);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--white);
    flex-shrink: 0;
}

.activity-icon.enrollment {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.activity-icon.completion {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.activity-icon.review {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    font-size: 14px;
    color: var(--header);
    margin-bottom: 5px;
    line-height: 1.5;
}

.activity-time {
    font-size: 12px;
    color: var(--text);
    opacity: 0.6;
}

/* Responsive Styles for Analytics */
@media (max-width: 991px) {

    .analytics-chart-card,
    .analytics-card {
        margin-bottom: 30px;
        height: auto;
    }

    .course-progress-bar {
        width: 100%;
        margin-top: 15px;
    }

    .top-course-item {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    .analytics-chart-card,
    .analytics-card {
        padding: 20px;
    }

    .chart-container {
        height: 200px;
    }

    .course-metrics {
        flex-direction: column;
        gap: 12px;
    }

    .engagement-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Reviews Page Styles */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.reviews-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--header);
    margin: 0;
}

.reviews-filters {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 4px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.reviews-filters .filter-btn {
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reviews-filters .filter-btn:hover {
    color: var(--theme);
    background: rgba(0, 79, 68, 0.05);
}

.reviews-filters .filter-btn.active {
    background: var(--theme);
    color: var(--white);
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(108, 112, 111, 0.15);
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 8px 25px rgba(0, 79, 68, 0.12);
    transform: translateY(-2px);
    border-color: var(--theme);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.review-student {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.review-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-student-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 5px;
}

.review-course {
    font-size: 14px;
    color: var(--text);
    opacity: 0.7;
}

.review-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.star-rating {
    display: flex;
    gap: 4px;
}

.star-rating i {
    font-size: 16px;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.star-rating i.active {
    color: #FFA41B;
}

.review-date {
    font-size: 13px;
    color: var(--text);
    opacity: 0.6;
}

.review-content {
    margin-bottom: 20px;
}

.review-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--header);
    margin: 0;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(108, 112, 111, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: 10px;
}

.helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 79, 68, 0.05);
    border: 1px solid rgba(0, 79, 68, 0.1);
    border-radius: 8px;
    color: var(--theme);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    background: rgba(0, 79, 68, 0.1);
    border-color: var(--theme);
    transform: translateY(-2px);
}

.helpful-btn i {
    font-size: 12px;
}

.review-actions {
    display: flex;
    gap: 10px;
}

.reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--white);
    border: 2px solid var(--theme);
    border-radius: 8px;
    color: var(--theme);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reply-btn:hover {
    background: var(--theme);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 68, 0.3);
}

.reply-btn i {
    font-size: 12px;
}

/* Reply Form */
.reply-form-container {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(108, 112, 111, 0.1);
    animation: slideDown 0.3s ease;
}

.reply-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    width: 100%;
}

.reply-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(108, 112, 111, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--header);
    resize: vertical;
    transition: all 0.3s ease;
    background: var(--white);
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(0, 79, 68, 0.1);
}

.reply-textarea::placeholder {
    color: var(--text);
    opacity: 0.5;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cancel-reply-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid rgba(108, 112, 111, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-reply-btn:hover {
    background: rgba(108, 112, 111, 0.05);
    border-color: rgba(108, 112, 111, 0.3);
}

.submit-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--theme);
    border: 2px solid var(--theme);
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-reply-btn:hover {
    background: rgba(0, 79, 68, 0.9);
    border-color: rgba(0, 79, 68, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 68, 0.3);
}

.submit-reply-btn i {
    font-size: 12px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Replies Section */
.replies-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(108, 112, 111, 0.1);
}

.replies-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--header);
}

.replies-header i {
    color: var(--theme);
    font-size: 16px;
}

.reply-item {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(0, 79, 68, 0.02);
    border-radius: 12px;
    border-left: 3px solid rgba(108, 112, 111, 0.2);
}

.reply-item.instructor-reply {
    background: rgba(0, 79, 68, 0.05);
    border-left-color: var(--theme);
}

.reply-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.reply-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--theme);
    color: var(--white);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reply-author-badge.student {
    background: rgba(108, 112, 111, 0.8);
}

.reply-author-badge i {
    font-size: 10px;
}

.reply-date {
    font-size: 13px;
    color: var(--text);
    opacity: 0.6;
}

.reply-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--header);
    margin: 0;
    padding-left: 0;
}

/* Responsive Styles for Reviews */
@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-filters {
        width: 100%;
        justify-content: center;
    }

    .reviews-filters .filter-btn {
        flex: 1;
        min-width: 80px;
        text-align: center;
        font-size: 12px;
        padding: 8px 12px;
    }

    .review-header {
        flex-direction: column;
    }

    .review-rating {
        align-items: flex-start;
        width: 100%;
    }

    .review-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .helpful-btn,
    .reply-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Earnings & Transactions Styles */
.transactions-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.transaction-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.transaction-type-badge.sale {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.transaction-type-badge.withdrawal {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.transaction-type-badge i {
    font-size: 10px;
}

.transaction-amount {
    font-weight: 700;
    font-size: 14px;
}

.transaction-amount.positive {
    color: #10b981;
}

.transaction-amount.negative {
    color: #ef4444;
}

/* Withdrawals Page Styles */
.withdrawal-form {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(108, 112, 111, 0.15);
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--header);
}

.form-control {
    padding: 12px 16px;
    border: 2px solid rgba(108, 112, 111, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--header);
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(0, 79, 68, 0.1);
}

.form-control::placeholder {
    color: var(--text);
    opacity: 0.5;
}

/* Ensure checkboxes are clickable */
input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--theme);
}

input[type="checkbox"]:focus {
    outline: 2px solid var(--theme);
    outline-offset: 2px;
}

/* Disabled input styling */
.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* DateTime picker styling */
input[type="datetime-local"] {
    padding: 12px 16px;
    border: 2px solid rgba(108, 112, 111, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--header);
    transition: all 0.3s ease;
    background: var(--white);
    cursor: pointer;
}

input[type="datetime-local"]:focus {
    outline: none;
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(0, 79, 68, 0.1);
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    filter: invert(0.5);
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    z-index: 1;
}

.amount-input-wrapper .form-control {
    padding-left: 55px;
    padding-right: 70px;
}

.btn-max {
    position: absolute;
    right: 8px;
    padding: 6px 12px;
    background: rgba(0, 79, 68, 0.05);
    border: 1px solid rgba(0, 79, 68, 0.1);
    border-radius: 6px;
    color: var(--theme);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-max:hover {
    background: rgba(0, 79, 68, 0.1);
    border-color: var(--theme);
}

.form-hint {
    font-size: 12px;
    color: var(--text);
    opacity: 0.7;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(108, 112, 111, 0.1);
}

.cancel-btn {
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid rgba(108, 112, 111, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(108, 112, 111, 0.05);
    border-color: rgba(108, 112, 111, 0.3);
}

.reference-code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--header);
    padding: 4px 8px;
    background: rgba(108, 112, 111, 0.05);
    border-radius: 4px;
}

.withdrawal-method {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 4px;
}

.withdrawal-method i {
    font-size: 16px;
    color: var(--theme);
}

.method-details {
    display: block;
    font-size: 12px;
    color: var(--text);
    opacity: 0.7;
    margin-top: 4px;
}

/* Responsive Styles for Earnings */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .cancel-btn,
    .form-actions .theme-btn {
        width: 100%;
        justify-content: center;
    }

    .amount-input-wrapper .form-control {
        padding-right: 60px;
    }
}

/* Settings Page Styles */
.settings-form {
    margin-top: 25px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text);
    opacity: 0.7;
    margin-top: 5px;
    margin-bottom: 0;
}

.required {
    color: #ef4444;
    margin-left: 2px;
}

/* Avatar Upload */
.avatar-upload-group {
    margin-bottom: 30px;
}

.avatar-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.avatar-preview {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 4px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.avatar-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 79, 68, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--white);
}

.avatar-preview:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 24px;
}

.avatar-overlay span {
    font-size: 12px;
    font-weight: 600;
}

/* Form Section Divider */
.form-section-divider {
    margin: 40px 0 25px;
    padding-top: 30px;
    border-top: 1px solid rgba(108, 112, 111, 0.15);
}

.form-section-divider h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 5px;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text);
    opacity: 0.6;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    opacity: 1;
    color: var(--theme);
}

.password-toggle i {
    font-size: 16px;
}

/* Account Settings List */
.account-settings-list {
    margin-top: 25px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(108, 112, 111, 0.15);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.setting-item:hover {
    border-color: var(--theme);
    box-shadow: 0 2px 8px rgba(0, 79, 68, 0.1);
}

.setting-info {
    flex: 1;
}

.setting-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 5px;
}

.setting-info p {
    font-size: 13px;
    color: var(--text);
    opacity: 0.7;
    margin: 0;
}

.setting-control {
    margin-left: 20px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    z-index: 2;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
    z-index: 1;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    z-index: 2;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--theme);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus+.toggle-slider {
    box-shadow: 0 0 1px var(--theme);
}

/* Danger Zone */
.danger-zone {
    border: 2px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.02);
}

.danger-zone .section-title h3 {
    color: #ef4444;
}

.danger-actions {
    margin-top: 25px;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    background: var(--white);
}

.danger-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 5px;
}

.danger-info p {
    font-size: 13px;
    color: var(--text);
    opacity: 0.7;
    margin: 0;
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ef4444;
    border: 2px solid #ef4444;
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.danger-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.danger-btn i {
    font-size: 14px;
}

/* Social Media Labels */
.form-group label i {
    margin-right: 8px;
    color: var(--theme);
    font-size: 16px;
}

.course-status-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.course-status-badge.draft {
    background-color: #6c757d;
    color: #fff;
}

.course-status-badge.pending {
    background-color: #ffc107;
    color: #000;
}

.course-status-badge.published {
    background-color: #28a745;
    color: #fff;
}

/* Responsive Styles for Settings */
@media (max-width: 768px) {
    .avatar-upload-wrapper {
        align-items: flex-start;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .setting-control {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    .danger-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .danger-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

/* Course Builder Layout */
.course-builder-layout {
    width: 100%;
}

.course-builder-main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

@media (max-width: 768px) {
    .course-builder-main {
        padding: 20px 15px;
    }
}

/* Course Builder Styles */
.course-builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 2px solid rgba(108, 112, 111, 0.1);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.builder-title {
    display: flex;
    align-items: center;
}

.builder-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--header);
    margin: 0;
}

.builder-progress {
    display: flex;
    gap: 30px;
    align-items: center;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text);
    opacity: 0.6;
}

.progress-step.active {
    opacity: 1;
    color: var(--theme);
    background: rgba(0, 79, 68, 0.05);
}

.progress-step .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(108, 112, 111, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.progress-step.active .step-number {
    background: var(--theme);
    color: var(--white);
}

.step-label {
    font-size: 14px;
    font-weight: 600;
}

.builder-actions {
    display: flex;
    gap: 12px;
}

.btn-preview,
.btn-publish {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-preview {
    background: var(--white);
    border: 2px solid rgba(108, 112, 111, 0.2);
    color: var(--text);
}

.btn-preview:hover {
    border-color: var(--theme);
    color: var(--theme);
}

.btn-publish {
    background: var(--theme);
    color: var(--white);
}

.btn-publish:hover {
    background: rgba(0, 79, 68, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 68, 0.3);
}

/* Builder Steps */
.builder-step {
    display: none;
}

.builder-step.active {
    display: block;
}

.step-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 30px;
}

.step-left,
.step-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Rich Editor Toolbar */
.rich-editor-toolbar {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(108, 112, 111, 0.05);
    border: 1px solid rgba(108, 112, 111, 0.1);
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.format-select {
    padding: 6px 10px;
    border: 1px solid rgba(108, 112, 111, 0.2);
    border-radius: 4px;
    font-size: 12px;
    background: var(--white);
}

.toolbar-btn {
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
}

.toolbar-btn:hover {
    background: rgba(0, 79, 68, 0.1);
    color: var(--theme);
}

.rich-editor-wrapper {
    position: relative;
    border: 2px solid rgba(108, 112, 111, 0.2);
    border-radius: 0 0 8px 8px;
    border-top: none;
    background: var(--white);
}

.rich-editor {
    min-height: 200px;
    border: none;
}

.rich-editor .ql-editor {
    min-height: 200px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--header);
}

.rich-editor .ql-editor.ql-blank::before {
    color: var(--text);
    opacity: 0.5;
    font-style: normal;
}

.edit-with-ai {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #FFA41B;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}

.edit-with-ai:hover {
    text-decoration: underline;
}

/* Options Tabs */
.options-tabs {
    border: 1px solid rgba(108, 112, 111, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid rgba(108, 112, 111, 0.15);
    background: rgba(108, 112, 111, 0.02);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(108, 112, 111, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn.active {
    background: var(--white);
    color: var(--theme);
}

.tab-content {
    padding: 20px;
    background: var(--white);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--header);
    position: relative;
    z-index: 0;
    user-select: none;
}

.toggle-checkbox {
    display: none;
}

/* Image & Video Upload */
.image-upload-area,
.video-upload-area {
    margin-top: 10px;
}

.image-preview,
.video-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed rgba(108, 112, 111, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(108, 112, 111, 0.02);
}

.image-preview:hover,
.video-preview:hover {
    border-color: var(--theme);
    background: rgba(0, 79, 68, 0.02);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.image-preview i,
.video-preview i {
    font-size: 48px;
    color: var(--text);
    opacity: 0.5;
}

.image-preview span,
.video-preview span {
    font-size: 14px;
    color: var(--text);
    opacity: 0.7;
}

/* Pricing Options */
.pricing-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.custom-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--header);
    user-select: none;
    transition: color 0.2s ease;
}

.custom-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-control .control-indicator {
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(25, 28, 43, 0.25);
    border-radius: 6px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(20, 36, 74, 0.06);
}

.custom-control .control-indicator::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--theme);
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s ease;
}

.custom-control .control-label {
    display: inline-flex;
    align-items: center;
    line-height: 1.1;
}

.custom-control input:checked+.control-indicator {
    border-color: var(--theme);
    background: rgba(32, 125, 253, 0.12);
    box-shadow: 0 4px 12px rgba(32, 125, 253, 0.18);
}

.custom-control input:checked+.control-indicator::after {
    opacity: 1;
    transform: scale(1);
}

.custom-control input:focus-visible+.control-indicator {
    box-shadow: 0 0 0 4px rgba(32, 125, 253, 0.2);
}

.custom-control--radio .control-indicator {
    border-radius: 50%;
}

.custom-control--radio .control-indicator::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.custom-control--checkbox .control-indicator::after {
    border-radius: 4px;
}

.custom-control:hover .control-indicator {
    border-color: var(--theme);
}

/* Step Header */
.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.step-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--header);
    margin: 0;
}

/* Curriculum Container */
.curriculum-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.topic-card {
    background: var(--white);
    border: 1px solid rgba(108, 112, 111, 0.15);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.topic-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.topic-drag-handle {
    cursor: move;
    color: var(--text);
    opacity: 0.5;
    font-size: 18px;
}

.topic-title-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(108, 112, 111, 0.2);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--header);
}

.topic-title-input:focus {
    outline: none;
    border-color: var(--theme);
}

.topic-actions {
    display: flex;
    gap: 8px;
}

.topic-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(108, 112, 111, 0.05);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s ease;
}

.topic-action-btn:hover {
    background: rgba(0, 79, 68, 0.1);
    color: var(--theme);
}

.topic-body {
    margin-top: 15px;
}

.topic-description textarea {
    width: 100%;
    resize: vertical;
    margin-bottom: 15px;
}

.topic-actions-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-add-content {
    padding: 8px 16px;
    background: rgba(0, 79, 68, 0.05);
    border: 1px solid rgba(0, 79, 68, 0.2);
    border-radius: 6px;
    color: var(--theme);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-add-content:hover {
    background: rgba(0, 79, 68, 0.1);
    border-color: var(--theme);
}

.topic-content-list {
    margin-bottom: 15px;
}

.content-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(108, 112, 111, 0.1);
    transition: all 0.3s ease;
}

.content-item:hover {
    border-color: rgba(108, 112, 111, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.content-item i {
    color: var(--text);
    opacity: 0.6;
    font-size: 16px;
}

.content-item-title {
    flex: 1;
    border: 1px solid transparent;
    background: transparent;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--header);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.content-item-title:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(108, 112, 111, 0.1);
}

.content-item-title:focus {
    outline: none;
    background: var(--white);
    border-color: var(--theme);
    box-shadow: 0 0 0 2px rgba(0, 79, 68, 0.1);
}

.content-item-options {
    padding: 0 16px 16px 16px;
    border-top: 1px solid rgba(108, 112, 111, 0.1);
    margin-top: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-item-actions {
    display: flex;
    gap: 5px;
}

.content-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.content-action-btn:hover {
    opacity: 1;
    color: var(--theme);
}

.topic-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(108, 112, 111, 0.1);
}

/* File Upload Styles */
.file-upload-area {
    margin-top: 8px;
}

.file-upload-dropzone,
.video-upload-dropzone {
    border: 2px dashed rgba(108, 112, 111, 0.3);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(108, 112, 111, 0.02);
}

.file-upload-dropzone:hover,
.video-upload-dropzone:hover {
    border-color: var(--theme);
    background: rgba(0, 79, 68, 0.05);
}

.file-upload-dropzone i,
.video-upload-dropzone i {
    font-size: 32px;
    color: var(--theme);
    margin-bottom: 10px;
    display: block;
}

.file-upload-dropzone p,
.video-upload-dropzone p {
    margin: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--header);
}

.file-upload-dropzone small,
.video-upload-dropzone small {
    font-size: 12px;
    color: var(--text);
    opacity: 0.7;
}

.uploaded-files-list {
    margin-top: 12px;
}

.uploaded-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(108, 112, 111, 0.05);
    border-radius: 6px;
    margin-top: 8px;
}

/* Question Item Styles */
.question-item {
    background: rgba(108, 112, 111, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(108, 112, 111, 0.1);
}

.btn-add-question {
    padding: 6px 12px;
    font-size: 12px;
    background: var(--theme);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-question:hover {
    background: var(--theme-hover, #006b5c);
    transform: translateY(-1px);
}

.questions-list {
    margin-top: 10px;
}

.btn-cancel,
.btn-ok,
.btn-import {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-cancel {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(108, 112, 111, 0.2);
}

.btn-cancel:hover {
    background: rgba(108, 112, 111, 0.05);
}

.btn-ok {
    background: var(--theme);
    color: var(--white);
}

.btn-ok:hover {
    background: rgba(0, 79, 68, 0.9);
}

.btn-import {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.btn-import:hover {
    background: rgba(139, 92, 246, 0.2);
}

.btn-add-topic {
    width: 100%;
    padding: 15px;
    background: var(--theme);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-add-topic:hover {
    background: rgba(0, 79, 68, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 68, 0.3);
}

/* Additional Settings */
.additional-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Builder Navigation */
.builder-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 2px solid rgba(108, 112, 111, 0.1);
    margin-top: 30px;
}

.btn-nav {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background: var(--white);
    border: 2px solid rgba(108, 112, 111, 0.2);
    color: var(--text);
}

.btn-prev:hover {
    border-color: var(--theme);
    color: var(--theme);
}

.btn-next {
    background: var(--theme);
    color: var(--white);
}

.btn-next:hover {
    background: rgba(0, 79, 68, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 68, 0.3);
}

/* Responsive Styles for Course Builder */
@media (max-width: 1024px) {
    .step-content {
        grid-template-columns: 1fr;
    }

    .step-right {
        order: -1;
    }
}

@media (max-width: 768px) {
    .course-builder-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .builder-progress {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .progress-step .step-label {
        display: none;
    }

    .builder-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .builder-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
    }

    .topic-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .btn-cancel,
    .btn-ok,
    .btn-import {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------------------------
   Assignments Pages
-------------------------------------------------------------- */
.assignments-filter-card,
.submissions-filter-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
    border: 1px solid rgba(108, 112, 111, 0.12);
}

.assignments-filter-form,
.submissions-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.assignments-filter-form .filter-group,
.submissions-filter-form .filter-group {
    flex: 1;
    min-width: 220px;
}

.filter-select {
    position: relative;
}

.filter-select select {
    width: 100%;
    /* padding: 14px 45px 14px 16px; */
    border-radius: 10px;
    border: 1px solid rgba(108, 112, 111, 0.2);
    font-size: 14px;
    font-weight: 500;
    color: var(--header);
    background: var(--white);
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.filter-select select:focus {
    outline: none;
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(0, 79, 68, 0.1);
}

.filter-select i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: rgba(108, 112, 111, 0.6);
    pointer-events: none;
}

.filter-submit-btn,
.filter-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-submit-btn {
    background: var(--theme);
    color: var(--white);
}

.filter-submit-btn:hover {
    background: rgba(0, 79, 68, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 68, 0.3);
}

.filter-reset-btn {
    background: rgba(108, 112, 111, 0.08);
    color: var(--header);
    border: 1px solid rgba(108, 112, 111, 0.15);
}

.filter-reset-btn:hover {
    background: rgba(108, 112, 111, 0.15);
}

.assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.assignment-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(108, 112, 111, 0.12);
    box-shadow: 0 6px 20px rgba(0, 79, 68, 0.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.assignment-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 79, 68, 0.05), rgba(255, 167, 41, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.assignment-card:hover {
    transform: translateY(-4px);
    border-color: var(--theme);
    box-shadow: 0 12px 28px rgba(0, 79, 68, 0.12);
}

.assignment-card:hover::before {
    opacity: 1;
}

.assignment-card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.assignment-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 79, 68, 0.12);
    color: var(--theme);
    font-size: 20px;
    flex-shrink: 0;
}

.assignment-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 6px;
}

.assignment-card-header p {
    font-size: 13px;
    color: rgba(108, 112, 111, 0.75);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.assignment-description {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

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

.assignment-stat {
    background: rgba(0, 79, 68, 0.05);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.assignment-stat .stat-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(108, 112, 111, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.assignment-stat .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--header);
}

.assignment-card-footer {
    display: flex;
    justify-content: flex-end;
}

.assignment-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(0, 79, 68, 0.08);
    color: var(--theme);
    text-decoration: none;
    transition: all 0.3s ease;
}

.assignment-action-btn:hover {
    background: var(--theme);
    color: var(--white);
    transform: translateY(-2px);
}

/* Assignment Detail */
.assignment-overview-card {
    background: var(--white);
    border-radius: 18px;
    padding: 30px;
    border: 1px solid rgba(108, 112, 111, 0.12);
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
}

.overview-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 25px;
}

.overview-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.overview-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(108, 112, 111, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.overview-row h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--header);
    margin: 0;
    line-height: 1.3;
}

.overview-stat {
    padding: 16px;
    border-radius: 14px;
    background: rgba(108, 112, 111, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.overview-stat.pending {
    background: rgba(255, 167, 41, 0.12);
    color: #d97706;
}

.overview-stat.graded {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.overview-stat.returned {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.overview-stat .stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.overview-stat .stat-value {
    font-size: 22px;
    font-weight: 700;
}

.overview-body .overview-section {
    margin-top: 18px;
}

.overview-section h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 12px;
}

.assignment-content {
    background: rgba(108, 112, 111, 0.06);
    border-radius: 14px;
    padding: 18px;
    color: var(--text);
    line-height: 1.7;
}

.filter-search {
    position: relative;
}

.filter-search .search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(108, 112, 111, 0.2);
    font-size: 14px;
    color: var(--header);
    transition: all 0.3s ease;
}

.filter-search .search-input:focus {
    outline: none;
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(0, 79, 68, 0.1);
}

.filter-search i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(108, 112, 111, 0.6);
    font-size: 14px;
}

.section-actions .breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(108, 112, 111, 0.08);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--header);
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-actions .breadcrumb-back:hover {
    background: var(--theme);
    color: var(--white);
    transform: translateX(-3px);
}

/* Submission Review Page */
.submission-overview-card {
    background: var(--white);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(108, 112, 111, 0.12);
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
}

.submission-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.student-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.student-avatar {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid rgba(0, 79, 68, 0.1);
    flex-shrink: 0;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.submission-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.submission-meta .meta-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(108, 112, 111, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.submission-meta .meta-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--header);
}

.submission-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 24px;
}

.submission-section {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(108, 112, 111, 0.12);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.submission-section h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 14px;
}

.submission-text {
    background: rgba(0, 79, 68, 0.05);
    border-radius: 12px;
    padding: 18px;
    color: var(--text);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.submission-empty {
    margin: 0;
    font-size: 14px;
    color: rgba(108, 112, 111, 0.8);
}

.submission-files {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submission-files li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(108, 112, 111, 0.06);
    border: 1px solid rgba(108, 112, 111, 0.1);
}

.submission-files i {
    font-size: 18px;
    color: var(--theme);
}

.submission-files .file-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.submission-files .file-details a {
    color: var(--theme);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.submission-files .file-details a:hover {
    text-decoration: underline;
}

.submission-files .file-meta {
    font-size: 12px;
    color: rgba(108, 112, 111, 0.75);
}

.submission-files .file-download {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 79, 68, 0.08);
    color: var(--theme);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.submission-files .file-download:hover {
    background: var(--theme);
    color: var(--white);
    transform: translateY(-2px);
}

.submission-grading-card {
    background: var(--white);
    border-radius: 16px;
    padding: 26px;
    border: 1px solid rgba(108, 112, 111, 0.12);
    box-shadow: var(--box-shadow);
    height: fit-content;
}

.submission-grading-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 18px;
}

.grading-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grading-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grading-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--header);
}

.grading-form .nice-select,
.grading-form .form-control,
.grading-form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(108, 112, 111, 0.2);
    font-size: 14px;
    font-weight: 500;
    color: var(--header);
    padding: 14px 16px;
    transition: all 0.3s ease;
    background: var(--white);
}

.grading-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.grading-form .nice-select:focus,
.grading-form .form-control:focus,
.grading-form textarea:focus {
    outline: none;
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(0, 79, 68, 0.1);
}

.form-error {
    font-size: 12px;
    color: #dc2626;
    font-weight: 600;
}

.grading-form-actions {
    display: flex;
    justify-content: flex-end;
}

.grading-form-actions .primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: var(--theme);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grading-form-actions .primary-btn:hover {
    background: rgba(0, 79, 68, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 68, 0.3);
}

.status-badge-table.pending {
    background: rgba(255, 167, 41, 0.15);
    color: #d97706;
}

.status-badge-table.graded,
.status-badge-table.passed {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.status-badge-table.returned,
.status-badge-table.failed {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .submission-content-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .assignments-filter-form,
    .submissions-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions {
        width: 100%;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .filter-actions .filter-submit-btn,
    .filter-actions .filter-reset-btn {
        flex: 1;
        justify-content: center;
    }

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

    .assignment-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .submission-meta {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

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

    .assignment-stat {
        padding: 10px;
    }

    .assignment-stat .stat-value {
        font-size: 16px;
    }

    .submission-grading-card {
        padding: 22px;
    }

    .grading-form-actions {
        justify-content: stretch;
    }

    .grading-form-actions .primary-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Builder Steps Navigation */
.builder-steps-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(108, 112, 111, 0.12);
    box-shadow: 0 12px 35px rgba(11, 65, 64, 0.08);
}

.builder-steps-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.builder-step {
    flex: 1;
    min-width: 160px;
}

.builder-step-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(108, 112, 111, 0.2);
    background: rgba(250, 252, 252, 0.9);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.builder-step-link:hover {
    border-color: var(--theme);
    color: var(--theme);
    box-shadow: 0 10px 25px rgba(11, 65, 64, 0.12);
}

.builder-step.locked .builder-step-link {
    pointer-events: none;
    opacity: 0.55;
    color: rgba(33, 43, 54, 0.6);
    background: rgba(246, 247, 247, 0.7);
}

.builder-step.completed .builder-step-link {
    border-color: rgba(4, 153, 114, 0.45);
    background: rgba(4, 153, 114, 0.08);
    color: var(--theme);
}

.builder-step.active .builder-step-link {
    border-color: var(--theme);
    box-shadow: 0 12px 30px rgba(4, 153, 114, 0.18);
    background: linear-gradient(135deg, rgba(4, 153, 114, 0.08), rgba(4, 96, 156, 0.08));
}

.builder-step-index {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 96, 156, 0.12);
    color: var(--theme-2);
    font-size: 14px;
    font-weight: 700;
}

.builder-step.completed .builder-step-index {
    background: rgba(4, 153, 114, 0.2);
    color: var(--theme);
}

.builder-step-label {
    flex: 1;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.builder-step-status {
    font-size: 16px;
    color: var(--theme);
}

@media (max-width: 767px) {
    .builder-steps-wrapper {
        padding: 18px;
    }

    .builder-step-link {
        padding: 14px 16px;
    }
}

/* Events Cards */
.event-card .event-summary {
    font-size: 14px;
    color: rgba(33, 43, 54, 0.7);
    margin-top: 12px;
    line-height: 1.6;
    min-height: 60px;
}

.event-card .booking-chip {
    background: rgba(4, 153, 114, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    min-width: 90px;
    border: 1px solid rgba(4, 153, 114, 0.15);
}

.event-card .booking-chip .chip-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(33, 43, 54, 0.55);
}

.event-card .booking-chip .chip-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--header);
}

.theme-btn.outline {
    background: transparent;
    color: var(--theme);
    border: 1px solid var(--theme);
}

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

/* Booking toggle */
.booking-status-form {
    max-width: 160px;
}

.booking-status-select {
    border-radius: 10px;
    border: 1px solid rgba(108, 112, 111, 0.25);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    color: rgba(33, 43, 54, 0.8);
    background-color: rgba(248, 252, 252, 0.85);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-status-select:focus {
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(4, 153, 114, 0.15);
}

.section-bg {
    background-image: url('../../img/home-1/hero/hero-bg.jpg');
    background-size: cover;
}

.instructor-card .mhq-image {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.instructor-card .mhq-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.instructor-stats .stat-chip {
    background: rgba(15, 81, 50, 0.08);
    color: #0f5132;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.instructor-stats .stat-chip i {
    color: inherit;
}

@media (max-width: 575.98px) {
    .instructor-card .mhq-image img {
        height: 260px;
    }

    .instructor-stats {
        flex-direction: column;
        gap: 8px;
    }

    .instructor-stats .stat-chip {
        width: 100%;
        justify-content: center;
    }
}

.mhq-team-details-left-image .mhq-image {
    border-radius: 30px;
    overflow: hidden;
}

.mhq-team-details-left-image .mhq-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.mhq-team-details-right-content .mhq-counter-item h3 {
    font-size: 32px;
}

.mhq-team-details-right-content .mhq-counter-item p {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.mhq-team-details-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.mhq-team-details-contact li i {
    margin-right: 8px;
    color: #0f5132;
}

@media (max-width: 767.98px) {
    .mhq-team-details-left-image .mhq-image img {
        height: 320px;
    }
}

/* ==========================================================================
   GLOBAL INSTRUCTOR NICE SELECT STYLING SYSTEM
   ========================================================================== */
.instructor-app-layout .nice-select,
.instructor-app-body .nice-select,
.instructor-builder-body .nice-select,
.course-builder-wrapper .nice-select,
.become-instructor-page .nice-select,
.instructor-form .nice-select {
    width: 100%;
    height: 46px;
    line-height: 44px;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding-left: 14px;
    padding-right: 34px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
    box-shadow: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    float: none;
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.instructor-app-layout .nice-select:hover,
.instructor-app-body .nice-select:hover,
.instructor-builder-body .nice-select:hover,
.become-instructor-page .nice-select:hover,
.instructor-form .nice-select:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.instructor-app-layout .nice-select:focus,
.instructor-app-layout .nice-select.open,
.instructor-app-body .nice-select:focus,
.instructor-app-body .nice-select.open,
.instructor-builder-body .nice-select:focus,
.instructor-builder-body .nice-select.open,
.become-instructor-page .nice-select:focus,
.become-instructor-page .nice-select.open,
.instructor-form .nice-select:focus,
.instructor-form .nice-select.open {
    border-color: var(--eduex-primary, #635bff);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
    background-color: #ffffff;
    z-index: 1050 !important;
}

.instructor-app-layout .nice-select .current,
.instructor-app-body .nice-select .current,
.instructor-builder-body .nice-select .current,
.become-instructor-page .nice-select .current,
.instructor-form .nice-select .current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1e293b;
    font-weight: 500;
}

.instructor-app-layout .nice-select:after,
.instructor-app-body .nice-select:after,
.instructor-builder-body .nice-select:after,
.become-instructor-page .nice-select:after,
.instructor-form .nice-select:after {
    border-bottom: 2px solid #64748b;
    border-right: 2px solid #64748b;
    height: 6px;
    width: 6px;
    right: 14px;
    margin-top: -4px;
    transition: all 0.2s ease;
}

.instructor-app-layout .nice-select.open:after,
.instructor-app-body .nice-select.open:after,
.instructor-builder-body .nice-select.open:after,
.become-instructor-page .nice-select.open:after,
.instructor-form .nice-select.open:after {
    transform: rotate(-135deg);
    border-color: var(--eduex-primary, #635bff);
}

.instructor-app-layout .nice-select .list,
.instructor-app-body .nice-select .list,
.instructor-builder-body .nice-select .list,
.become-instructor-page .nice-select .list,
.instructor-form .nice-select .list {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 35px -4px rgba(15, 23, 42, 0.16), 0 6px 14px -2px rgba(15, 23, 42, 0.08);
    margin-top: 6px;
    padding: 6px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1060 !important;
    width: 100%;
    min-width: 100%;
    position: absolute;
    left: 0;
    top: 100%;
}

.instructor-app-layout .nice-select .option,
.instructor-app-body .nice-select .option,
.instructor-builder-body .nice-select .option,
.become-instructor-page .nice-select .option,
.instructor-form .nice-select .option {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    border-radius: 8px;
    line-height: 1.5;
    min-height: auto;
    transition: all 0.15s ease;
}

.instructor-app-layout .nice-select .option:hover,
.instructor-app-layout .nice-select .option.focus,
.instructor-app-body .nice-select .option:hover,
.instructor-app-body .nice-select .option.focus,
.instructor-builder-body .nice-select .option:hover,
.instructor-builder-body .nice-select .option.focus,
.become-instructor-page .nice-select .option:hover,
.become-instructor-page .nice-select .option.focus,
.instructor-form .nice-select .option:hover,
.instructor-form .nice-select .option.focus {
    background-color: #f8fafc;
    color: var(--eduex-primary, #635bff);
}

.instructor-app-layout .nice-select .option.selected,
.instructor-app-body .nice-select .option.selected,
.instructor-builder-body .nice-select .option.selected,
.become-instructor-page .nice-select .option.selected,
.instructor-form .nice-select .option.selected {
    background-color: rgba(99, 91, 255, 0.08);
    color: var(--eduex-primary, #635bff);
    font-weight: 600;
}

.instructor-app-layout .nice-select .option.disabled,
.instructor-app-body .nice-select .option.disabled,
.instructor-builder-body .nice-select .option.disabled,
.become-instructor-page .nice-select .option.disabled,
.instructor-form .nice-select .option.disabled {
    color: #94a3b8;
    background-color: transparent;
    cursor: default;
}

/* Small Variant */
.instructor-app-layout .nice-select.form-select-sm,
.instructor-app-layout .nice-select.sm,
.instructor-app-body .nice-select.form-select-sm,
.instructor-app-body .nice-select.sm,
.instructor-builder-body .nice-select.form-select-sm,
.instructor-builder-body .nice-select.sm {
    height: 36px;
    line-height: 34px;
    padding-left: 10px;
    padding-right: 28px;
    font-size: 12.5px;
    border-radius: 8px;
}

.instructor-app-layout .nice-select.form-select-sm .option,
.instructor-app-layout .nice-select.sm .option,
.instructor-app-body .nice-select.form-select-sm .option,
.instructor-app-body .nice-select.sm .option,
.instructor-builder-body .nice-select.form-select-sm .option,
.instructor-builder-body .nice-select.sm .option {
    font-size: 12px;
    padding: 6px 10px;
}

/* Auto Width Variant */
.instructor-app-layout .nice-select.w-auto,
.instructor-app-body .nice-select.w-auto,
.instructor-builder-body .nice-select.w-auto {
    width: auto !important;
    min-width: 140px;
    display: inline-flex !important;
}

/* Inside input-group */
.instructor-app-layout .input-group > .nice-select,
.instructor-app-body .input-group > .nice-select,
.instructor-builder-body .input-group > .nice-select {
    flex: 1 1 auto;
    width: 1% !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Elevate parent containers when nice-select is open */
.instructor-app-layout .card:has(.nice-select.open),
.instructor-app-layout .builder-card:has(.nice-select.open),
.instructor-app-layout .form-group:has(.nice-select.open),
.instructor-app-body .card:has(.nice-select.open),
.instructor-app-body .builder-card:has(.nice-select.open),
.instructor-app-body .form-group:has(.nice-select.open),
.instructor-builder-body .card:has(.nice-select.open),
.instructor-builder-body .form-group:has(.nice-select.open),
.become-instructor-page .col-md-6:has(.nice-select.open),
.become-instructor-page .col-12:has(.nice-select.open),
.dropdown-elevated {
    position: relative !important;
    z-index: 1050 !important;
}

/* ── Global 2-Column Stats / KPI Cards on Mobile View ── */
@media (max-width: 767.98px) {
    .instructor-app-layout .row:has(> [class*="col"] > .eduex-kpi-card) > [class*="col"],
    .instructor-app-layout .row:has(> [class*="col"] > .kpi-card) > [class*="col"],
    .instructor-app-body .row:has(> [class*="col"] > .eduex-kpi-card) > [class*="col"],
    .instructor-app-body .row:has(> [class*="col"] > .kpi-card) > [class*="col"],
    .eduex-assignments-container .row:has(> [class*="col"] > .eduex-kpi-card) > [class*="col"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }

    .eduex-kpi-row,
    .eduex-kpi-row-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .eduex-kpi-card {
        padding: 12px 12px !important;
        border-radius: 14px !important;
        min-height: auto !important;
    }

    .eduex-kpi-card .eduex-kpi-icon-box {
        width: 32px !important;
        height: 32px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
    }

    .eduex-kpi-card .eduex-kpi-label,
    .eduex-kpi-card .eduex-kpi-title {
        font-size: 11.5px !important;
        line-height: 1.2 !important;
    }

    .eduex-kpi-card .eduex-kpi-value,
    .eduex-kpi-card .eduex-kpi-number {
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }
}

/* ==========================================================================
   Eduex Unified Messenger App Styles 
   ========================================================================== */
.eduex-messenger-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    display: flex;
    height: calc(100vh - 160px);
    min-height: 600px;
    max-height: 880px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.eduex-messenger-sidebar {
    width: 360px;
    flex-shrink: 0;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    height: 100%;
}

.eduex-messenger-sidebar-header {
    padding: 16px 18px 12px 18px;
    border-bottom: 1px solid #f8fafc;
}

.messenger-promo-card {
    background: linear-gradient(135deg, #fdf2f4 0%, #f4f6fa 50%, #eff6ff 100%);
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.messenger-promo-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.messenger-search-wrap {
    position: relative;
    margin-bottom: 10px;
}

.messenger-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.messenger-search-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 8px 12px 8px 36px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
    color: #1e293b;
}

.messenger-search-input:focus {
    background: #ffffff;
    border-color: var(--eduex-primary, #635bff);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
    outline: none;
}

.messenger-tabs-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px;
    background: #f8fafc;
    border-radius: 10px;
}

.messenger-tab-link {
    flex: 1;
    text-align: center;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.messenger-tab-link.active {
    background: #ffffff;
    color: var(--eduex-primary, #635bff);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.eduex-messenger-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
}

.eduex-messenger-list::-webkit-scrollbar {
    width: 5px;
}

.eduex-messenger-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

.messenger-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 14px;
    margin-bottom: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    color: inherit;
    position: relative;
}

.messenger-item-card:hover {
    background: #f8fafc;
}

.messenger-item-card.active {
    background: #f0f4ff;
    border-color: rgba(99, 91, 255, 0.15);
}

.messenger-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.messenger-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    color: var(--eduex-primary, #635bff);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.messenger-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.messenger-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

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

.messenger-info-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.messenger-contact-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messenger-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 6px;
}

.messenger-preview {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.messenger-unread-dot {
    width: 8px;
    height: 8px;
    background: var(--eduex-primary, #635bff);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Right Main Pane */
.eduex-messenger-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    min-width: 0;
    height: 100%;
}

.eduex-messenger-header {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.eduex-messenger-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eduex-messenger-body::-webkit-scrollbar {
    width: 6px;
}

.eduex-messenger-body::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

.chat-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    position: relative;
}

.chat-date-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.chat-date-divider span {
    position: relative;
    z-index: 2;
    background: #fafbfc;
    padding: 2px 14px;
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.messenger-bubble-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 78%;
}

.messenger-bubble-row.is-me {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.messenger-bubble-row.is-other {
    align-self: flex-start;
}

.messenger-bubble-content {
    display: flex;
    flex-direction: column;
}

.messenger-bubble-row.is-me .messenger-bubble-content {
    align-items: flex-end;
}

.messenger-bubble-row.is-other .messenger-bubble-content {
    align-items: flex-start;
}

.messenger-bubble {
    padding: 11px 16px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
}

.messenger-bubble-row.is-me .messenger-bubble {
    background: #dbeafe;
    color: #1e40af;
    border-radius: 16px 16px 4px 16px;
    font-weight: 450;
}

.messenger-bubble-row.is-other .messenger-bubble {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.messenger-msg-time {
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 500;
}

.chat-file-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 12.5px;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-top: 6px;
}

.chat-file-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.eduex-messenger-footer {
    padding: 12px 18px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.messenger-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 6px 8px 6px 12px;
    transition: all 0.2s ease;
}

.messenger-input-container:focus-within {
    border-color: var(--eduex-primary, #635bff);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.messenger-text-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    padding: 6px 4px;
    font-family: inherit;
    color: #1e293b;
}

.messenger-send-btn {
    background: var(--eduex-primary, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.messenger-send-btn:hover {
    background: var(--eduex-primary-hover, #1d4ed8);
}

.messenger-attach-btn {
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.15s ease;
}

.messenger-attach-btn:hover {
    color: var(--eduex-primary, #635bff);
    background: #f1f5f9;
}

.messenger-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 30px;
    text-align: center;
}

/* Mobile & Tablet separation */
@media (max-width: 991.98px) {
    .eduex-messenger-wrapper {
        height: calc(100vh - 140px);
        border-radius: 16px;
    }
    .eduex-messenger-wrapper.view-list .eduex-messenger-sidebar {
        width: 100%;
        max-width: 100%;
        display: flex;
        border-right: none;
    }
    .eduex-messenger-wrapper.view-list .eduex-messenger-main {
        display: none !important;
    }
    .eduex-messenger-wrapper.view-chat .eduex-messenger-sidebar,
    .eduex-messenger-wrapper.view-detail .eduex-messenger-sidebar {
        display: none !important;
    }
    .eduex-messenger-wrapper.view-chat .eduex-messenger-main,
    .eduex-messenger-wrapper.view-detail .eduex-messenger-main {
        width: 100%;
        max-width: 100%;
        display: flex;
    }
    .messenger-back-btn {
        display: inline-flex !important;
    }
}

@media (min-width: 992px) {
    .messenger-back-btn {
        display: none !important;
    }
}