/*
 * LMS Course Dashboard — RTL Overrides (Arabic)
 * Scoped under .lms-dashboard-rtl
 * Loaded alongside lms-frontend.css for the Arabic course dashboard
 */

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

/* Global RTL Direction */
.lms-dashboard-rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
}

.lms-dashboard-rtl * {
    font-family: inherit;
}

/* Navbar */
.lms-dashboard-rtl .lms-nav-left {
    flex-direction: row-reverse;
}

.lms-dashboard-rtl .lms-back-btn svg {
    transform: scaleX(-1);
}

.lms-dashboard-rtl .lms-nav-right {
    flex-direction: row-reverse;
}

/* Streak */
.lms-dashboard-rtl .lms-streak-container {
    margin-right: 0;
    margin-left: 20px;
}

.lms-dashboard-rtl .lms-streak-container .lms-flame-icon {
    margin-right: 0;
    margin-left: 6px;
}

/* Sidebar */
.lms-dashboard-rtl .lms-sidebar {
    border-left: none;
    border-right: 1px solid var(--lms-border-color);
}

.lms-dashboard-rtl .lms-sidebar-lesson {
    border-left: none;
    border-right: 3px solid transparent;
}

.lms-dashboard-rtl .lms-sidebar-lesson.active {
    border-left-color: transparent;
    border-right-color: var(--lms-primary);
}

/* Lesson Icon */
.lms-dashboard-rtl .lms-lesson-icon {
    margin-right: 0;
    margin-left: 12px;
}

/* Resource Card */
.lms-dashboard-rtl .lms-resource-icon {
    margin-right: 0;
    margin-left: 16px;
}

/* Note Status */
.lms-dashboard-rtl .lms-note-status {
    right: auto;
    left: 16px;
}

/* Tabs */
.lms-dashboard-rtl .lms-tabs {
    direction: rtl;
}

.lms-dashboard-rtl .lms-tab-btn {
    font-family: 'Cairo', sans-serif;
}

/* Mark Complete Button */
.lms-dashboard-rtl .lms-mark-complete-btn {
    font-family: 'Cairo', sans-serif;
}

/* Section Titles */
.lms-dashboard-rtl .lms-section-title {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* QA Section */
.lms-dashboard-rtl .lms-qa-item {
    flex-direction: row-reverse;
}

.lms-dashboard-rtl .lms-qa-meta {
    flex-direction: row-reverse;
}

/* Lesson Header Area */
.lms-dashboard-rtl .lms-lesson-header {
    flex-direction: row-reverse;
}

.lms-dashboard-rtl .lms-lesson-title-area {
    text-align: right;
}

/* Speed Controls */
.lms-dashboard-rtl .lms-speed-bar {
    flex-direction: row-reverse;
}

/* Certificate download */
.lms-dashboard-rtl .lms-cert-download-btn {
    font-family: 'Cairo', sans-serif;
}

/* Focus Mode */
body.lms-focus-mode .lms-dashboard-rtl .lms-sidebar {
    display: none !important;
}

/* Premium Access Gate */
.lms-dashboard-rtl .lms-locked-content {
    direction: rtl;
    text-align: center;
}

.lms-dashboard-rtl .lms-locked-title,
.lms-dashboard-rtl .lms-locked-desc,
.lms-dashboard-rtl .lms-locked-cta-text,
.lms-dashboard-rtl .lms-locked-btn {
    font-family: 'Cairo', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .lms-dashboard-rtl .lms-dashboard-wrapper {
        padding: 0 12px;
    }

    .lms-dashboard-rtl .lms-sidebar {
        border-right: none;
        border-top: 1px solid var(--lms-border-color);
    }

    .lms-dashboard-rtl .lms-lesson-header {
        flex-direction: column;
    }

    .lms-dashboard-rtl .lms-lesson-title-area {
        text-align: right;
        width: 100%;
    }
}