:root {
    color-scheme: light;
}

body.theme-light {
    --color-bg-base: #F5F7FA;
    --color-bg-layer: #FFFFFF;
    --color-bg-elevated: #FFFFFF;
    --color-bg-subtle: #F1F5F9;
    --color-bg-panel: #FFFFFF;
    --color-border: #E2E8F0;
    --color-border-strong: #CBD5E1;
    --color-text-primary: #0F172A;
    --color-text-secondary: #64748B;
    --color-text-tertiary: #94A3B8;
    --color-text-strong: #0F172A;
    --color-text-muted: #64748B;
    --color-accent-primary: #0F766E;
    --color-accent-secondary: #0284C7;
    --color-accent-purple: #0284C7;
    --color-accent-success: #059669;
    --color-accent-warning: #D97706;
    --color-accent-danger: #DC2626;
    --color-on-primary: #FFFFFF;
    --color-primary-subtle: rgba(15, 118, 110, 0.10);
    --color-accent-subtle: rgba(2, 132, 199, 0.10);
    --color-success-subtle: rgba(5, 150, 105, 0.12);
    --color-warning-subtle: rgba(217, 119, 6, 0.12);
    --color-danger-subtle: rgba(220, 38, 38, 0.12);
    --shadow-soft: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-hard: 0 8px 32px rgba(15, 23, 42, 0.08);
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --header-height: 72px;
    font-family: "Vazir", sans-serif;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    min-height: 100vh;
    direction: rtl;
}

body.theme-light *,
body.theme-light *::before,
body.theme-light *::after {
    box-sizing: border-box;
}

body.theme-light ::selection {
    background: rgba(15, 118, 110, 0.18);
    color: #0F172A;
}

body.theme-light a {
    color: var(--color-accent-primary);
    transition: color 0.2s ease, opacity 0.2s ease;
}

body.theme-light a:hover,
body.theme-light a:focus {
    color: var(--color-accent-secondary);
    text-decoration: none;
}

body.theme-light a.btn,
body.theme-light a.btn:hover,
body.theme-light a.btn:focus {
    text-decoration: none;
}

body.theme-light a.btn-primary,
body.theme-light a.btn-primary:hover,
body.theme-light a.btn-primary:focus,
body.theme-light a.btn-primary:active {
    color: #FFFFFF !important;
}

body.theme-light a.btn-secondary,
body.theme-light a.btn-secondary:hover,
body.theme-light a.btn-secondary:focus,
body.theme-light a.btn-secondary:active {
    color: #334155 !important;
}

/* Layout shell */
body.theme-light .app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.theme-light .app-header {
    position: sticky;
    top: 0;
    z-index: 110;
    height: var(--header-height);
    margin: 1.25rem 1.75rem 0;
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
}

body.theme-light .app-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    padding: 1.75rem;
    gap: 1.75rem;
}

body.theme-light .app-sidebar {
    width: 280px;
    flex: 0 0 auto;
    min-height: calc(100vh - var(--header-height) - 3.5rem);
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: width 0.28s ease, box-shadow 0.28s ease;
}

body.theme-light .app-content {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.04), var(--shadow-hard);
    padding: 2.25rem;
}

body.theme-light .app-content-inner {
    position: relative;
    z-index: 1;
}

body.theme-light .app-footer {
    margin: 0 1.75rem 1.75rem;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.75rem;
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.theme-light .app-footer a {
    color: var(--color-accent-primary);
}

/* Dashboard layout */
body.theme-light .dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0 1rem;
}

body.theme-light .dashboard-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

body.theme-light .dashboard-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

body.theme-light .dashboard-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

body.theme-light .dashboard-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

body.theme-light .dashboard-breadcrumb a {
    color: var(--color-text-primary);
}

body.theme-light .dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

body.theme-light .dashboard-metric-card,
body.theme-light .dashboard-metric-card.bg-info,
body.theme-light .dashboard-metric-card.bg-success,
body.theme-light .dashboard-metric-card.bg-danger,
body.theme-light .dashboard-metric-card.bg-warning {
    position: relative;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: #FFFFFF !important;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    color: var(--color-text-primary) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.theme-light .dashboard-metric-card::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: var(--color-accent-primary);
    opacity: 1;
}

body.theme-light .dashboard-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 118, 110, 0.28);
}

body.theme-light .dashboard-metric-card:hover::after {
    opacity: 1;
}

body.theme-light .dashboard-metric-card .metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: none;
}

body.theme-light .dashboard-metric-card .metric-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

body.theme-light .dashboard-metric-card .metric-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary) !important;
}

body.theme-light .dashboard-metric-card .metric-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-text-primary) !important;
}

body.theme-light .dashboard-metric-card .metric-meta {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

body.theme-light .dashboard-metric-card .metric-delta {
    font-weight: 600;
}

body.theme-light .dashboard-metric-card .metric-delta.positive {
    color: #059669 !important;
}

body.theme-light .dashboard-metric-card .metric-delta.negative {
    color: #DC2626 !important;
}

body.theme-light .dashboard-metric-card .metric-delta.neutral {
    color: var(--color-text-secondary) !important;
}

body.theme-light .dashboard-metric-card .metric-range {
    color: var(--color-text-tertiary) !important;
}

body.theme-light .dashboard-metric-card.bg-info::after {
    background: #0284C7;
}

body.theme-light .dashboard-metric-card.bg-info .metric-icon {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0284C7 !important;
}

body.theme-light .dashboard-metric-card.bg-success::after {
    background: #059669;
}

body.theme-light .dashboard-metric-card.bg-success .metric-icon {
    background: rgba(5, 150, 105, 0.12) !important;
    color: #059669 !important;
}

body.theme-light .dashboard-metric-card.bg-danger::after {
    background: #DC2626;
}

body.theme-light .dashboard-metric-card.bg-danger .metric-icon {
    background: rgba(220, 38, 38, 0.12) !important;
    color: #DC2626 !important;
}

body.theme-light .dashboard-metric-card.bg-warning::after {
    background: #D97706;
}

body.theme-light .dashboard-metric-card.bg-warning .metric-icon {
    background: rgba(217, 119, 6, 0.14) !important;
    color: #D97706 !important;
}

body.theme-light .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

body.theme-light .dashboard-card {
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.theme-light .dashboard-card-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #FFFFFF;
}

body.theme-light .dashboard-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

body.theme-light .dashboard-card-subtitle {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

body.theme-light .dashboard-card-body {
    padding: 1.35rem 1.5rem 1.5rem;
    background: #FFFFFF;
}

body.theme-light .chart-card {
    min-height: 320px;
}

body.theme-light .activity-card,
body.theme-light .quick-actions-card {
    min-height: 320px;
}

body.theme-light .quick-actions-card {
    grid-column: span 2;
}

@media (max-width: 991.98px) {
    body.theme-light .quick-actions-card {
        grid-column: span 1;
    }
}

/* Activity list */
body.theme-light .activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

body.theme-light .activity-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid var(--color-border);
}

body.theme-light .activity-item:last-child {
    border-bottom: none;
}

body.theme-light .activity-item.empty {
    border: none;
    color: var(--color-text-tertiary);
    justify-content: center;
    gap: 0.5rem;
}

body.theme-light .activity-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-subtle);
    border: 1px solid rgba(15, 118, 110, 0.16);
    color: var(--color-accent-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

body.theme-light .activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    text-align: right;
}

body.theme-light .activity-title {
    font-weight: 600;
    color: var(--color-text-primary);
}

body.theme-light .activity-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-tertiary);
    font-size: 0.8rem;
}

body.theme-light .activity-link {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

body.theme-light .activity-link:hover {
    background: rgba(15, 118, 110, 0.10);
    border-color: rgba(15, 118, 110, 0.28);
    color: var(--color-accent-primary);
}

/* Quick actions */
body.theme-light .quick-actions-grid {
    display: grid;
    gap: 0.85rem;
}

body.theme-light .quick-action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.05rem;
    border-radius: var(--radius-md);
    background: #F8FAFC;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.theme-light .quick-action-item:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.28);
    background: #FFFFFF;
    box-shadow: var(--shadow-soft);
    color: var(--color-text-primary);
}

body.theme-light .quick-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #FFFFFF;
    background: var(--color-accent-primary);
    box-shadow: none;
    flex-shrink: 0;
}

body.theme-light .quick-action-icon.accent-info {
    background: #0284C7;
}

body.theme-light .quick-action-icon.accent-success {
    background: #059669;
}

body.theme-light .quick-action-icon.accent-warning {
    background: #D97706;
}

body.theme-light .quick-action-icon.accent-danger {
    background: #DC2626;
}

body.theme-light .quick-action-item.accent-info .quick-action-icon {
    background: #0284C7;
}

body.theme-light .quick-action-item.accent-success .quick-action-icon {
    background: #059669;
}

body.theme-light .quick-action-item.accent-warning .quick-action-icon {
    background: #D97706;
}

body.theme-light .quick-action-item.accent-danger .quick-action-icon {
    background: #DC2626;
}

body.theme-light .quick-action-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: right;
}

body.theme-light .quick-action-title {
    font-weight: 600;
    color: var(--color-text-primary);
}

body.theme-light .quick-action-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.page-context-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-soft);
}

.page-context-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.page-context-eyebrow {
    font-size: 0.85rem;
    color: var(--color-accent-primary);
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.page-context-title {
    font-size: 1.85rem;
    color: var(--color-text-strong);
    margin: 0;
}

.page-context-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.context-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.14);
    color: var(--color-text-primary);
    border: 1px solid rgba(2, 132, 199, 0.14);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.context-chip:hover {
    border-color: rgba(2, 132, 199, 0.14);
    background: rgba(2, 132, 199, 0.14);
}

.context-chip--muted {
    background: var(--color-border);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.staff-avatar-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #F1F5F9;
    box-shadow: var(--shadow-soft);
}

.staff-avatar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
}

.table-actions .btn {
    min-width: 38px;
    padding-inline: 0.65rem;
}

.page-context-actions .btn {
    min-width: 160px;
}

@media (max-width: 575.98px) {
    .page-context-card {
        padding: 1.5rem;
    }

    .page-context-title {
        font-size: 1.5rem;
    }

    .page-context-actions {
        width: 100%;
    }

    .page-context-actions .btn {
        width: 100%;
    }
}

.file-upload-card {
    background: #F8FAFC;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
}

.file-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.file-upload-title {
    font-size: 1.05rem;
    color: var(--color-text-strong);
    margin-bottom: 0.15rem;
}

.file-upload-preview {
    background: #F8FAFC;
    border-radius: var(--radius-md);
    border: 1px dashed var(--color-border);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 190px;
}

.file-upload-preview img {
    max-width: 100%;
    max-height: 260px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.file-upload-label {
    border: 1px dashed rgba(2, 132, 199, 0.14);
    border-radius: var(--radius-md);
    padding: 0.95rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.file-upload-label small {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.file-upload-label i {
    font-size: 1.35rem;
    color: var(--color-accent-primary);
}

.file-upload-label:hover {
    border-color: rgba(2, 132, 199, 0.14);
    background: rgba(2, 132, 199, 0.14);
    color: var(--color-text-strong);
}

.file-upload-input {
    position: absolute;
    inset: 0;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.question-img-action.compact {
    display: inline-flex;
    gap: 0.35rem;
}

.question-img-action.compact .btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.85rem;
}

.answer-upload-label-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: inline-block;
    margin-bottom: 0.35rem;
}

.answer-upload {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.answer-upload-trigger {
    border: 1px dashed rgba(2, 132, 199, 0.14);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--color-text-secondary);
    background: #F1F5F9;
    transition: border-color 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.answer-upload-trigger strong {
    display: block;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.answer-upload-trigger small {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.answer-upload-trigger i {
    font-size: 1.2rem;
    color: var(--color-accent-primary);
}

.answer-upload-trigger:hover {
    border-color: rgba(2, 132, 199, 0.14);
    background: rgba(2, 132, 199, 0.14);
}

.answer-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.answer-upload-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    background: #F8FAFC;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.answer-upload-preview img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 12px;
}

.answer-upload-preview:hover {
    border-color: rgba(2, 132, 199, 0.14);
    color: var(--color-text-primary);
}

.answer-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.answer-switch input {
    transform: scale(1.1);
}

.answer-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-inline-end: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.answer-modal-body::-webkit-scrollbar {
    width: 6px;
}

.answer-modal-body::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 999px;
}

.answer-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

body.theme-light .swal2-popup.swal2-toast {
    direction: rtl;
}

/* Accent helpers */
body.theme-light .accent-info {
    background: rgba(2, 132, 199, 0.12) !important;
    border-color: rgba(2, 132, 199, 0.22) !important;
}

body.theme-light .accent-success {
    background: rgba(5, 150, 105, 0.12) !important;
    border-color: rgba(5, 150, 105, 0.22) !important;
}

body.theme-light .accent-warning {
    background: rgba(217, 119, 6, 0.14) !important;
    border-color: rgba(217, 119, 6, 0.25) !important;
}

body.theme-light .accent-danger {
    background: rgba(220, 38, 38, 0.12) !important;
    border-color: rgba(220, 38, 38, 0.22) !important;
}

body.theme-light .accent-info i { color: #0284C7 !important; }
body.theme-light .accent-success i { color: #059669 !important; }
body.theme-light .accent-warning i { color: #D97706 !important; }
body.theme-light .accent-danger i { color: #DC2626 !important; }

body.theme-light .quick-action-icon.accent-info,
body.theme-light .quick-action-icon.accent-success,
body.theme-light .quick-action-icon.accent-warning,
body.theme-light .quick-action-icon.accent-danger {
    border: none !important;
}

body.theme-light .quick-action-icon.accent-info { background: #0284C7 !important; }
body.theme-light .quick-action-icon.accent-success { background: #059669 !important; }
body.theme-light .quick-action-icon.accent-warning { background: #D97706 !important; }
body.theme-light .quick-action-icon.accent-danger { background: #DC2626 !important; }

body.theme-light .quick-action-icon.accent-info i,
body.theme-light .quick-action-icon.accent-success i,
body.theme-light .quick-action-icon.accent-warning i,
body.theme-light .quick-action-icon.accent-danger i {
    color: #FFFFFF !important;
}

@media (max-width: 767.98px) {
    body.theme-light .dashboard-header {
        flex-direction: column;
    }

    body.theme-light .dashboard-breadcrumb {
        align-self: flex-start;
    }
}

/* Header content */
body.theme-light .app-header__start,
body.theme-light .app-header__end {
    display: flex;
    align-items: center;
    gap: 1rem;
}

body.theme-light .app-header__end {
    margin-inline-start: auto;
}

body.theme-light .app-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-primary);
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.theme-light .app-logo-text {
    font-size: 1.05rem;
}

body.theme-light .icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-light .icon-button.avatar-only {
    width: auto;
    height: auto;
    padding: 4px 10px;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
}

body.theme-light .icon-button.avatar-only .fa-chevron-down {
    font-size: 0.65rem;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

body.theme-light .icon-button.avatar-only[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

body.theme-light .icon-button:hover {
    background: rgba(15, 118, 110, 0.10);
    color: var(--color-accent-primary);
    box-shadow: 0 12px 32px rgba(15, 118, 110, 0.14);
    transform: translateY(-1px);
}

body.theme-light .header-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

body.theme-light .header-link:hover {
    color: var(--color-accent-primary);
}

body.theme-light .avatar-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.14);
    background: rgba(15, 118, 110, 0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.theme-light .avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

body.theme-light .user-name {
    color: var(--color-text-primary);
    font-weight: 600;
}

body.theme-light .user-dropdown {
    position: relative;
}

body.theme-light .dropdown-menu {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    min-width: 220px;
    padding: 0.35rem 0;
    margin-top: 0.5rem;
    inset-inline-end: 0;
    inset-inline-start: auto;
    z-index: 1650 !important;
    display: none;
}

body.theme-light .dropdown-item {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

body.theme-light .dropdown-item:hover,
body.theme-light .dropdown-item:focus {
    background: rgba(15, 118, 110, 0.10);
    color: var(--color-text-primary);
}

body.theme-light .dropdown-item.text-danger {
    color: var(--color-accent-danger) !important;
}

body.theme-light .dropdown-item.text-danger:hover,
body.theme-light .dropdown-item.text-danger:focus {
    background: rgba(220, 38, 38, 0.12);
    color: var(--color-text-primary) !important;
}

body.theme-light .dropdown-menu.show {
    display: block;
    z-index: 1650 !important;
}

body.theme-light .dropdown-divider {
    border-top: 1px solid var(--color-border);
}

/* Sidebar */
body.theme-light .sidebar-brand {
    padding: 1.75rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

body.theme-light .sidebar-brand__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 1.05rem;
}

body.theme-light .sidebar-brand__logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    padding: 6px;
    background: rgba(15, 118, 110, 0.10);
    border: 1px solid rgba(15, 118, 110, 0.25);
    box-shadow: 0 18px 38px rgba(15, 118, 110, 0.10);
    object-fit: cover;
}

body.theme-light .sidebar-brand__text {
    flex: 1;
}

body.theme-light .sidebar-content {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 2rem;
    gap: 1.25rem;
}

body.theme-light .sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: #F1F5F9;
    border: 1px solid var(--color-border);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.06);
}

body.theme-light .sidebar-user__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(15, 118, 110, 0.22);
}

body.theme-light .sidebar-user__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.theme-light .sidebar-user__name {
    color: var(--color-text-primary);
    font-weight: 600;
}

body.theme-light .sidebar-user__role {
    color: var(--color-text-tertiary);
    font-size: 0.8rem;
}

/* Menu */
body.theme-light .sidebar-menu {
    display: block;
}

body.theme-light .menu-root {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

body.theme-light .menu-section {
    padding: 0.65rem 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    border-bottom: 1px solid var(--color-border);
    margin-top: 0.25rem;
}

body.theme-light .menu-item {
    position: relative;
}

body.theme-light .menu-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-light .menu-link .menu-icon {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    color: inherit;
}

body.theme-light .menu-link .menu-caret {
    margin-inline-start: auto;
    transition: transform 0.2s ease;
    display: inline-flex;
}

body.theme-light .menu-link:hover {
    color: var(--color-text-primary);
    background: rgba(15, 118, 110, 0.10);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.10);
}

body.theme-light .menu-link.is-active {
    color: var(--color-accent-primary);
    background: var(--color-primary-subtle);
    border: 1px solid rgba(15, 118, 110, 0.18);
    box-shadow: none;
    font-weight: 600;
}

body.theme-light .menu-item.has-children .menu-link.is-active {
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14);
}

body.theme-light .menu-item.has-children .menu-link {
    justify-content: flex-start;
}

body.theme-light .menu-item.has-children.is-open > .menu-link .menu-caret {
    transform: rotate(180deg);
}

body.theme-light .menu-sub {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0.25rem 0.5rem 0.25rem 0;
    border-inline-start: 2px solid rgba(15, 118, 110, 0.10);
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

body.theme-light .menu-sub.is-open {
    display: flex;
    max-height: 500px;
    opacity: 1;
}

body.theme-light .menu-sub .menu-link {
    font-size: 0.88rem;
    padding-inline-start: 2.4rem;
    background: #F8FAFC;
    border: 1px solid var(--color-border);
}

body.theme-light .menu-sub .menu-link:hover {
    background: rgba(15, 118, 110, 0.10);
}

/* Collapse / expand states */
body.theme-light.sidebar-collapsed .app-sidebar {
    width: 96px;
    box-shadow: none;
}

body.theme-light.sidebar-collapsed .app-sidebar .sidebar-user,
body.theme-light.sidebar-collapsed .app-sidebar .menu-text,
body.theme-light.sidebar-collapsed .app-sidebar .menu-caret,
body.theme-light.sidebar-collapsed .app-sidebar .sidebar-brand__text,
body.theme-light.sidebar-collapsed .app-sidebar .sidebar-user__meta {
    display: none;
}

body.theme-light.sidebar-collapsed .menu-text,
body.theme-light.sidebar-collapsed .menu-caret,
body.theme-light.sidebar-collapsed .sidebar-brand__text,
body.theme-light.sidebar-collapsed .sidebar-user__meta {
    display: none;
}

body.theme-light.sidebar-collapsed .menu-sub {
    display: none !important;
}

body.theme-light.sidebar-collapsed .menu-link {
    justify-content: center;
}

body.theme-light.sidebar-collapsed .menu-link .menu-icon {
    margin: 0;
}

body.theme-light.sidebar-collapsed .app-content {
    flex: 1 1 auto;
}

/* Content */
body.theme-light section.content {
    background: #F1F5F9;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.06);
    padding: 2rem;
}

body.theme-light .card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    color: var(--color-text-primary);
}

body.theme-light .card-header,
body.theme-light .card-footer {
    border-color: var(--color-border);
    background: #F8FAFC;
    color: var(--color-text-primary);
}

body.theme-light .card-body {
    color: var(--color-text-secondary);
}

/* Buttons */
body.theme-light .btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body.theme-light .btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.22);
}

body.theme-light .btn-primary {
    background: var(--color-accent-primary);
    border: 1px solid var(--color-accent-primary);
    color: #FFFFFF;
}

body.theme-light .btn-primary:hover,
body.theme-light .btn-primary:focus,
body.theme-light .btn-primary:active {
    background: #0d9488;
    border-color: #0d9488;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

body.theme-light .btn-secondary {
    background: #FFFFFF;
    border: 1px solid var(--color-border, #E2E8F0);
    color: #334155;
}

body.theme-light .btn-secondary:hover,
body.theme-light .btn-secondary:focus,
body.theme-light .btn-secondary:active {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #0F172A;
    box-shadow: none;
    transform: none;
}

body.theme-light .btn-outline-primary {
    color: var(--color-accent-primary);
    border: 1px solid rgba(15, 118, 110, 0.35);
    background: transparent;
}

body.theme-light .btn-outline-primary:hover {
    background: rgba(15, 118, 110, 0.10);
}

body.theme-light .btn-danger {
    background: var(--color-accent-danger);
    border: 1px solid var(--color-accent-danger);
    color: #FFFFFF;
}

/* Form controls */
body.theme-light .form-control,
body.theme-light .custom-select,
body.theme-light .select2-container--default .select2-selection--single,
body.theme-light .select2-container--default .select2-selection--multiple {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: var(--radius-sm);
}

body.theme-light .form-control::placeholder {
    color: var(--color-text-tertiary);
}

body.theme-light .form-control:focus,
body.theme-light .custom-select:focus {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14);
    background: rgba(255, 255, 255, 0.98);
}

body.theme-light .input-group-text {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

body.theme-light .select2-dropdown {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

body.theme-light .select2-results__option {
    color: var(--color-text-secondary);
}

body.theme-light .select2-results__option--highlighted {
    background: rgba(15, 118, 110, 0.10);
    color: var(--color-text-primary);
}

body.theme-light .select2-container--open {
    z-index: 1700 !important;
}

body.theme-light .select2-container--default.select2-container--open .select2-dropdown {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 18px 36px rgba(15, 118, 110, 0.14);
}

/* Tables */
body.theme-light table.table {
    color: var(--color-text-primary);
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
    direction: rtl;
    border-collapse: separate !important;
    border-spacing: 0;
    border: none !important;
}

body.theme-light table.table thead {
    border: none !important;
}

body.theme-light table.table thead th {
    background: #F1F5F9;
    color: var(--color-text-primary);
    border: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    text-align: right;
    vertical-align: middle;
    font-weight: 600;
}

body.theme-light table.table tbody tr {
    border: none !important;
}

body.theme-light table.table tbody tr:hover {
    background: rgba(15, 118, 110, 0.10);
    color: var(--color-text-primary);
}

body.theme-light table.table td {
    vertical-align: middle;
    text-align: right;
    border-top: none;
    border-inline-start: none !important;
    border-inline-end: none !important;
}

body.theme-light table.table td .btn {
    min-width: 36px;
}

body.theme-light .dataTables_wrapper .table {
    border: none !important;
}

body.theme-light .table-striped tbody tr:nth-of-type(odd) {
    background: #F8FAFC;
}

body.theme-light .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--radius-xs);
    border: 1px solid var(--color-border);
    background: #FFFFFF;
    color: var(--color-text-secondary) !important;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.theme-light .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: rgba(15, 118, 110, 0.22);
    background: rgba(15, 118, 110, 0.10);
    color: var(--color-text-primary) !important;
}

body.theme-light .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    border: 1px solid var(--color-accent-primary);
    background: var(--color-accent-primary);
    color: #FFFFFF !important;
    box-shadow: none;
    transform: none;
}

body.theme-light .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
body.theme-light .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.35;
    cursor: default;
    background: #FFFFFF;
    border-color: var(--color-border);
    color: var(--color-text-tertiary) !important;
    transform: none;
}

body.theme-light .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
body.theme-light .dataTables_wrapper .dataTables_paginate .paginate_button.next {
    padding-inline: 0.75rem;
    min-width: 56px;
}

body.theme-light .dataTables_wrapper {
    direction: rtl;
}

body.theme-light .dataTables_wrapper .dataTables_length label,
body.theme-light .dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

body.theme-light .dataTables_wrapper .dataTables_filter input {
    border-radius: var(--radius-xs);
    border: 1px solid var(--color-border);
    background: #FFFFFF;
    color: var(--color-text-primary);
}

body.theme-light .dataTables_wrapper .dataTables_length select {
    border-radius: var(--radius-xs);
    border: 1px solid var(--color-border);
    background: #FFFFFF;
    color: var(--color-text-primary);
}

body.theme-light .dataTables_wrapper .dataTables_info {
    color: var(--color-text-tertiary);
    float: none !important;
    padding-top: 0.35rem;
}

body.theme-light .dataTables_wrapper .pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.25rem;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    box-shadow: none;
}

body.theme-light .dataTables_wrapper .row {
    width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

body.theme-light .dataTables_wrapper .row > div {
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    body.theme-light .dataTables_wrapper .row:first-of-type {
        justify-content: space-between;
    }

    body.theme-light .dataTables_wrapper .row:first-of-type > div {
        width: auto;
        flex: 0 1 auto;
        margin-bottom: 0.75rem;
    }

    body.theme-light .dataTables_wrapper .row:last-of-type {
        justify-content: space-between;
        margin-top: 0.75rem;
    }

    body.theme-light .dataTables_wrapper .row:last-of-type > div {
        width: auto;
        flex: 0 1 auto;
        margin-bottom: 0;
    }
}

body.theme-light .dataTables_wrapper .dataTables_paginate {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0;
    float: none !important;
    text-align: start;
}

body.theme-light .dataTables_wrapper .pagination .page-item {
    margin: 0;
}

body.theme-light .dataTables_wrapper .pagination .page-link {
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-secondary);
    min-width: 40px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.theme-light .dataTables_wrapper .pagination .page-link:hover {
    border-color: rgba(15, 118, 110, 0.22);
    color: var(--color-accent-primary);
    background: rgba(15, 118, 110, 0.08);
    transform: none;
}

body.theme-light .dataTables_wrapper .pagination .page-item.active .page-link {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: #FFFFFF;
    box-shadow: none;
    transform: none;
}

body.theme-light .dataTables_wrapper .pagination .page-item.disabled .page-link,
body.theme-light .dataTables_wrapper .pagination .page-item.disabled .page-link:hover {
    background: transparent;
    border-color: transparent;
    color: var(--color-text-tertiary);
    opacity: 0.55;
    transform: none;
}

/* Alerts & badges */
body.theme-light .alert {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: #FFFFFF;
    color: var(--color-text-primary);
}

body.theme-light .alert-info {
    border-color: rgba(15, 118, 110, 0.22);
    background: rgba(15, 118, 110, 0.10);
    color: var(--color-accent-primary);
}

body.theme-light .alert-danger {
    border-color: rgba(220, 38, 38, 0.12);
    background: rgba(220, 38, 38, 0.12);
    color: var(--color-accent-danger);
}

body.theme-light .badge,
body.theme-light .chip {
    border-radius: 999px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.35rem 0.8rem;
}

/* Modals */
body.theme-light .modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), #FFFFFF);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hard);
    color: var(--color-text-primary);
    backdrop-filter: blur(18px);
    overflow: hidden;
    transform-origin: top center;
    animation: modalPop 0.25s ease-out;
}

body.theme-light .modal-header,
body.theme-light .modal-footer {
    border-color: var(--color-border);
    background: #FFFFFF;
    color: var(--color-text-primary);
}

body.theme-light .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.5rem;
}

body.theme-light .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

body.theme-light .modal-header .close {
    margin: 0;
    padding: 0;
    color: var(--color-text-secondary);
    opacity: 0.8;
    transition: color 0.2s ease, transform 0.2s ease;
}

body.theme-light .modal-header .close:hover {
    color: var(--color-accent-primary);
    transform: rotate(90deg);
    opacity: 1;
}

body.theme-light .modal-body {
    padding: 1.6rem;
    color: var(--color-text-primary);
    background: #FFFFFF;
}

body.theme-light .modal-footer {
    padding: 1rem 1.5rem;
    justify-content: flex-start;
    gap: 0.5rem;
}

body.theme-light .modal-footer .btn + .btn {
    margin-left: 0;
}

body.theme-light .modal-backdrop {
    background-color: rgba(15, 23, 42, 0.35);
    z-index: 1590 !important;
}

body.theme-light .modal.fade .modal-dialog {
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

body.theme-light .modal.show .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

body.theme-light .modal {
    z-index: 1600 !important;
}

/* Persian datepicker must sit above raised modal stacking (1600+) */
body.theme-light .pdp-default,
body.theme-light .pdp-dark,
body.theme-light .pdp-melon,
body.theme-light .pdp-latoja,
body.theme-light .pdp-lightorang,
.pdp-default {
    z-index: 3000 !important;
}

body.theme-light .modal-content {
    position: relative;
    z-index: 1;
}

body.theme-light .modal-dialog.modal-shake {
    animation: modalShake 0.4s ease;
}

body.theme-light .modal.modal-closing .modal-dialog {
    animation: modalClose 0.35s ease forwards;
}

body.theme-light .modal-right {
    text-align: right;
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalShake {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(12px);
    }
    40% {
        transform: translateX(-10px);
    }
    60% {
        transform: translateX(8px);
    }
    80% {
        transform: translateX(-6px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes modalClose {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-16px) scale(0.9);
        opacity: 0;
    }
}

/* SweetAlert */
body.theme-light .swal2-popup {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), #FFFFFF);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hard);
    color: var(--color-text-primary);
}

body.theme-light .swal2-styled.swal2-confirm {
    background: var(--color-accent-primary);
    color: #FFFFFF;
}

body.theme-light .swal2-styled.swal2-cancel {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

/* Utilities */
body.theme-light .overlay-dark {
    background: rgba(15, 23, 42, 0.35);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

body.theme-light .custom-btn {
    background: var(--color-accent-primary);
    border: none;
    color: #FFFFFF !important;
    box-shadow: none;
}

body.theme-light .custom-btn:hover {
    transform: translateY(-1px);
}

body.theme-light .question-img-action {
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.06);
}

body.theme-light .circle-number {
    border-radius: 50%;
    border: 2px solid rgba(15, 118, 110, 0.55);
    background: rgba(15, 118, 110, 0.10);
    color: var(--color-accent-primary);
}

/* Scrollbars */
body.theme-light *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.theme-light *::-webkit-scrollbar-thumb {
    background: rgba(15, 118, 110, 0.14);
    border-radius: 999px;
}

body.theme-light *::-webkit-scrollbar-track {
    background: #FFFFFF;
}

/* Responsive behaviour */
@media (max-width: 1199.98px) {
    body.theme-light .app-main {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    body.theme-light .app-sidebar {
        flex-basis: 248px;
        max-width: 248px;
    }
}

@media (max-width: 991.98px) {
    body.theme-light .app-shell {
        overflow-x: hidden;
    }

    body.theme-light .app-main {
        padding: 1.25rem;
    }

    body.theme-light .app-sidebar {
        position: fixed;
        top: calc(var(--header-height) + 1.25rem);
        right: 1.25rem;
        height: calc(100vh - var(--header-height) - 2.5rem);
        transform: translateX(120%);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        z-index: 200;
        width: 280px;
    }

    body.theme-light.sidebar-open .app-sidebar {
        transform: translateX(0);
        box-shadow: 0 20px 45px #FFFFFF;
    }

    body.theme-light.sidebar-open::before {
        content: "";
        position: fixed;
    inset: 0;
        background: rgba(3, 6, 12, 0.65);
        backdrop-filter: blur(4px);
        z-index: 150;
    }
}

@media (max-width: 767.98px) {
    body.theme-light .app-header {
        margin: 1rem 1rem 0;
        padding: 0 1.25rem;
    }

    body.theme-light .app-main {
        flex-direction: column;
        padding: 1rem;
    }

    body.theme-light .app-content {
        padding: 1.5rem;
    }

    body.theme-light section.content {
        padding: 1.5rem;
    }

    body.theme-light .app-footer {
        margin: 1.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}



/* Design system extras */
body.theme-light .btn-outline-info {
    color: var(--color-accent-primary);
    border: 1px solid rgba(15, 118, 110, 0.35);
    background: transparent;
}
body.theme-light .btn-outline-info:hover,
body.theme-light .btn-outline-info:focus {
    color: #FFFFFF;
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
}
body.theme-light .text-muted {
    color: var(--color-text-secondary) !important;
}
body.theme-light .text-primary { color: var(--color-accent-primary) !important; }
body.theme-light .text-success { color: var(--color-accent-success) !important; }
body.theme-light .text-danger { color: var(--color-accent-danger) !important; }
body.theme-light .text-warning { color: var(--color-accent-warning) !important; }

body.theme-light .app-header,
body.theme-light .app-main,
body.theme-light .app-footer,
body.theme-light .sidebar-menu,
body.theme-light .menu-root,
body.theme-light .quiz-summary-bar,
body.theme-light .quiz-info-grid {
    direction: rtl;
}

body.theme-light .app-header {
    flex-direction: row;
}
body.theme-light .app-header__start {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
body.theme-light .app-header__end {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-inline-start: auto;
}

body.theme-light .card-header,
body.theme-light .card-footer {
    background: #F8FAFC;
    color: var(--color-text-primary);
}

body.theme-light .modal-content {
    background: #FFFFFF;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-hard);
}
