/* ============================================================

   Duty Module — Shared Friendly School & Practice Theme

   Applied to every Duty form via the `duty-theme` class

   (root containers and GTTModal CustomClass).

   Palette & shapes follow StudentWorkspacePage / TeacherDutyCartable.

   ============================================================ */



.duty-theme {

    --dt-bg-warm: #fbfaf6;

    --dt-surface: #ffffff;

    --dt-border: #e2e8f0;

    --dt-border-warm: #e6e4dd;

    --dt-ink: #1e293b;

    --dt-muted: #64748b;

    --dt-teal: #0d9488;

    --dt-teal-dark: #0f766e;

    --dt-teal-soft: #e6f6f2;

    --dt-sky: #0284c7;

    --dt-sky-soft: #e0f2fe;

    --dt-peach: #ea580c;

    --dt-peach-soft: #ffedd5;

    --dt-amber: #d97706;

    --dt-amber-soft: #fef3c7;

    --dt-mint: #0f766e;

    --dt-mint-soft: #dcfce7;

    --dt-purple: #7c3aed;

    --dt-purple-soft: #f3e8ff;

    --dt-danger: #dc2626;

    --dt-danger-soft: #fee2e2;

    --dt-radius: 18px;

    --dt-radius-sm: 12px;

    --dt-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);

    color: var(--dt-ink);

}



/* ---------- 1. Friendly Page Banner ---------- */

.duty-theme .duty-page-banner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 16px;

    background: linear-gradient(135deg, #ffffff 0%, #f0fdf9 60%, #fef9ec 100%);

    border: 1.5px solid #e2ece9;

    border-radius: 22px;

    padding: 20px 24px;

    margin-bottom: 1.5rem;

    box-shadow: 0 8px 22px rgba(15, 118, 110, 0.06);

    position: relative;

    overflow: hidden;

}



.duty-theme .duty-page-banner::after {

    content: "";

    position: absolute;

    inset-inline-end: -40px;

    top: -40px;

    width: 140px;

    height: 140px;

    border-radius: 50%;

    background: radial-gradient(circle, rgba(13, 148, 136, 0.10) 0%, rgba(13, 148, 136, 0) 70%);

    pointer-events: none;

}



.duty-theme .duty-page-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    background: var(--dt-teal-soft);

    color: var(--dt-teal-dark);

    font-size: 0.78rem;

    font-weight: 800;

    padding: 4px 12px;

    border-radius: 999px;

    margin-bottom: 8px;

}



.duty-theme .duty-page-heading {

    font-weight: 900;

    font-size: 1.45rem;

    color: var(--dt-ink);

    margin-bottom: 4px;

    display: flex;

    align-items: center;

    gap: 10px;

}



.duty-theme .duty-page-heading .heading-icon {

    width: 42px;

    height: 42px;

    border-radius: 14px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: #ffffff;

    color: var(--dt-teal);

    font-size: 1.15rem;

    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);

}



.duty-theme .duty-page-heading .heading-icon.sky { color: var(--dt-sky); box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15); }

.duty-theme .duty-page-heading .heading-icon.purple { color: var(--dt-purple); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15); }

.duty-theme .duty-page-heading .heading-icon.amber { color: var(--dt-amber); box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15); }



.duty-theme .duty-page-subtitle {

    color: var(--dt-muted);

    font-size: 0.92rem;

    margin-bottom: 0;

}



.duty-theme .duty-page-actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    position: relative;

    z-index: 1;

}



.duty-theme .duty-count-pill {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 26px;

    height: 26px;

    padding: 0 8px;

    border-radius: 999px;

    background: var(--dt-teal-soft);

    color: var(--dt-teal-dark);

    font-size: 0.8rem;

    font-weight: 800;

}



/* ---------- 2. Notebook Surface / Cards ---------- */

.duty-theme .duty-notebook {

    background: var(--dt-surface);

    border: 1.5px solid var(--dt-border);

    border-top: 4px solid var(--dt-teal);

    border-radius: 20px;

    box-shadow: var(--dt-shadow);

    padding: 20px;

}



.duty-theme .card {

    border: 1.5px solid var(--dt-border);

    border-radius: var(--dt-radius);

    background-color: var(--dt-surface);

    box-shadow: var(--dt-shadow);

    overflow: hidden;

}



.duty-theme .card.border-0 {

    border: 1.5px solid var(--dt-border) !important;

}



.duty-theme .card-header {

    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;

    border-bottom: 1px dashed var(--dt-border);

    font-weight: 800;

    color: var(--dt-ink);

    padding: 14px 18px;

}



.duty-theme .card-footer {

    background-color: #f8fafc !important;

    border-top: 1px dashed var(--dt-border) !important;

    padding: 12px 16px;

}



.duty-theme .card.bg-light,

.duty-theme .bg-light.card {

    background: #f8fbfa !important;

    border: 1.5px dashed #cfe7e1 !important;

    box-shadow: none;

}



/* Hoverable library / resource cards */

.duty-theme .duty-hover-card {

    border-top: 4px solid var(--dt-teal);

    transition: transform 0.2s ease, box-shadow 0.2s ease;

}



.duty-theme .duty-hover-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 26px rgba(13, 148, 136, 0.12);

}



.duty-theme .duty-card-icon {

    width: 46px;

    height: 46px;

    border-radius: 14px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    font-size: 1.2rem;

    background: var(--dt-teal-soft);

    color: var(--dt-teal-dark);

}



.duty-theme .duty-card-icon.quiz { background: var(--dt-purple-soft); color: var(--dt-purple); }

.duty-theme .duty-card-icon.bank { background: var(--dt-sky-soft); color: var(--dt-sky); }

.duty-theme .duty-card-icon.amber { background: var(--dt-amber-soft); color: var(--dt-amber); }



.duty-theme .duty-card-title {

    font-weight: 800;

    font-size: 1.02rem;

    color: var(--dt-ink);

    margin-bottom: 2px;

}



.duty-theme .duty-card-meta {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px;

}



.duty-theme .duty-chip {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    background: #f1f5f9;

    color: #475569;

    font-size: 0.76rem;

    font-weight: 700;

    padding: 4px 10px;

    border-radius: 999px;

}



.duty-theme .duty-chip.teal { background: var(--dt-teal-soft); color: var(--dt-teal-dark); }

.duty-theme .duty-chip.sky { background: var(--dt-sky-soft); color: #0369a1; }

.duty-theme .duty-chip.purple { background: var(--dt-purple-soft); color: var(--dt-purple); }

.duty-theme .duty-chip.amber { background: var(--dt-amber-soft); color: #92400e; }

.duty-theme .duty-chip.mint { background: var(--dt-mint-soft); color: var(--dt-teal-dark, #0f766e) !important; }

.duty-theme .duty-chip.muted { background: #f1f5f9; color: var(--dt-muted); }



/* Selectable cards (books, pages, exams) */

.duty-theme .duty-select-card {

    cursor: pointer;

    border: 2px solid var(--dt-border) !important;

    transition: all 0.18s ease;

}



.duty-theme .duty-select-card:hover {

    border-color: #99d5ca !important;

    transform: translateY(-2px);

}



.duty-theme .duty-select-card.is-selected {

    border-color: var(--dt-teal) !important;

    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%) !important;

    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15), var(--dt-shadow);

}



.duty-theme .duty-page-card-preview-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #0284c7;
    background-color: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.2);
    transition: all 0.18s ease;
    z-index: 5;
}

.duty-theme .duty-page-card-preview-btn:hover {
    background-color: #0284c7;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

[dir="rtl"] .duty-theme .duty-page-card-preview-btn {
    right: auto;
    left: 8px;
}

/* Section titles */

.duty-theme .duty-section-title {

    display: flex;

    align-items: center;

    gap: 8px;

    font-weight: 800;

    font-size: 1rem;

    color: var(--dt-ink);

    margin-bottom: 12px;

}



.duty-theme .duty-section-title .section-icon {

    width: 32px;

    height: 32px;

    border-radius: 10px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: var(--dt-teal-soft);

    color: var(--dt-teal-dark);

    font-size: 0.9rem;

}



/* ---------- 3. Stepper (Wizards) ---------- */

.duty-theme .duty-stepper {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    padding: 10px;

    margin-bottom: 1.5rem;

    background: #f8fafc;

    border: 1.5px solid var(--dt-border);

    border-radius: 999px;

    flex-wrap: wrap;

}



.duty-theme .duty-stepper > i {

    color: #cbd5e1 !important;

}



[dir="rtl"] .duty-theme .duty-stepper > i.fa-arrow-right {

    transform: scaleX(-1);

}



.duty-theme .duty-stepper .btn {

    flex: 1 1 auto;

    border-radius: var(--gtt-radius-btn, 5px) !important;

    padding: 8px 16px;

    font-weight: 800;

    background: #ffffff !important;

    color: var(--dt-muted) !important;

    border: 1.5px solid var(--dt-border) !important;

    box-shadow: none !important;

}



.duty-theme .duty-stepper .btn.btn-primary {

    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;

    border-color: var(--dt-teal) !important;

    color: #ffffff !important;

    box-shadow: 0 6px 14px rgba(13, 148, 136, 0.25) !important;

}



.duty-theme .duty-stepper .btn:disabled {

    opacity: 0.55;

}



/* Segmented mode switch (Book / Exam / Bank) */

.duty-theme .duty-mode-switch {

    display: inline-flex;

    flex-wrap: wrap;

    gap: 6px;

    padding: 6px;

    background: #f1f5f9;

    border-radius: 16px;

    margin-bottom: 1rem;

}



.duty-theme .duty-mode-switch .btn {

    margin: 0 !important;

    border-radius: 12px !important;

    padding: 8px 16px;

    font-weight: 800;

    border: none !important;

    background: transparent !important;

    color: #475569 !important;

    box-shadow: none !important;

}



.duty-theme .duty-mode-switch .btn.btn-primary {

    background: #ffffff !important;

    color: var(--dt-teal-dark) !important;

    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;

}



/* ---------- 4. Buttons ---------- */

.duty-theme .btn {

    font-weight: 700;

    border-radius: var(--dt-radius-sm);

    transition: all 0.18s ease-in-out;

}



.duty-theme .btn:not(.btn-link):not(.close):hover:not(:disabled) {

    transform: translateY(-1px);

}



.duty-theme .btn-primary {

    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);

    border-color: var(--dt-teal);

    color: #ffffff;

    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.22);

}



.duty-theme .btn-primary:hover,

.duty-theme .btn-primary:focus,

.duty-theme .btn-primary:not(:disabled):active {

    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);

    border-color: var(--dt-teal-dark);

    color: #ffffff;

}



body .duty-theme .btn-outline-primary,

body .duty-theme .btn-outline-primary:focus,

body .duty-theme .btn-outline-primary:active,

.duty-theme .btn-outline-primary {

    background: var(--dt-teal-soft) !important;

    background-color: var(--dt-teal-soft) !important;

    border: 1.5px solid #b7e3da !important;

    color: var(--dt-teal-dark, #0f766e) !important;

}



body .duty-theme .btn-outline-primary *,

.duty-theme .btn-outline-primary * {

    color: var(--dt-teal-dark, #0f766e) !important;

}



body .duty-theme .btn-outline-primary:hover,

body .duty-theme .btn-outline-primary.active,

.duty-theme .btn-outline-primary:hover,

.duty-theme .btn-outline-primary.active {

    background: var(--dt-teal) !important;

    background-color: var(--dt-teal) !important;

    border-color: var(--dt-teal) !important;

    color: #ffffff !important;

}



body .duty-theme .btn-outline-primary:hover *,

body .duty-theme .btn-outline-primary.active *,

.duty-theme .btn-outline-primary:hover *,

.duty-theme .btn-outline-primary.active * {

    color: #ffffff !important;

}



/* All success/mint buttons in Duty: mint green background, dark teal text, bold */

body .duty-theme .btn-success,

body .duty-theme .btn-success:focus,

body .duty-theme .btn-success:active,

body .duty-theme .btn-outline-success,

body .duty-theme .btn-outline-success:focus,

body .duty-theme .btn-outline-success:active,

.duty-theme .btn-success,

.duty-theme .btn-outline-success,

.duty-assign-page .btn-success,

.duty-assign-page .btn-outline-success,

.duty-library-page .btn-success,

.duty-library-page .btn-outline-success,

.duty-exams-page .btn-success,

.duty-exams-page .btn-outline-success,

.duty-question-banks-page .btn-success,

.duty-question-banks-page .btn-outline-success,

.duty-cartable-page .btn-success,

.duty-cartable-page .btn-outline-success,

.btn-outline-success {

    background: var(--dt-mint-soft, #dcfce7) !important;

    background-color: var(--dt-mint-soft, #dcfce7) !important;

    border: 1.5px solid #86efac !important;

    color: var(--dt-teal-dark, #0f766e) !important;

    font-weight: 800 !important;

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;

}



body .duty-theme .btn-success *,

body .duty-theme .btn-outline-success *,

.duty-theme .btn-success *,

.duty-theme .btn-outline-success *,

.duty-assign-page .btn-success *,

.duty-assign-page .btn-outline-success *,

.duty-library-page .btn-success *,

.duty-library-page .btn-outline-success *,

.duty-exams-page .btn-success *,

.duty-exams-page .btn-outline-success *,

.duty-question-banks-page .btn-success *,

.duty-question-banks-page .btn-outline-success *,

.duty-cartable-page .btn-success *,

.duty-cartable-page .btn-outline-success *,

.btn-outline-success * {

    color: var(--dt-teal-dark, #0f766e) !important;

    font-weight: 800 !important;

}



body .duty-theme .btn-success:hover,

body .duty-theme .btn-outline-success:hover,

.duty-theme .btn-success:hover,

.duty-theme .btn-outline-success:hover,

.duty-assign-page .btn-success:hover,

.duty-assign-page .btn-outline-success:hover,

.duty-library-page .btn-success:hover,

.duty-library-page .btn-outline-success:hover,

.duty-exams-page .btn-success:hover,

.duty-exams-page .btn-outline-success:hover,

.duty-question-banks-page .btn-success:hover,

.duty-question-banks-page .btn-outline-success:hover,

.duty-cartable-page .btn-success:hover,

.duty-cartable-page .btn-outline-success:hover,

.btn-outline-success:hover {

    background: #bbf7d0 !important;

    background-color: #bbf7d0 !important;

    border-color: #4ade80 !important;

    color: var(--dt-teal-dark, #0f766e) !important;

    transform: translateY(-1px);

}



body .duty-theme .btn-success:hover *,

body .duty-theme .btn-outline-success:hover *,

.duty-theme .btn-success:hover *,

.duty-theme .btn-outline-success:hover *,

.duty-assign-page .btn-success:hover *,

.duty-assign-page .btn-outline-success:hover *,

.duty-library-page .btn-success:hover *,

.duty-library-page .btn-outline-success:hover *,

.duty-exams-page .btn-success:hover *,

.duty-exams-page .btn-outline-success:hover *,

.duty-question-banks-page .btn-success:hover *,

.duty-question-banks-page .btn-outline-success:hover *,

.duty-cartable-page .btn-success:hover *,

.duty-cartable-page .btn-outline-success:hover *,

.btn-outline-success:hover * {

    color: var(--dt-teal-dark, #0f766e) !important;

    font-weight: 800 !important;

}



.duty-theme .btn-info {

    background: var(--dt-sky);

    border-color: var(--dt-sky);

    color: #ffffff;

}



.duty-theme .btn-outline-info {

    background: var(--dt-sky-soft);

    border: 1.5px solid #bae6fd;

    color: #0369a1;

}



.duty-theme .btn-outline-info:hover { background: var(--dt-sky); border-color: var(--dt-sky); color: #ffffff; }



.duty-theme .btn-secondary {

    background: #ffffff;

    border: 1.5px solid #dbe2ea;

    color: #334155;

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);

}



.duty-theme .btn-secondary:hover,

.duty-theme .btn-secondary:focus {

    background: #f1f5f9;

    border-color: #cbd5e1;

    color: #0f172a;

}



.duty-theme .btn-outline-secondary {

    background: #f8fafc;

    border: 1.5px solid #dbe2ea;

    color: #475569;

}



body .duty-theme .btn-outline-secondary,

.duty-theme .btn-outline-secondary {

    background: #f1f5f9 !important;

    background-color: #f1f5f9 !important;

    border: 1.5px solid #cbd5e1 !important;

    color: #334155 !important;

}



body .duty-theme .btn-outline-secondary *,

.duty-theme .btn-outline-secondary * {

    color: #334155 !important;

}



body .duty-theme .btn-outline-secondary:hover,

.duty-theme .btn-outline-secondary:hover {

    background: #e2e8f0 !important;

    border-color: #94a3b8 !important;

    color: #0f172a !important;

}



body .duty-theme .btn-outline-secondary:hover *,

.duty-theme .btn-outline-secondary:hover * {

    color: #0f172a !important;

}



.duty-theme .btn-danger {

    background: #ef4444;

    border-color: #ef4444;

    color: #ffffff;

}



.duty-theme .btn-danger:hover { background: var(--dt-danger); border-color: var(--dt-danger); }



body .duty-theme .btn-outline-danger,

body .duty-theme .btn-outline-danger:focus,

body .duty-theme .btn-outline-danger:active,

.duty-theme .btn-outline-danger {

    background: var(--dt-danger-soft) !important;

    background-color: var(--dt-danger-soft) !important;

    border: 1.5px solid #fecaca !important;

    color: #b91c1c !important;

}



body .duty-theme .btn-outline-danger *,

.duty-theme .btn-outline-danger * {

    color: #b91c1c !important;

}



body .duty-theme .btn-outline-danger:hover,

.duty-theme .btn-outline-danger:hover {

    background: #ef4444 !important;

    background-color: #ef4444 !important;

    border-color: #ef4444 !important;

    color: #ffffff !important;

}



body .duty-theme .btn-outline-danger:hover *,

.duty-theme .btn-outline-danger:hover * {

    color: #ffffff !important;

}



.duty-theme .btn-warning,

.duty-theme .btn-outline-warning:hover,

.duty-theme .btn-outline-warning.active {

    background: #f59e0b;

    border-color: #f59e0b;

    color: #1f2937;

}



.duty-theme .btn-outline-warning {

    background: var(--dt-amber-soft);

    border: 1.5px solid #fde68a;

    color: #92400e;

}



.duty-theme .btn-link.text-info,

.duty-theme .btn-link.text-danger {

    width: 32px;

    height: 32px;

    padding: 0 !important;

    border-radius: 10px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

}



.duty-theme .btn-link.text-info { background: var(--dt-sky-soft); }

.duty-theme .btn-link.text-danger { background: var(--dt-danger-soft); }



.duty-theme .duty-flow-leading .btn,

.duty-theme .duty-flow-back-btn {

    height: 38px !important;

    min-height: 38px !important;

    padding: 7px 18px !important;

    border-radius: 10px !important;

    font-size: 0.88rem !important;

    font-weight: 700 !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 6px !important;

    background: #475569 !important;

    border: 1.5px solid #475569 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;

    transition: all 0.2s ease !important;

    margin: 0 !important;

}



.duty-theme .duty-flow-leading .btn:hover,

.duty-theme .duty-flow-back-btn:hover {

    background: #334155 !important;

    border-color: #334155 !important;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12) !important;

}



.duty-theme .btn-group > .btn {

    border-radius: 0;

}



.duty-theme .btn-group > .btn:first-child { border-start-start-radius: var(--dt-radius-sm); border-end-start-radius: var(--dt-radius-sm); }

.duty-theme .btn-group > .btn:last-child { border-start-end-radius: var(--dt-radius-sm); border-end-end-radius: var(--dt-radius-sm); }



/* ---------- 5. Forms ---------- */

.duty-theme .form-group > label,

.duty-theme .duty-form-label {

    font-weight: 700;

    color: #334155;

    font-size: 0.88rem;

}



.duty-theme .form-control {

    border: 1.5px solid #dbe2ea;

    border-radius: var(--dt-radius-sm);

    background-color: #ffffff;

    color: var(--dt-ink);

    transition: border-color 0.15s ease, box-shadow 0.15s ease;

}



.duty-theme .form-control:not(textarea):not(.form-control-sm) {

    min-height: 42px;

}



.duty-theme .form-control:focus {

    border-color: var(--dt-teal);

    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);

}



.duty-theme .input-group > .form-control:not(:first-child),

.duty-theme .input-group > .form-control:not(:last-child) {

    border-radius: var(--dt-radius-sm);

}



.duty-theme .input-group {

    gap: 6px;

    flex-wrap: nowrap;

}



.duty-theme .input-group-text {

    border: 1.5px solid #dbe2ea;

    border-radius: var(--dt-radius-sm) !important;

    background: #f8fafc;

    color: var(--dt-muted);

    font-weight: 700;

}



.duty-theme .input-group-prepend .input-group-text,

.duty-theme .input-group-append .input-group-text,

.duty-theme .input-group-append .btn {

    height: 100%;

    border-radius: var(--dt-radius-sm) !important;

}



.duty-theme input[type="checkbox"]:not(.form__checkbox-input):not(.custom-control-input):not(.form-check-input),

.duty-theme input[type="radio"]:not(.form__checkbox-input):not(.custom-control-input):not(.form-check-input) {

    accent-color: var(--dt-teal);

    width: 17px;

    height: 17px;

    cursor: pointer;

    vertical-align: middle;

}



.duty-theme .custom-control-input:checked ~ .custom-control-label::before {

    background-color: var(--dt-teal);

    border-color: var(--dt-teal);

}



/* Search box helper */

.duty-theme .duty-search-box {

    position: relative;

    margin-bottom: 1rem;

}



.duty-theme .duty-search-box .search-icon {

    position: absolute;

    top: 50%;

    inset-inline-start: 14px;

    transform: translateY(-50%);

    color: #94a3b8;

    pointer-events: none;

}



.duty-theme .duty-search-box .form-control {

    padding-inline-start: 40px;

    border-radius: 999px;

}



/* ---------- 6. Badges, Alerts, Progress ---------- */

.duty-theme .badge {

    border-radius: 999px;

    font-weight: 800;

    padding: 0.4em 0.8em;

}



.duty-theme .badge-primary { background: var(--dt-teal-soft); color: var(--dt-teal-dark); }

.duty-theme .badge-success { background: var(--dt-mint-soft); color: var(--dt-teal-dark, #0f766e) !important; }

.duty-theme .badge-info { background: var(--dt-sky-soft); color: #0369a1; }

.duty-theme .badge-warning { background: var(--dt-amber-soft); color: #92400e; }

.duty-theme .badge-danger { background: var(--dt-danger-soft); color: #b91c1c; }

.duty-theme .badge-secondary { background: #e2e8f0; color: #334155; }

.duty-theme .badge-light { background: #f8fafc; color: #475569; border: 1px solid var(--dt-border); }



.duty-theme .alert {

    border-radius: 16px;

    border-width: 1.5px;

}



.duty-theme .alert-info { background: #f0f9ff; border-color: #bae6fd; color: #075985; }

.duty-theme .alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }

.duty-theme .alert-warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }

.duty-theme .alert-light { background: #f8fafc; border-color: var(--dt-border); color: var(--dt-ink); }



.duty-theme .progress {

    background: #e2e8f0;

    border-radius: 999px;

    overflow: hidden;

}



.duty-theme .progress-bar {

    background: linear-gradient(90deg, #0d9488, #22c55e);

    border-radius: 999px;

}



/* Empty / Loading states */

.duty-theme .duty-empty-state {

    text-align: center;

    padding: 36px 20px;

    border: 2px dashed #d7e7e2;

    border-radius: 20px;

    background: #fbfdfc;

    color: var(--dt-muted);

}



.duty-theme .duty-empty-state .empty-icon {

    width: 64px;

    height: 64px;

    margin: 0 auto 12px auto;

    border-radius: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.6rem;

    background: var(--dt-teal-soft);

    color: var(--dt-teal);

}



.duty-theme .duty-loading {

    text-align: center;

    padding: 36px 20px;

    color: var(--dt-teal);

}



/* ---------- 7. Nav pills / Tabs ---------- */

.duty-theme .nav-pills {

    gap: 6px;

    background: #f1f5f9;

    padding: 5px;

    border-radius: 14px;

    margin: 0;

}



.duty-theme .nav-pills .nav-item { margin: 0 !important; }



.duty-theme .nav-pills .nav-link {

    border: none;

    background: transparent;

    border-radius: 10px;

    color: #475569;

    font-weight: 800;

    padding: 7px 14px;

}



.duty-theme .nav-pills .nav-link.active {

    background: #ffffff;

    color: var(--dt-teal-dark);

    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);

}



/* ---------- 8. Tables ---------- */

.duty-theme .table {

    border-collapse: separate;

    border-spacing: 0;

    border: 1.5px solid var(--dt-border) !important;

    border-radius: 16px;

    overflow: hidden;

    background: #ffffff;

}



.duty-theme .table thead th {

    background: #f8fafc;

    color: #475569;

    font-weight: 800;

    font-size: 0.82rem;

    border-bottom: 1.5px solid var(--dt-border);

    border-top: none;

}



.duty-theme .table td,

.duty-theme .table th {

    border-color: #f1f5f9;

    vertical-align: middle;

}



.duty-theme .table-hover tbody tr:hover {

    background-color: #f0fdfa;

}



/* ---------- 9. List groups & selectable rows ---------- */

.duty-theme .list-group-item {

    border: 1.5px solid transparent;

    border-radius: var(--dt-radius-sm) !important;

    margin-bottom: 6px;

    background: #f8fafc;

    transition: all 0.15s ease;

    gap: 8px;

}



.duty-theme .list-group-item:hover {

    background: #f0fdfa;

    border-color: #b7e3da;

}



.duty-theme .list-group-item.active {

    background: var(--dt-teal-soft);

    border-color: var(--dt-teal);

    color: var(--dt-teal-dark);

    font-weight: 800;

}



.duty-theme .students-list {

    border: 1.5px solid var(--dt-border) !important;

    border-radius: 16px !important;

    background: #ffffff;

    padding: 8px !important;

}



.duty-theme .hover-item {

    border: 1.5px solid transparent;

    border-radius: var(--dt-radius-sm) !important;

    transition: all 0.15s ease;

}



.duty-theme .hover-item:hover {

    background: #f0fdfa;

    border-color: #b7e3da;

}



.duty-theme .hover-item.bg-light {

    background: var(--dt-teal-soft) !important;

    border-color: var(--dt-teal) !important;

}



/* ---------- 10. Modals ---------- */

#DutyExamQuestionEditorModal,

#DutyQuestionEditorModal,

.duty-nested-modal,

.modal.duty-nested-modal {

    z-index: 100000010 !important;

}

.modal.show ~ .modal-backdrop.show:last-of-type,

.modal-backdrop.show + .modal-backdrop.show,

.modal-backdrop + .modal-backdrop {

    z-index: 100000005 !important;

}



.duty-theme .modal-content,

.modal.duty-theme .modal-content {

    border: none;

    border-radius: 22px;

    overflow: hidden;

    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);

    background: #ffffff;

}



.duty-theme .modal-header {

    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 70%);

    border-bottom: 1.5px dashed #d7e7e2;

    padding: 16px 22px;

    align-items: center;

}



.duty-theme .modal-title {

    font-weight: 900;

    color: var(--dt-ink);

    font-size: 1.1rem;

}



.duty-theme .modal-header .close {

    width: 34px;

    height: 34px;

    margin: 0;

    padding: 0;

    border-radius: 10px;

    background: #ffffff;

    border: 1.5px solid var(--dt-border);

    opacity: 1;

    color: #475569;

    text-shadow: none;

    display: inline-flex;

    align-items: center;

    justify-content: center;

}



.duty-theme .modal-header .close:hover {

    background: var(--dt-danger-soft);

    border-color: #fecaca;

    color: var(--dt-danger);

}



.duty-theme .modal-body {

    padding: 20px 22px;

    background: var(--dt-bg-warm);

}



.duty-theme .modal-footer {

    background: #ffffff;

    border-top: 1px dashed var(--dt-border);

    padding: 12px 22px;

    gap: 8px;

}



.duty-theme .modal-footer > * {

    margin: 0;

}



/* ---------- 11. Question Editor ---------- */

.duty-theme .duty-question-card {

    border-inline-start: 5px solid var(--dt-purple) !important;

}



.duty-theme .duty-question-number {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    background: var(--dt-purple-soft);

    color: var(--dt-purple);

    font-weight: 800;

    font-size: 0.85rem;

    padding: 5px 14px;

    border-radius: 999px;

    margin-bottom: 8px;

}



.duty-theme .duty-answer-panel {

    background: #fbfaff !important;

    border: 1.5px dashed #ddd6fe !important;

    border-radius: 16px !important;

}



.duty-theme .duty-question-row {

    border: 1.5px solid var(--dt-border) !important;

    border-radius: 14px !important;

    transition: border-color 0.15s ease, background 0.15s ease;

}



.duty-theme .duty-question-row:hover {

    border-color: #c4b5fd !important;

    background: #fdfcff;

}



.duty-theme .duty-question-row p {

    margin-bottom: 0.2rem;

    display: inline-block;

}



/* ---------- 12. Perform (Exam / Book player & previews) ---------- */

.duty-theme.assessment-header-site {

    background: rgba(255, 255, 255, 0.96) !important;

    backdrop-filter: blur(10px);

    border-bottom: 2px solid #ccece6 !important;

    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.06) !important;

    padding: 10px 0 !important;

}



.duty-theme .assessment-title-header {

    font-weight: 800 !important;

    color: #0f172a !important;

    font-size: 1.05rem !important;

}



.duty-theme .assessment-title-header i {

    width: 36px;

    height: 36px;

    border-radius: 11px;

    background: #e6f6f2;

    color: #0d9488 !important;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 1rem !important;

    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.12);

}



.duty-theme.assessment-bg,

.duty-theme .assessment-bg,

.duty-theme.assessment-bg[bg-color="purple"] {

    background-color: #f6fbf9 !important;

    background-image:

        radial-gradient(rgba(13, 148, 136, 0.09) 1.5px, transparent 1.5px),

        linear-gradient(155deg, #eefbf8 0%, #fbfaf5 50%, #eff8ff 100%) !important;

    background-size: 26px 26px, 100% 100% !important;

    min-height: calc(100vh - 64px) !important;

    padding: 28px 16px 60px 16px !important;

}



/* Welcome / Start Exam Card */

.duty-theme .item-exam.assessment-item-main {

    background: #ffffff !important;

    border: 2px solid #ccece6 !important;

    border-top: 6px solid #0d9488 !important;

    border-radius: 26px !important;

    padding: 36px 32px !important;

    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07) !important;

}



/* Main Question Card */

.duty-theme .question-box,

.duty-theme .question-box.question-box-right {

    background: #ffffff !important;

    border: 2px solid #d7e7e2 !important;

    border-top: 6px solid #0d9488 !important;

    border-radius: 26px !important;

    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(13, 148, 136, 0.04) !important;

    padding: 28px 32px !important;

    position: relative !important;

}



.duty-theme .question-item,

.duty-theme .duty-question-header {

    display: flex !important;

    align-items: center !important;

    justify-content: space-between !important;

    flex-wrap: wrap !important;

    gap: 12px !important;

    position: static !important;

    padding: 0 0 16px 0 !important;

    margin-bottom: 12px !important;

    border-bottom: 1.5px solid #eef3f1 !important;

}



.duty-theme .duty-question-title-wrap {

    display: inline-flex !important;

    align-items: center !important;

    flex-wrap: wrap !important;

    gap: 14px !important;

    flex: 1 1 auto !important;

    min-width: 0 !important;

}



.duty-theme .question-item-num,

.duty-theme.assessment-bg[bg-color="purple"] .question-item-num {

    position: static !important;

    left: auto !important;

    right: auto !important;

    top: auto !important;

    bottom: auto !important;

    width: 38px !important;

    height: 38px !important;

    min-width: 38px !important;

    min-height: 38px !important;

    border-radius: 12px !important;

    background: linear-gradient(135deg, #0d9488 0%, #10b981 100%) !important;

    color: #ffffff !important;

    font-weight: 900 !important;

    font-size: 1.05rem !important;

    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.22) !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    margin: 0 !important;

    flex-shrink: 0 !important;

}



.duty-theme .duty-verdict-banner {

    display: inline-flex !important;

    align-items: center !important;

    gap: 10px !important;

    margin: 0 !important;

    padding: 4px 10px !important;

    background: #f8fafc !important;

    border: 1px solid #e2e8f0 !important;

    border-radius: 10px !important;

}



.duty-theme .duty-verdict-chip {

    font-size: 0.85rem !important;

    font-weight: 800 !important;

    padding: 5px 12px !important;

    border-radius: 8px !important;

    display: inline-flex !important;

    align-items: center !important;

    gap: 5px !important;

}



.duty-theme .duty-verdict-chip.is-correct {

    background: #dcfce7 !important;

    color: var(--dt-teal-dark, #0f766e) !important;

    border: 1px solid #bbf7d0 !important;

}



.duty-theme .duty-verdict-chip.is-partial {

    background: #fef3c7 !important;

    color: #b45309 !important;

    border: 1px solid #fde68a !important;

}



.duty-theme .duty-verdict-chip.is-wrong {

    background: #fee2e2 !important;

    color: #b91c1c !important;

    border: 1px solid #fecaca !important;

}



.duty-theme .duty-verdict-score {

    font-size: 0.88rem !important;

    font-weight: 700 !important;

    color: #334155 !important;

}



.duty-theme .question-item-title,

.duty-theme .question-box .question-item-title p,

.duty-theme .question-box .question-item-title span {

    color: #1e293b !important;

    font-weight: 800 !important;

    font-size: 1.12rem !important;

    line-height: 1.75 !important;

}



/* Divider between Question Stem and Answer Area */

.duty-theme.assessment-bg .column_Container,

.duty-theme.assessment-bg .row_Container {

    border-top: 2px dashed #d7e7e2 !important;

    padding-top: 18px !important;

    margin-top: 8px !important;

}



.duty-theme.assessment-bg .column_Container .row_Container {

    border-top: none !important;

    padding-top: 0 !important;

    margin-top: 0 !important;

}



.duty-theme .question-box .form-row-control {

    border-top: 2px dashed #d7e7e2 !important;

    padding-top: 20px !important;

    margin-top: 10px !important;

}



/* Interactive Multiple-Choice Option Cards */

.duty-theme .question-box .form-row-control .form__radio-group,

.duty-theme .question-box .form-row-control .form__checkbox-group {

    margin-bottom: 12px !important;

    padding: 0 8px !important;

}



.duty-theme .question-box .form-row-control .form__label-radio,

.duty-theme .question-box .form-row-control .form__label-checkbox {

    display: flex !important;

    align-items: center !important;

    width: 100% !important;

    min-height: 54px !important;

    background: #f8fafc !important;

    border: 2px solid #e2e8f0 !important;

    border-bottom-width: 4px !important;

    border-radius: 16px !important;

    padding: 13px 18px 13px 48px !important;

    font-size: 0.98rem !important;

    font-weight: 700 !important;

    color: #334155 !important;

    cursor: pointer !important;

    transition: all 0.18s ease !important;

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02) !important;

    margin: 0 !important;

}



.duty-theme .question-box .form-row-control .form__label-radio:hover,

.duty-theme .question-box .form-row-control .form__label-checkbox:hover {

    background: #f0fdfa !important;

    border-color: #5eead4 !important;

    border-bottom-color: #14b8a6 !important;

    color: #0f766e !important;

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.09) !important;

}



.duty-theme .question-box .form-row-control .form__radio-input.checked ~ .form__label-radio,

.duty-theme .question-box .form-row-control .form__radio-input:checked ~ .form__label-radio,

.duty-theme .question-box .form-row-control .form__checkbox-input.checked ~ .form__label-checkbox,

.duty-theme .question-box .form-row-control .form__checkbox-input:checked ~ .form__label-checkbox {

    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%) !important;

    border-color: #0d9488 !important;

    border-bottom-color: #0f766e !important;

    color: #0f766e !important;

    font-weight: 800 !important;

    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.14) !important;

}



.duty-theme .question-box .form-row-control .true-answer .form__label-radio,

.duty-theme .question-box .form-row-control .true-answer .form__label-checkbox {

    background: #f0fdf4 !important;

    border-color: #22c55e !important;

    border-bottom-color: #16a34a !important;

    color: #15803d !important;

}



.duty-theme .question-box .form-row-control .false-answer .form__label-radio,

.duty-theme .question-box .form-row-control .false-answer .form__label-checkbox {

    background: #fef2f2 !important;

    border-color: #f87171 !important;

    border-bottom-color: #dc2626 !important;

    color: #b91c1c !important;

}



.duty-theme .question-box .form-row-control .form__radio-button,

.duty-theme .question-box .form-row-control .form__checkbox-button {

    width: 22px !important;

    height: 22px !important;

    left: 16px !important;

    top: 50% !important;

    transform: translateY(-50%) !important;

    border: 2px solid #94a3b8 !important;

    background: #ffffff !important;

    transition: all 0.18s ease !important;

}



.duty-theme .question-box .form-row-control .form__radio-button {

    border-radius: 50% !important;

}



.duty-theme .question-box .form-row-control .form__checkbox-button {

    border-radius: 7px !important;

}



.duty-theme .question-box .form-row-control .form__radio-input.checked ~ .form__label-radio .form__radio-button,

.duty-theme .question-box .form-row-control .form__radio-input:checked ~ .form__label-radio .form__radio-button,

.duty-theme .question-box .form-row-control .form__checkbox-input.checked ~ .form__label-checkbox .form__checkbox-button,

.duty-theme .question-box .form-row-control .form__checkbox-input:checked ~ .form__label-checkbox .form__checkbox-button {

    border-color: #0d9488 !important;

    background: #0d9488 !important;

}



.duty-theme .question-box .form-row-control .form__radio-button::after {

    width: 8px !important;

    height: 8px !important;

    background-color: #ffffff !important;

}



.duty-theme .question-box .form-row-control .form__checkbox-button::after {

    color: #ffffff !important;

    font-size: 0.65rem !important;

    top: 50% !important;

    left: 50% !important;

    transform: translate(-50%, -50%) !important;

    height: auto !important;

}



/* Free-Answer Textarea */

.duty-theme .question-box textarea.form-control {

    border: 2px solid #cbd5e1 !important;

    border-radius: 18px !important;

    padding: 16px 20px !important;

    font-size: 1rem !important;

    line-height: 1.75 !important;

    background: #fcfdfd !important;

    min-height: 130px !important;

    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02) !important;

    transition: all 0.2s ease !important;

}



.duty-theme .question-box textarea.form-control:focus {

    background: #ffffff !important;

    border-color: #0d9488 !important;

    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14) !important;

}



/* Right-Side Question Navigator Dock */

.duty-theme .qustion-list-right {

    width: 74px !important;

    margin: 0 12px !important;

}



.duty-theme .qustion-list-num,

.duty-theme .list-num .qustion-list-num {

    width: 68px !important;

    padding: 12px 10px !important;

    border-radius: 24px !important;

    background: rgba(255, 255, 255, 0.96) !important;

    border: 2px solid #ccece6 !important;

    box-shadow: 0 14px 34px rgba(13, 148, 136, 0.12), 0 4px 10px rgba(15, 23, 42, 0.04) !important;

    gap: 10px !important;

    overflow: visible !important;

}



.duty-theme .list-num .qustion-list-num li,

.duty-theme .list-num-row .qustion-list-num li {

    width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    list-style: none !important;

}



.duty-theme .qustion-list-num .form__radio-group,

.duty-theme .qustion-list-num .form__checkbox-group {

    width: 46px !important;

    height: 46px !important;

    margin: 0 auto !important;

    padding: 0 !important;

    border-radius: 15px !important;

    border: 2px solid #e2e8f0 !important;

    border-bottom-width: 4px !important;

    background: #f8fafc !important;

    color: #475569 !important;

    font-weight: 800 !important;

    font-size: 1rem !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    position: relative !important;

    cursor: pointer !important;

    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

}



.duty-theme .qustion-list-num .form__checkbox-group:hover {

    transform: translateY(-2px) !important;

    background: #f0fdfa !important;

    border-color: #2dd4bf !important;

    border-bottom-color: #0d9488 !important;

    color: #0f766e !important;

}



.duty-theme .qustion-list-num .form__label-checkbox {

    width: 100% !important;

    height: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    text-align: center !important;

    font-size: 1rem !important;

    font-weight: 800 !important;

    color: inherit !important;

    cursor: pointer !important;

}



/* Answered Question State in Dock */

.duty-theme .qustion-list-num .form__checkbox-group:has(.form__checkbox-input.checked),

.duty-theme .qustion-list-num .form__checkbox-group:has(.form__checkbox-input:checked) {

    background: #ecfdf5 !important;

    border-color: #34d399 !important;

    border-bottom-color: #10b981 !important;

    color: #047857 !important;

}



/* Corner Checkmark Badge in Dock (Hidden when unanswered, green badge when answered) */

.duty-theme .qustion-list-num .form__radio-button,

.duty-theme .qustion-list-num .form__checkbox-button,

.duty-theme .qustion-list-right.question-right-list .list-num-box .qustion-list-num .form__radio-button,

.duty-theme .qustion-list-right.question-right-list .list-num-box .qustion-list-num .form__checkbox-button {

    opacity: 0 !important;

    transform: scale(0.4) !important;

    pointer-events: none !important;

    position: absolute !important;

    top: -6px !important;

    right: -6px !important;

    left: auto !important;

    width: 18px !important;

    height: 18px !important;

    border-radius: 50% !important;

    background: #10b981 !important;

    border: 2px solid #ffffff !important;

    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35) !important;

    transition: all 0.2s ease !important;

}



.duty-theme .qustion-list-num .form__checkbox-input.checked ~ .form__label-checkbox .form__checkbox-button,

.duty-theme .qustion-list-num .form__checkbox-input:checked ~ .form__label-checkbox .form__checkbox-button {

    opacity: 1 !important;

    transform: scale(1) !important;

}



.duty-theme .qustion-list-num .form__checkbox-button::after {

    color: #ffffff !important;

    font-size: 0.55rem !important;

    top: 50% !important;

    left: 50% !important;

    transform: translate(-50%, -50%) !important;

    width: auto !important;

    height: auto !important;

    display: block !important;

}



/* Active Question in Dock */

.duty-theme .qustion-list-num .form__radio-group.active,

.duty-theme .qustion-list-num .form__checkbox-group.active {

    background: linear-gradient(135deg, #0d9488 0%, #10b981 100%) !important;

    border-color: #0f766e !important;

    border-bottom-color: #115e59 !important;

    color: #ffffff !important;

    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.32) !important;

    transform: scale(1.06) !important;

}



/* Final Submit / Confirm Step Tile in Dock */

.duty-theme .qustion-list-num li.duty-submit-step-item .form__checkbox-group {

    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;

    border-color: #f59e0b !important;

    border-bottom-color: #d97706 !important;

    color: #d97706 !important;

}



.duty-theme .qustion-list-num li.duty-submit-step-item .form__checkbox-group:hover {

    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;

    border-color: #d97706 !important;

    color: #b45309 !important;

}



.duty-theme .qustion-list-num li.duty-submit-step-item .form__checkbox-group.active {

    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;

    border-color: #c2410c !important;

    border-bottom-color: #9a3412 !important;

    color: #ffffff !important;

    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35) !important;

}



.duty-theme .qustion-list-num li.duty-submit-step-item .form__checkbox-button {

    display: none !important;

}



/* Bottom Question Navigation Buttons (Previous / Next / Submit) */

.duty-theme .question-controllers .question-btn-control {

    display: flex !important;

    justify-content: space-between !important;

    align-items: center !important;

    width: 100% !important;

    margin-top: 22px !important;

    padding: 4px 2px !important;

    gap: 12px !important;

}



.duty-theme .question-controllers .duty-nav-prev,

.duty-theme .question-controllers .duty-nav-next {

    float: none !important;

    display: inline-flex !important;

    align-items: center !important;

    gap: 10px !important;

    border-radius: 16px !important;

    padding: 8px 18px !important;

    cursor: pointer !important;

    transition: all 0.18s ease !important;

    user-select: none !important;

}



.duty-theme .question-controllers .duty-nav-prev *,

.duty-theme .question-controllers .duty-nav-next * {

    pointer-events: none !important;

}



.duty-theme .question-controllers .duty-nav-prev {

    background: #ffffff !important;

    border: 2px solid #cbd5e1 !important;

    border-bottom-width: 4px !important;

    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;

}



.duty-theme .question-controllers .duty-nav-prev:hover {

    background: #f0fdfa !important;

    border-color: #0d9488 !important;

    border-bottom-color: #0f766e !important;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.12) !important;

}



.duty-theme .question-controllers .duty-nav-prev .assessment-btn {

    width: 32px !important;

    height: 32px !important;

    min-width: 32px !important;

    border-radius: 10px !important;

    background: #f1f5f9 !important;

    color: #475569 !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 0 !important;

    margin: 0 !important;

    border: none !important;

    position: static !important;

    box-shadow: none !important;

}



.duty-theme .question-controllers .duty-nav-prev:hover .assessment-btn {

    background: #ccfbf1 !important;

    color: #0f766e !important;

}



.duty-theme .question-controllers .duty-nav-prev .assessment-btn-text-second {

    font-size: 0.94rem !important;

    font-weight: 800 !important;

    color: #334155 !important;

    margin: 0 !important;

    position: static !important;

}



.duty-theme .question-controllers .duty-nav-prev:hover .assessment-btn-text-second {

    color: #0f766e !important;

}



.duty-theme .question-controllers .duty-nav-next {

    margin-inline-start: auto !important;

    background: linear-gradient(135deg, #0d9488 0%, #10b981 100%) !important;

    border: 2px solid #0f766e !important;

    border-bottom-width: 4px !important;

    border-bottom-color: #115e59 !important;

    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.25) !important;

}



.duty-theme .question-controllers .duty-nav-next:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.35) !important;

    filter: brightness(1.04);

}



.duty-theme .question-controllers .duty-nav-next .assessment-btn {

    width: 32px !important;

    height: 32px !important;

    min-width: 32px !important;

    border-radius: 10px !important;

    background: rgba(255, 255, 255, 0.22) !important;

    color: #ffffff !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 0 !important;

    margin: 0 !important;

    border: none !important;

    position: static !important;

    box-shadow: none !important;

}



.duty-theme .question-controllers .duty-nav-next .assessment-btn-text-second {

    font-size: 0.94rem !important;

    font-weight: 800 !important;

    color: #ffffff !important;

    margin: 0 !important;

    position: static !important;

}



.duty-theme .assessment-btn {

    border-radius: var(--gtt-radius-btn, 5px);

    font-weight: 800;

}



.duty-theme .ready-exam-title {

    font-weight: 900;

    color: var(--dt-ink);

}



.duty-theme .next-exam,

.duty-theme .pre-exams {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    background: #ffffff;

    border: 1.5px solid #b7e3da;

    color: var(--dt-teal-dark) !important;

    border-radius: 999px;

    padding: 8px 18px;

    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.1);

    text-decoration: none !important;

}



.duty-theme .next-exam:hover,

.duty-theme .pre-exams:hover {

    background: var(--dt-teal);

    color: #ffffff !important;

}



.duty-theme .duty-preview-ribbon {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    background: var(--dt-amber-soft);

    color: #92400e;

    border: 1.5px solid #fde68a;

    border-radius: 999px;

    font-size: 0.8rem;

    font-weight: 800;

    padding: 4px 12px;

}



.duty-theme .duty-teacher-grading-bar {
    max-width: 80% !important;
    margin: 0 auto 16px auto !important;
    border: 1.5px solid #ddd6fe !important;
    border-inline-start: 5px solid var(--dt-purple) !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 70%) !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08) !important;
}



/* Responsive */

@media (max-width: 767px) {

    .duty-theme .duty-page-banner { padding: 16px; border-radius: 18px; }

    .duty-theme .duty-page-heading { font-size: 1.2rem; }

    .duty-theme .duty-stepper { border-radius: 18px; }

    .duty-theme .duty-stepper > i { display: none; }

}



/* Unified status chips */

.duty-theme .status-chip {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    font-size: 0.76rem;

    font-weight: 800;

    padding: 5px 12px;

    min-width: 115px;

    min-height: 28px;

    border-radius: 999px;

    white-space: nowrap;

    text-align: center;

    box-sizing: border-box;

    transition: all 0.15s ease;

}



.duty-theme .status-chip.pending {

    background: #ffedd5;

    color: #c2410c;

    border: 1px solid #fed7aa;

}



.duty-theme .status-chip.student {

    background: #e0f2fe;

    color: #0369a1;

    border: 1px solid #bae6fd;

}



.duty-theme .status-chip.done {

    background: #dcfce7;

    color: var(--dt-teal-dark, #0f766e) !important;

    border: 1px solid #bbf7d0;

}



.duty-theme .status-chip.neutral {

    background: #f1f5f9;

    color: #475569;

    border: 1px solid #e2e8f0;

}



.duty-theme .duty-flow-report-btn {

    height: 38px !important;

    min-height: 38px !important;

    padding: 7px 18px !important;

    border-radius: 10px !important;

    font-size: 0.88rem !important;

    font-weight: 700 !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 6px !important;

    background: #0284c7 !important;

    border: 1.5px solid #0284c7 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.18) !important;

    transition: all 0.2s ease !important;

    margin: 0 !important;

}



.duty-theme .duty-flow-report-btn:hover,

.duty-theme .duty-flow-report-btn:focus {

    background: #0369a1 !important;

    border-color: #0369a1 !important;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25) !important;

}



.duty-theme .duty-flow-report-btn,

.duty-theme .duty-action-btn,

.duty-theme .duty-upload-btn,

.duty-theme .duty-flow-btn {

    height: 38px !important;

    min-height: 38px !important;

    max-height: 38px !important;

    box-sizing: border-box !important;

    padding: 7px 18px !important;

    border-radius: 10px !important;

    font-size: 0.88rem !important;

    font-weight: 700 !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 6px !important;

    margin: 0 !important;

    line-height: 1.2 !important;

    vertical-align: middle !important;

    transition: all 0.2s ease !important;

    cursor: pointer !important;

}



.duty-theme .duty-upload-btn {

    background: #2563eb !important;

    border: 1.5px solid #2563eb !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;

}



.duty-theme .duty-upload-btn:hover,

.duty-theme .duty-upload-btn:focus {

    background: #1d4ed8 !important;

    border-color: #1d4ed8 !important;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28) !important;

}



.duty-theme .duty-action-btn {

    background: var(--dt-mint-soft) !important;

    border: 1.5px solid #86efac !important;

    color: var(--dt-teal-dark, #0f766e) !important;

    font-weight: 800 !important;

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;

}



.duty-theme .duty-action-btn *,

.duty-theme .duty-action-btn i {

    color: var(--dt-teal-dark, #0f766e) !important;

    font-weight: 800 !important;

}



.duty-theme .duty-action-btn:hover,

.duty-theme .duty-action-btn:focus {

    background: #bbf7d0 !important;

    border-color: #4ade80 !important;

    color: var(--dt-teal-dark, #0f766e) !important;

    transform: translateY(-1px);

    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;

}



.duty-theme .duty-action-btn:hover *,

.duty-theme .duty-action-btn:focus * {

    color: var(--dt-teal-dark, #0f766e) !important;

}





/* ---------- 36. User Search Component (SearchUserComponenet) in Duty ---------- */

.duty-theme .mini-search-user,

.duty-search-user-wrapper .mini-search-user {

    position: relative;

    display: flex;

    flex-wrap: wrap;

    width: 100%;

    gap: 8px;

    align-items: center;

}



.duty-theme .compose-to-search-result,

.duty-theme .compose-to-search-result-multi,

.duty-search-user-wrapper .compose-to-search-result,

.duty-search-user-wrapper .compose-to-search-result-multi {

    position: static !important;

    top: auto !important;

    left: auto !important;

    right: auto !important;

    bottom: auto !important;

    width: 100% !important;

    margin-top: 12px !important;

    margin-bottom: 12px !important;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;

    border: 1.5px solid #cbd5e1 !important;

    border-radius: 12px !important;

    background-color: #ffffff !important;

    z-index: 100 !important;

    max-height: 380px;

    overflow-y: auto;

    padding: 12px 14px !important;

}



.duty-theme .check-all-table,

.duty-theme .compose-to-search-result-multi .check-all-table,

.duty-search-user-wrapper .check-all-table {

    position: static !important;

    top: auto !important;

    left: auto !important;

    right: auto !important;

    bottom: auto !important;

    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    padding: 8px 12px !important;

    margin-bottom: 10px !important;

    background: #f1f5f9 !important;

    border: 1px solid #e2e8f0 !important;

    border-radius: 8px !important;

    width: 100% !important;

    box-sizing: border-box !important;

}



.duty-theme .check-all-table .check-all-label,

.duty-theme .compose-to-search-result-multi .check-all-table .check-all-label {

    display: inline-block !important;

    margin: 0 !important;

    cursor: pointer !important;

    font-size: 0.9rem !important;

    font-weight: 700 !important;

    color: #1e293b !important;

}



.duty-theme .check-all-table input.multi-select-check,

.duty-theme .compose-to-search-result-multi .check-all-table input.multi-select-check {

    cursor: pointer !important;

    margin: 0 !important;

    width: 16px !important;

    height: 16px !important;

}



.duty-theme .compose-to-serach-row,

.duty-search-user-wrapper .compose-to-serach-row {

    padding: 8px 12px !important;

    border-radius: 8px !important;

    cursor: pointer !important;

    margin-bottom: 4px !important;

    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    transition: background-color 0.15s ease !important;

}



.duty-theme .compose-to-serach-row:hover,

.duty-search-user-wrapper .compose-to-serach-row:hover {

    background-color: #f1f5f9 !important;

}



.duty-theme .search-compose-to-title,

.duty-search-user-wrapper .search-compose-to-title {

    display: flex !important;

    align-items: center !important;

    gap: 6px !important;

    color: #1e293b !important;

    font-weight: 600 !important;

    font-size: 0.9rem !important;

}



.duty-theme .search-compose-to-title i,

.duty-search-user-wrapper .search-compose-to-title i {

    color: #0284c7 !important;

}



/* ---------- 10. Teacher Access Two-Pane & Tab Layout ---------- */

.duty-theme .duty-access-layout {

    display: flex;

    flex-wrap: wrap;

    gap: 20px;

    align-items: stretch;

}



.duty-theme .duty-access-layout > .duty-access-selected-col {

    flex: 0 0 calc(38% - 10px);

    max-width: calc(38% - 10px);

    min-width: 300px;

}



.duty-theme .duty-access-layout > .duty-access-search-col {

    flex: 1 1 calc(62% - 10px);

    min-width: 340px;

}



.direction-left .duty-theme .duty-access-layout {

    flex-direction: row-reverse;

}



@media (max-width: 991px) {

    .duty-theme .duty-access-layout > .duty-access-selected-col,

    .duty-theme .duty-access-layout > .duty-access-search-col {

        flex: 1 1 100% !important;

        max-width: 100% !important;

    }

}



.duty-theme .duty-access-scroll-list {

    max-height: 480px;

    overflow-y: auto;

    padding-right: 4px;

    padding-left: 4px;

}



.duty-theme .duty-access-item {

    transition: all 0.15s ease;

    border: 1px solid #f1f5f9;

}



.duty-theme .duty-access-item:hover {

    background-color: #f1f5f9 !important;

    border-color: #cbd5e1 !important;

}



.duty-theme .duty-tabs-wrapper {

    margin-bottom: 1.25rem;

}



.duty-theme .duty-tabs-nav {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    background: #f1f5f9;

    padding: 6px;

    border-radius: 16px;

    border: 1px solid #e2e8f0;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);

}



.duty-theme .duty-tab-btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 22px;

    border-radius: 12px;

    font-size: 0.95rem;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;

    outline: none;

    text-decoration: none;

}



.duty-theme .duty-tab-btn.duty-tab-active {

    background: #0d9488 !important;

    color: #ffffff !important;

    border: 1.5px solid #0d9488 !important;

    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3) !important;

}



.duty-theme .duty-tab-btn.duty-tab-active i {

    color: #ffffff !important;

}



.duty-theme .duty-tab-btn.duty-tab-inactive {

    background: #ffffff !important;

    color: #334155 !important;

    border: 1.5px solid #cbd5e1 !important;

    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);

}



.duty-theme .duty-tab-btn.duty-tab-inactive i {

    color: #64748b !important;

}



.duty-theme .duty-tab-btn.duty-tab-inactive:hover {

    background: #e2e8f0 !important;

    color: #0f172a !important;

    border-color: #94a3b8 !important;

}



.duty-theme .duty-tab-btn.duty-tab-inactive:hover i {

    color: #0f172a !important;

}



/* ============================================================

   Tree Hierarchy Styling (Categories & Topics)

   ============================================================ */

.duty-tree-item {

    transition: background-color 0.15s ease-in-out;

}



.duty-tree-item:hover {

    background-color: #f8fafc;

}



.duty-tree-branch-arrow {

    display: inline-block;

    color: #94a3b8;

    font-size: 0.82rem;

    margin-inline-end: 6px;

    vertical-align: middle;

    transform: scaleX(1); /* LTR: points down and right (↳) towards item */

    transition: transform 0.15s ease;

}



[dir="rtl"] .duty-tree-branch-arrow,

body.rtl .duty-tree-branch-arrow,

.rtl .duty-tree-branch-arrow {

    transform: scaleX(-1); /* RTL: points down and left (↲) towards item */

}



/* Question selector buttons in teacher evaluation bar */

.duty-theme .duty-q-selector-btn {

    background-color: #f1f5f9 !important;

    border: 1.5px solid #475569 !important;

    color: #0f172a !important;

    font-weight: 700 !important;

    font-size: 0.85rem !important;

    padding: 4px 12px !important;

    transition: all 0.2s ease-in-out;

}



.duty-theme .duty-q-selector-btn:hover {

    background-color: #e2e8f0 !important;

    border-color: #1e293b !important;

    color: #000000 !important;

}



.duty-theme .duty-q-selector-btn.is-active {

    background-color: #2563eb !important;

    border-color: #1d4ed8 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35) !important;

}



/* ============================================================

   Duty System — Universal Icon & Text Spacing Engine

   Balanced, compact spacing: exactly ~4px (halved) between icons and texts

   ============================================================ */



.duty-theme .btn,

.duty-theme button,

.duty-theme .badge,

.duty-theme .duty-chip,

.duty-theme .duty-stepper button,

.duty-theme .duty-tab-btn,

.duty-assign-page .btn,

.duty-assign-page button,

.duty-assign-page .badge,

.duty-library-page .btn,

.duty-library-page button,

.duty-exams-page .btn,

.duty-exams-page button,

.duty-question-banks-page .btn,

.duty-question-banks-page button,

.duty-cartable-page .btn,

.duty-cartable-page button,

.duty-resource-management .btn,

.duty-resource-management button {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 0.28rem !important; /* ~4.5px balanced distance (halved from ~10-14px) */

}



/* Inside buttons, badges and tabs, let flexbox gap govern the spacing cleanly without double margins */

.duty-theme .btn i,

.duty-theme button i,

.duty-theme a.btn i,

.duty-theme .badge i,

.duty-theme .duty-chip i,

.duty-theme .duty-tab-btn i,

.duty-assign-page .btn i,

.duty-library-page .btn i,

.duty-exams-page .btn i,

.duty-question-banks-page .btn i,

.duty-cartable-page .btn i,

.duty-resource-management .btn i {

    margin-left: 0 !important;

    margin-right: 0 !important;

    margin-inline-start: 0 !important;

    margin-inline-end: 0 !important;

}



/* For icons outside buttons (e.g. titles, labels, card headers), apply compact ~4px margin */

.duty-theme .modal-title i:not(:only-child),

.duty-theme .card-header i:not(:only-child),

.duty-theme .duty-title i:not(:only-child),

.duty-theme label i:not(:only-child),

.duty-theme h1 i:not(:only-child), .duty-theme h2 i:not(:only-child),

.duty-theme h3 i:not(:only-child), .duty-theme h4 i:not(:only-child),

.duty-theme h5 i:not(:only-child), .duty-theme h6 i:not(:only-child),

.duty-assign-page h6 i:not(:only-child),

.duty-assign-page label i:not(:only-child),

.duty-library-page h6 i:not(:only-child),

.duty-exams-page h6 i:not(:only-child),

.duty-question-banks-page h6 i:not(:only-child),

.duty-cartable-page h6 i:not(:only-child),

.duty-resource-management h6 i:not(:only-child) {

    margin-inline-end: 0.25rem !important;

}





/* ============================================================

   Stacked / Nested Modals Support (Question Editor on Exam Modal)

   ============================================================ */



/* Parent modal hides cleanly while Question Editor is open to prevent overlapping */

#DutyExamWizardModal.duty-modal-behind,

.duty-parent-modal.duty-modal-behind {

    visibility: hidden !important;

    pointer-events: none !important;

}



/* Second-level modal sits safely on top */

#DutyExamQuestionEditorModal,

#DutyQuestionEditorModal,

.duty-nested-modal,

.modal.duty-nested-modal {

    z-index: 100000010 !important;

}



#DutyExamQuestionEditorModal .modal-dialog,

#DutyQuestionEditorModal .modal-dialog,

.duty-nested-modal .modal-dialog {

    z-index: 100000011 !important;

}



/* Ensure backdrop of second-level modal covers properly */

.modal-backdrop.show + .modal-backdrop.show,

.modal-backdrop + .modal-backdrop {

    z-index: 100000005 !important;

}



/* Ensure body and active modal scrolling work properly when nested modal is active */

#DutyExamQuestionEditorModal.show,

#DutyQuestionEditorModal.show,

.modal.duty-nested-modal.show {

    overflow-x: hidden !important;

    overflow-y: auto !important;

}

/* Pages Navigator Grid inside Modal */
.duty-theme .duty-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px;
}

.duty-theme .duty-page-modal-card {
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 85px;
    text-align: right;
}

.duty-theme .duty-page-modal-card:hover {
    background-color: #ffffff;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.18);
    transform: translateY(-2px);
}

.duty-theme .duty-page-modal-card-active {
    background-color: #ecfdf5 !important;
    border-color: #059669 !important;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.35) !important;
}

.duty-theme .duty-page-modal-num {
    font-size: 0.9rem;
    color: #0f172a;
}

.duty-theme .duty-page-modal-title {
    color: #334155;
    line-height: 1.3;
}

/* Book Pages Nav Button in Banner */
.duty-theme .duty-pages-btn {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    border: 1px solid #4338ca !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.15s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.duty-theme .duty-pages-btn:hover {
    background-color: #4338ca !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25) !important;
    transform: translateY(-1px);
}

/* Nav page input & counter box */
.duty-theme .duty-nav-counter-box {
    background-color: #ffffff;
    border-top: 1.5px solid #047857;
    border-bottom: 1.5px solid #047857;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    padding: 2px 10px;
    gap: 6px;
    display: inline-flex;
    align-items: center;
}

.duty-theme .duty-nav-page-input {
    width: 52px;
    height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #0f172a;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.15s ease-in-out;
    padding: 0 4px;
    -moz-appearance: textfield;
}

.duty-theme .duty-nav-page-input::-webkit-outer-spin-button,
.duty-theme .duty-nav-page-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.duty-theme .duty-nav-page-input:focus {
    border-color: #059669;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.duty-theme .duty-nav-total {
    font-weight: 800;
    font-size: 0.95rem;
    color: #64748b;
    user-select: none;
}

