/**
 * cm-student-portal.css
 * Styling for CoursMission Student Dashboard & Auth Portal
 */

/* Container & Global Variables */
.cm-portal-wrap {
    max-width: 1180px;
    margin: 30px auto 60px;
    padding: 0 20px;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

.cm-portal-wrap * {
    box-sizing: border-box;
}

/* Hide default theme title when portal is displayed */
.page:has(.cm-portal-wrap) .entry-header {
    display: none !important;
}

/* ==========================================================================
   Hero Section (Guest & Dash)
   ========================================================================== */
.cm-portal-hero {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 36px;
}

.cm-portal-kicker {
    display: inline-block;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cm-portal-title {
    font-family: 'Baloo 2', 'Nunito Sans', sans-serif;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: #0e1f38;
    margin: 0 0 12px;
    line-height: 1.15;
}

.cm-portal-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* ==========================================================================
   Guest View : Auth Card (Tabs, Inputs, Submit)
   ========================================================================== */
.cm-auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(14, 31, 56, 0.08);
    max-width: 540px;
    margin: 0 auto 48px;
    overflow: hidden;
}

.cm-auth-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.cm-auth-tab {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.cm-auth-tab:hover {
    color: #0e1f38;
}

.cm-auth-tab.is-active {
    color: #ff6a38;
    background: #ffffff;
    border-bottom-color: #ff6a38;
}

.cm-auth-pane {
    display: none;
    padding: 32px 30px;
}

.cm-auth-pane.is-active {
    display: block;
}

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

.cm-auth-form label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #0e1f38;
    margin-bottom: 6px;
}

.cm-auth-form input[type="text"],
.cm-auth-form input[type="email"],
.cm-auth-form input[type="password"],
.cm-auth-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #0e1f38;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.cm-auth-form input:focus,
.cm-auth-form select:focus {
    border-color: #ff6a38;
    box-shadow: 0 0 0 3px rgba(255, 106, 56, 0.15);
}

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

.cm-form-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

.cm-form-row-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13.5px;
}

.cm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.cm-link-forgot {
    color: #ff6a38;
    text-decoration: none;
    font-weight: 600;
}

.cm-link-forgot:hover {
    text-decoration: underline;
}

.cm-btn-auth-submit {
    width: 100%;
    padding: 14px 20px;
    background: #ff6a38;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-btn-auth-submit:hover {
    background: #e55322;
    transform: translateY(-1px);
}

.cm-btn-auth-submit:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.cm-auth-msg {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    display: none;
}

.cm-auth-msg.is-error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.cm-auth-msg.is-success {
    display: block;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Feature grid on guest view */
.cm-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.cm-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.cm-feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.cm-feature-card h3 {
    font-size: 16.5px;
    font-weight: 800;
    color: #0e1f38;
    margin: 0 0 8px;
}

.cm-feature-card p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Dashboard View : Header Bar
   ========================================================================== */
.cm-dash-header {
    background: #0e1f38;
    color: #ffffff;
    border-radius: 20px;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(14, 31, 56, 0.15);
}

.cm-dash-header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cm-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ff6a38;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(255, 106, 56, 0.4);
}

.cm-dash-greeting {
    font-size: 19px;
    font-weight: 700;
}

.cm-dash-greeting strong {
    color: #ff8c5a;
}

.cm-dash-subinfo {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 2px;
}

.cm-dash-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cm-select-grade {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #334155;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.cm-select-grade:focus {
    border-color: #ff6a38;
}

.cm-btn-logout {
    background: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cm-btn-logout:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

/* ==========================================================================
   KPI Cards Grid
   ========================================================================== */
.cm-kpis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.cm-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(14, 31, 56, 0.04);
}

.cm-kpi-label {
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.cm-kpi-val {
    font-family: 'Baloo 2', 'Nunito Sans', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #0e1f38;
    line-height: 1;
    margin-bottom: 6px;
}

.cm-kpi-val--accent {
    color: #ff6a38;
}

.cm-kpi-val--gold {
    color: #d97706;
}

.cm-kpi-val--alert {
    color: #dc2626;
}

.cm-kpi-desc {
    font-size: 12.5px;
    color: #94a3b8;
}

/* ==========================================================================
   Dashboard Sections (Lessons & History)
   ========================================================================== */
.cm-dash-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 36px;
    box-shadow: 0 6px 20px rgba(14, 31, 56, 0.04);
}

.cm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.cm-section-kicker {
    font-size: 11.5px;
    font-weight: 800;
    color: #ff6a38;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 4px;
}

.cm-section-title {
    font-family: 'Baloo 2', 'Nunito Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0e1f38;
    margin: 0;
}

/* Lessons Grid */
.cm-lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.cm-lesson-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    background: #ffffff;
}

.cm-lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(14, 31, 56, 0.06);
    border-color: #cbd5e1;
}

.cm-lesson-card.is-tested {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.cm-lesson-kicker {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cm-lesson-title {
    font-size: 18px;
    font-weight: 800;
    color: #0e1f38;
    margin: 4px 0 8px;
    line-height: 1.25;
}

.cm-lesson-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 14px;
}

.cm-lesson-notions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.cm-notion-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Lesson Score Box */
.cm-lesson-score-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.cm-score-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cm-score-trophy {
    font-size: 24px;
}

.cm-score-numbers {
    font-size: 14px;
    color: #1e293b;
}

.cm-score-numbers strong {
    color: #0e1f38;
    font-size: 15px;
}

.cm-score-pct {
    font-weight: 800;
    color: #059669;
}

.cm-score-attempts-meta {
    font-size: 11.5px;
    color: #64748b;
}

.cm-score-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    margin-top: 8px;
    overflow: hidden;
}

.cm-score-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.cm-score-untested {
    justify-content: space-between;
}

.cm-untested-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.cm-untested-hint {
    font-size: 11.5px;
    color: #94a3b8;
}

/* Lesson Action Buttons */
.cm-lesson-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cm-btn-lesson,
.cm-btn-quiz {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

.cm-btn-lesson {
    background: #f1f5f9;
    color: #0e1f38;
    border: 1px solid #cbd5e1;
}

.cm-btn-lesson:hover {
    background: #e2e8f0;
}

.cm-btn-quiz {
    background: #ff6a38;
    color: #ffffff;
    border: 1px solid #ff6a38;
}

.cm-btn-quiz:hover {
    background: #e55322;
    border-color: #e55322;
}

.cm-btn-quiz.is-disabled {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* ==========================================================================
   Attempts History Table
   ========================================================================== */
.cm-history-table-wrap {
    overflow-x: auto;
}

.cm-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cm-history-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.cm-history-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.cm-history-table tr:hover td {
    background: #fafafa;
}

.cm-badge-score {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 13px;
}

.cm-badge-score.score-high {
    background: #ecfdf5;
    color: #065f46;
}

.cm-badge-score.score-mid {
    background: #fff7ed;
    color: #9a3412;
}

.cm-badge-score.score-low {
    background: #fef2f2;
    color: #991b1b;
}

.cm-btn-view-errors {
    background: #ffffff;
    border: 1.5px solid #ff6a38;
    color: #ff6a38;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cm-btn-view-errors:hover {
    background: #ff6a38;
    color: #ffffff;
}

.cm-empty-history {
    text-align: center;
    padding: 40px 20px;
}

.cm-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.cm-empty-history h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0e1f38;
    margin: 0 0 8px;
}

.cm-empty-history p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
}

.cm-btn-empty-start {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
}

/* ==========================================================================
   Tutoring Call to Action
   ========================================================================== */
.cm-dash-tutoring-card {
    background: linear-gradient(135deg, #0e1f38 0%, #1e3a5f 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(14, 31, 56, 0.15);
}

.cm-tutoring-badge {
    display: inline-block;
    background: rgba(255, 106, 56, 0.2);
    color: #ff8c5a;
    border: 1px solid rgba(255, 106, 56, 0.4);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.cm-tutoring-content h3 {
    font-family: 'Baloo 2', 'Nunito Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #ffffff;
}

.cm-tutoring-content p {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    max-width: 620px;
    line-height: 1.5;
}

.cm-btn-wa {
    background: #25d366;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, background 0.2s;
    white-space: nowrap;
}

.cm-btn-wa:hover {
    transform: translateY(-2px);
    background: #20bd5a;
}

/* ==========================================================================
   Modal / Drawer : Detailed Error Analysis with KaTeX
   ========================================================================== */
.cm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 31, 56, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cm-modal-container {
    background: #ffffff;
    border-radius: 20px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(14, 31, 56, 0.25);
    animation: cmModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cmModalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cm-modal-header {
    background: #0e1f38;
    color: #ffffff;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cm-modal-kicker {
    font-size: 11px;
    font-weight: 800;
    color: #ff8c5a;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cm-modal-title {
    font-family: 'Baloo 2', 'Nunito Sans', sans-serif;
    font-size: 21px;
    font-weight: 800;
    margin: 4px 0 6px;
    color: #ffffff;
}

.cm-modal-meta {
    font-size: 13px;
    color: #94a3b8;
}

.cm-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cm-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cm-modal-filters {
    display: flex;
    gap: 10px;
    padding: 14px 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.cm-filter-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cm-filter-btn.is-active {
    background: #ff6a38;
    border-color: #ff6a38;
    color: #ffffff;
}

.cm-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.cm-modal-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 15px;
}

/* Question Review Card */
.cm-review-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    background: #ffffff;
}

.cm-review-item.is-correct {
    border-left: 5px solid #10b981;
}

.cm-review-item.is-mistake {
    border-left: 5px solid #ef4444;
}

.cm-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12.5px;
    font-weight: 700;
}

.cm-review-badge-status {
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 800;
}

.cm-review-item.is-correct .cm-review-badge-status {
    background: #ecfdf5;
    color: #065f46;
}

.cm-review-item.is-mistake .cm-review-badge-status {
    background: #fef2f2;
    color: #991b1b;
}

.cm-review-statement {
    font-size: 15px;
    line-height: 1.6;
    color: #0e1f38;
    margin-bottom: 14px;
}

.cm-review-answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.cm-review-answer-box {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13.5px;
}

.cm-review-user-ans {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.cm-review-item.is-mistake .cm-review-user-ans {
    background: #fff5f5;
    border-color: #fecaca;
    color: #991b1b;
}

.cm-review-correct-ans {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.cm-ans-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.cm-review-solution {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #334155;
}

.cm-sol-title {
    font-size: 12px;
    font-weight: 800;
    color: #0e1f38;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.cm-modal-footer {
    padding: 16px 28px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cm-btn-modal-retry {
    background: #ff6a38;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13.5px;
    text-decoration: none;
    transition: background 0.2s;
}

.cm-btn-modal-retry:hover {
    background: #e55322;
}

.cm-btn-modal-dismiss {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.cm-btn-modal-dismiss:hover {
    background: #e2e8f0;
    color: #0e1f38;
}

/* ==========================================================================
   Header Nav Button integration (.cm-nav-portal-btn)
   ========================================================================== */
.cm-nav-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1.5px solid #0e1f38;
    color: #0e1f38;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
}

.cm-nav-portal-btn:hover {
    background: #0e1f38;
    color: #ffffff;
}

.cm-nav-portal-btn.logged-in {
    border-color: #ff6a38;
    color: #ff6a38;
}

.cm-nav-portal-btn.logged-in:hover {
    background: #ff6a38;
    color: #ffffff;
}

.cm-portal-avatar {
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cm-form-row-dual {
        grid-template-columns: 1fr;
    }

    .cm-dash-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .cm-dash-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cm-lessons-grid {
        grid-template-columns: 1fr;
    }

    .cm-review-answers-grid {
        grid-template-columns: 1fr;
    }

    .cm-modal-overlay {
        padding: 10px;
    }

    .cm-modal-header,
    .cm-modal-filters,
    .cm-modal-body,
    .cm-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}
