/* ================================================
   University LMS - Global Styles
   Color Scheme: Indigo/Blue Professional Theme
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700&display=swap');

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --primary-muted: #6366F1;
    --accent: #7C3AED;
    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --info: #3B82F6;
    --info-light: #DBEAFE;

    --sidebar-width: 260px;
    --sidebar-bg: #FFFFFF;
    --header-height: 64px;
    --body-bg: #F3F4F6;

    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --card-bg: #FFFFFF;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;

    --font-body: 'DM Sans', sans-serif;
    --font-heading: 'Sora', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--body-bg);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

/* â”€â”€ Typography â”€â”€ */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

/* â”€â”€ Scrollbar â”€â”€ */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* ================================================
   LOGIN PAGE
   ================================================ */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 40%, #C7D2FE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.12), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.login-logo {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    font-size: 16px;
}

.form-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
}

.form-control,
.form-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 14px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text-primary);
    background: #fff;
    outline: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    pointer-events: none;
}

.input-group .form-control {
    padding-left: 38px;
}

.btn-primary-lms {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.2px;
}

.btn-primary-lms:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary-lms:active {
    transform: scale(0.99);
}

.divider {
    border: none;
    border-top: 1.5px solid var(--border);
    margin: 24px 0;
}

.test-accounts-title {
    text-align: center;
    font-size: 14px;
    color: #626262;
    margin-bottom: 14px;
}

.test-account-card {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 15px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s, background 0.2s;
    background: #f9fafb;
}

.test-account-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.test-account-card .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.test-account-card .cred {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================================
   DASHBOARD LAYOUT
   ================================================ */
.lms-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f9fafb;
}

/* â”€â”€ Sidebar â”€â”€ */
.lms-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.sidebar-brand-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-title-text {
    padding: 20px 20px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sidebar-nav {
    padding: 8px 12px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #364153;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
    user-select: none;
}

.nav-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.nav-item.active i {
    color: var(--primary);
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1.5px solid var(--border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 13px;
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* â”€â”€ Main Content â”€â”€ */
.lms-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* â”€â”€ Top Header â”€â”€ */
.lms-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1.5px solid var(--border);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.header-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-user-name {
    font-weight: 600;
    font-size: 14px;
    text-align: right;
}

.header-user-code {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.btn-icon {
    width: 38px;
    height: 38px;
    background: var(--body-bg);
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
    font-size: 18px;
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.hamburger {
    display: none;
}

/* â”€â”€ Content Area â”€â”€ */
.lms-content {
    padding: 28px;
    flex: 1;
}

/* â”€â”€ Section Header â”€â”€ */
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 2px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* â”€â”€ Buttons â”€â”€ */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1.5px solid var(--danger-light);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s;
}

.btn-danger:hover {
    background: var(--danger-light);
}

.btn-edit {
    background: transparent;
    color: var(--primary);
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    transition: background 0.15s;
}

.btn-edit:hover {
    background: var(--primary-light);
}

.btn-delete {
    background: transparent;
    color: var(--danger);
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    transition: background 0.15s;
}

.btn-delete:hover {
    background: var(--danger-light);
}

/* â”€â”€ Cards â”€â”€ */
.card-lms {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

/* .card-lms:last-child { margin-bottom: 0; } */

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* â”€â”€ Table â”€â”€ */
.table-wrapper {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-lms {
    width: 100%;
    border-collapse: collapse;
}

.table-lms thead tr {
    background: #f9fafb;
    border-bottom: 1.5px solid var(--border);
}

.table-lms th {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #6c6c6c;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    text-align: left;
}

.table-lms td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table-lms tbody tr:last-child td {
    border-bottom: none;
}

.table-lms tbody tr:hover {
    background: #FAFAFA;
}

.td-bold {
    font-weight: 600;
    font-size: 14px;
}

.td-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* â”€â”€ Badges â”€â”€ */
.badge-lms {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-admin {
    background: #F3E8FF;
    color: #7C3AED;
}

.badge-teacher {
    background: #E0F2FE;
    color: #0369A1;
}

.badge-student {
    background: #DCFCE7;
    color: #166534;
}

.badge-active {
    background: var(--success-light);
    color: #065F46;
}

.badge-inactive {
    background: var(--danger-light);
    color: #991B1B;
}

.badge-pending {
    background: var(--warning-light);
    color: #92400E;
}

.badge-course {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    padding: 2px 8px;
}

.badge-visible {
    background: var(--success-light);
    color: #065F46;
}

.badge-hidden {
    background: #F3F4F6;
    color: #6B7280;
}

.badge-pass {
    background: var(--success-light);
    color: #065F46;
}

.badge-fail {
    background: var(--danger-light);
    color: #991B1B;
}

/* â”€â”€ Progress â”€â”€ */
.progress-bar-wrap {
    background: #E5E7EB;
    border-radius: 99px;
    height: 6px;
    flex: 1;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 99px;
    transition: width 0.5s ease;
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* â”€â”€ Modals â”€â”€ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    animation: modalIn 0.2s ease;
}

.modal-box.modal-lg {
    max-width: 700px;
}

.modal-box.modal-xl {
    max-width: 900px;
}

@keyframes modalIn {
    from {
        transform: translateY(-10px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1.5px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* â”€â”€ Form Elements â”€â”€ */
.field-group {
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    background: white;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.field-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* â”€â”€ Rich Text Editor â”€â”€ */
.rich-toolbar {
    border: 1.5px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 8px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--body-bg);
}

.rich-btn {
    background: none;
    border: none;
    padding: 4px 7px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
    font-family: var(--font-body);
}

.rich-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.rich-sep {
    width: 1px;
    background: var(--border);
    margin: 2px 4px;
}

.rich-content {
    border: 1.5px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 12px;
    min-height: 120px;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* â”€â”€ Course Builder â”€â”€ */
.module-block {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.module-header {
    background: var(--body-bg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.module-header input {
    flex: 1;
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 14px;
    outline: none;
    font-family: var(--font-body);
    color: var(--text-primary);
}

.module-body {
    padding: 16px;
}

.topic-block {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.topic-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    cursor: pointer;
}

.topic-header input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 14px;
    outline: none;
    font-family: var(--font-body);
}

.topic-body {
    padding: 16px;
    border-top: 1.5px solid var(--border);
    background: #FAFAFA;
}

.kp-block {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.kp-block input {
    flex: 1;
}

.kp-block textarea {
    flex: 1;
}

.quiz-question-block {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    background: white;
}

.quiz-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
}

.quiz-option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.quiz-option-row input[type="radio"] {
    cursor: pointer;
}

.quiz-option-row input[type="text"] {
    flex: 1;
}

/* â”€â”€ Program/Course Cards â”€â”€ */
.program-card {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.program-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #D1D5DB;
}

.program-card-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.program-card-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.program-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.course-item {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 18px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.2s;
}

.course-item:hover {
    box-shadow: var(--shadow-md);
}

.course-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.course-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    max-width: 680px;
}

.course-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* â”€â”€ Student Course Cards â”€â”€ */
.course-card {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.course-card.locked {
    opacity: 0.65;
    cursor: default;
}

.course-card.locked:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.course-card-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.course-card-icon.locked-icon {
    background: #F3F4F6;
    color: var(--text-muted);
}

.course-card-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}

/* â”€â”€ Lesson View â”€â”€ */
.lesson-nav-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 2px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}

.lesson-nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.lesson-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.lesson-nav-item.completed {
    color: var(--success);
}

.lesson-nav-item.completed::before {
    content: 'âœ“';
    font-weight: 700;
    margin-right: 2px;
}

.accordion-kp {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    overflow: hidden;
}

.accordion-kp-header {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
    background: var(--body-bg);
    transition: background 0.15s;
}

.accordion-kp-header:hover {
    background: var(--primary-light);
}

.accordion-kp-body {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-top: 1.5px solid var(--border);
    display: none;
}

.accordion-kp-body.open {
    display: block;
}

/* â”€â”€ Quiz Modal â”€â”€ */
.quiz-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 999;
    flex-direction: column;
    overflow: hidden;
}

.quiz-modal.open {
    display: flex;
}

.quiz-modal-header {
    padding: 20px 28px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz-timer {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 99px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quiz-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.quiz-progress-bar {
    background: #E5E7EB;
    border-radius: 99px;
    height: 4px;
    margin-bottom: 28px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 99px;
    transition: width 0.3s;
}

.quiz-question-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.quiz-option {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.15s, background 0.15s;
    font-size: 14px;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.quiz-option input[type="radio"] {
    display: none;
}

.quiz-modal-footer {
    padding: 20px 28px;
    border-top: 1.5px solid var(--border);
    background: white;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* â”€â”€ Quiz Result â”€â”€ */
.quiz-result {
    text-align: center;
    padding: 40px 20px;
}

.quiz-result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.quiz-result-icon.pass {
    background: var(--success-light);
    color: var(--success);
}

.quiz-result-icon.fail {
    background: var(--danger-light);
    color: var(--danger);
}

.quiz-result-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.quiz-result-score {
    font-size: 40px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
}

.quiz-result-pending {
    background: var(--warning-light);
    color: #92400E;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
    margin-top: 16px;
}

/* â”€â”€ Notification â”€â”€ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.toast {
    background: var(--text-primary);
    color: white;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.3s ease;
    max-width: 320px;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

@keyframes toastIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* â”€â”€ Enrolled Page Back View â”€â”€ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: color 0.15s;
}

.back-link:hover {
    color: var(--primary);
}

/* â”€â”€ Dashboard overview â”€â”€ */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* â”€â”€ Empty State â”€â”€ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-state-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.empty-state-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* â”€â”€ Tabs â”€â”€ */
.tab-list {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 18px;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.tab-btn.active {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.tab-btn:hover:not(.active) {
    color: var(--text-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* â”€â”€ Notifications â”€â”€ */
.notif-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 5px;
    flex-shrink: 0;
}

.notif-dot.read {
    background: #D1D5DB;
}

.notif-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.notif-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 992px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lms-sidebar {
        transform: translateX(-100%);
    }

    .lms-sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
    }

    .lms-main {
        margin-left: 0;
    }

    .hamburger {
        display: flex;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .lms-content {
        padding: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .program-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .course-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

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

    .login-card {
        padding: 32px 24px;
    }
}



.lesson-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.lesson-tab {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.lesson-tab.active {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}





/* Modal */
.modal-lms {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-lms.open {
    display: flex;
}

.modal-content-lms {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
}

.modal-content-lms h3 {
    margin-bottom: 15px;
}

.modal-form .form-group {
    margin-bottom: 12px;
}

.modal-form label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.modal-form input {
    width: 100%;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.btn-primary {
    background: #4F46E5;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-secondary {
    background: #ddd;
    color: #333;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}