:root {

    --primary: #220070;

    --accent: #79D8C5;

    --page-bg: #F3F5F8;

    --sidebar-bg: #DCEEEF;

    --card-bg: #FBFCFD;

    --text-primary: #2D3748;

    --text-secondary: #4A5568;

}


* {

    box-sizing: border-box;

}

body {

    margin: 0;

    padding: 0;

    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;

    line-height: 1.6;

    color: #1f2937;

    background: #f7f8fc;

}


.hidden {

    display: none !important;

}

/* =========================
   NAVBAR
========================= */

#top-navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    padding: 10px 14px;

    background: rgba(255, 255, 255, 0.85);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);

    position: sticky;
    top: 0;
    z-index: 100;
}


.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 10px 14px;

    border: none;
    border-radius: 10px;

    background: var(--accent);

    color: var(--primary);

    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(34, 0, 112, 0.08);
    transform: translateY(-1px);
}

.nav-btn.active {
    background: rgba(34, 0, 112, 0.12);
    color: var(--primary);
    font-weight: 600;
}

#menu-toggle {
    font-size: 18px;
    width: 42px;
    height: 42px;

    border-radius: 10px;
}

/* =========================
   COVER PAGE
========================= */

#cover-page {

    padding: 40px 20px;
    text-align: center;

}

#cover-page h1 {

    margin-bottom: 40px;

    color: #220070;

    font-size: 48px;

}

/* COURSE GRID */

.course-grid {

    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(250px, 1fr)
    );

    gap: 20px;

    max-width: 900px;

    margin: 0 auto;

}

/* COURSE CARD */

.course-card {

    padding: 30px;

    border: none;

    border-radius: 16px;

    background: var(--card-bg);

    color: #220070;

    font-size: 22px;

    font-weight: 600;

    cursor: pointer;

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

    transition: 0.3s;

}

.course-card:hover {

    transform: translateY(-3px);

}


/* =========================
   COURSE PAGE LAYOUT
========================= */

.app-layout {

    display: flex;

    min-height: calc(100vh - 70px);

}

/* SIDEBAR */

.sidebar {

    width: 280px;

    background: var(--sidebar-bg);

    padding: 25px;

    display: flex;

    flex-direction: column;

    gap: 15px;

    position: relative;

    background: rgba(220, 238, 238, 0.6);

    backdrop-filter: blur(8px);

}
#sidebar-close-btn {

    display: none;

}


.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* COURSE TITLE */

.course-title {

    margin-bottom: 20px;

    text-align: center;

    color: #2D3748;

    font-size: 28px;

    line-height: 1.2;

}

/* MAIN CONTENT */

.main-content {

    flex: 1;

    padding: 40px;

    max-width: 1200px;

}

/* =========================
   SIDEBAR BUTTONS
========================= */

.sidebar-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    margin-bottom: 8px;

    border: none;
    background: #ffffff;
    color: var(--text-primary);

    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;

    text-align: left;
}

.sidebar-btn:hover {
    background: rgba(34, 0, 112, 0.06);
    transform: translateX(2px);
}

/* SUB BUTTONS */

.sidebar-sub-btn {
    width: 92%;
    margin-left: 18px;

    padding: 10px 12px;

    padding-left: 14px;

     border-left: 2px solid rgba(34, 0, 112, 0.15);

    margin-bottom: 6px;

    border: none;
    background: #f7f8fc;

    border-radius: 8px;

    font-size: 13px;

    color: var(--text-secondary);

    cursor: pointer;

    transition: 0.2s ease;
}

.sidebar-sub-btn:hover {
    background: rgba(34, 0, 112, 0.05);
    color: var(--primary);
}

#assessment-submenu,
#mastered-submenu {
    padding-left: 6px;
    border-left: 2px solid rgba(34, 0, 112, 0.08);
    margin-left: 10px;
}

.sidebar {
    background: var(--sidebar-bg);
    padding: 16px 12px;
    width: 260px;

    height: 100vh;

    overflow-y: auto;
}

.sidebar-btn.active {
    background: rgba(34, 0, 112, 0.12);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

.sidebar h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 12px;
}

/* PROFILE */

.profile-row {

    display: flex;

    margin-bottom: 20px;

    align-items: center;

}

.profile-label {

    width: 260px;

    font-weight: 600;

    color: var(--primary-color);

}

.profile-value {

    flex: 1;

}

.profile-note {

    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid #ddd;

    font-style: italic;

    color: #666;

}

/* =========================
   ADMIN PAGE
========================= */

.admin-input {

    width: 100%;

    padding: 12px;

    margin-bottom: 12px;

    border-radius: 8px;

    border: 1px solid #ddd;

    box-sizing: border-box;

}


.dashboard-card {

    width: 100%;
    
    max-width: 900px;

    margin: 0 auto 25px auto;

    background: var(--card-bg);

    padding: 25px;

    border-radius: 20px;

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

    border-top:
        3px solid var(--primary);

}

.dashboard-card h3 {

    color: var(--primary);

    margin-top: 0;

}

#course-summary-table {

    width: 100%;
    border-collapse: collapse;

}

.admin-table {

    width: 100%;

    border-collapse: collapse;

    margin-top: 20px;

}

.admin-table th {

    background: #f5f5f5;

    padding: 12px;

    text-align: left;

    border-bottom: 2px solid #ddd;

}

.admin-table td {

    padding: 12px;

    border-bottom: 1px solid #eee;

}

/* =========================
   WELCOME PAGE
========================= */

.welcome-card {

    max-width: 900px;

    margin: 40px auto;

    background: #FAFBFC;

    padding: 40px;

    border-radius: 20px;

    border-top: 6px solid #220070;

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

    text-align: left;

}

.welcome-card h2 {

    color: #220070;

    font-size: 36px;

    margin-top: 0;

    margin-bottom: 20px;

}

.welcome-card p {

    font-size: 18px;

    line-height: 1.8;

    color: #4A5568;

}

/* =========================
   CONTENT MANAGEMENT
========================= */


.sidebar-group-btn {

    width: 100%;

    padding: 16px;

    margin-bottom: 10px;

    border: none;

    border-radius: 12px;

    background: var(--accent);

    color: var(--primary);

    font-size: 18px;

    font-weight: 700;

    text-align: left;

    justify-content: center;

    cursor: pointer;

    transition: 0.3s;
    
}

.admin-sidebar-btn {

    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 12px;

    background: #FFFFFF;

    color: #2D3748;

    font-size: 18px;

    text-align: left;

    cursor: pointer;

    transition: 0.3s;

    margin-bottom: 5px;

}

.admin-sidebar-btn:hover {

    transform: translateX(3px);

}






/* =========================
   LEARNING AREAS
========================= */

.learning-area-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(300px, 380px));

    justify-content: center;

    gap: 30px;

    margin-top: 30px;

}

.learning-area-card {
    background: var(--card-bg);
    border: none;
    border-radius: 20px;
    padding: 35px;
    min-height: 100px;
    width: 320px;
    cursor: pointer;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    transition: all 0.25s ease;

    font-size: 26px;
    font-weight: 600;
    color: var(--primary);
}

.learning-area-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    border-left: 4px solid var(--accent);
}

 /* =========================
    SCROLL
========================= */

.grid-scroll th {

    position: sticky;

    top: 0;

    background: white;

    z-index: 1;

}

.grid-scroll {

    max-height: 400px;

    overflow-y: auto;

    overflow-x: auto;

    border: 1px solid #ddd;

}

 /* =========================
    Vocabulary Editing Page
========================= */

.search-row {

    display: flex;

    gap: 10px;

    align-items: center;

}

 /* =========================
   THEMES PAGE
========================= */

.theme-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 320px));

    justify-content: center;

    gap: 22px;

    margin-top: 25px;

}


.theme-card {

    background: #FAFBFC;

    border: none;

    border-radius: 16px;

    padding: 25px;

    min-height: 90px;

    cursor: pointer;

    font-size: 22px;

    font-weight: 600;

    color: #220070;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    transition: all 0.25s ease;

}

.theme-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 18px 40px rgba(0,0,0,0.12);

    border-left: 4px solid rgba(121, 216, 197, 0.8);

}


/* =========================
   LISTS PAGE
========================= */

.list-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 280px));

    justify-content: center;

    gap: 18px;

    margin-top: 20px;

}

.list-card {

    background: var(--card-bg);

    border: none;

    border-radius: 14px;

    padding: 18px;

    min-height: 70px;

    cursor: pointer;

    font-size: 18px;

    font-weight: 600;

    color: var(--primary);

    box-shadow: 0 8px 18px rgba(0,0,0,0.08);

    transition: all 0.25s ease;

}

.list-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 14px 28px rgba(0,0,0,0.12);

    border-left: 3px solid rgba(121, 216, 197, 0.8);

}


/* =========================
   ITEM CARD
========================= */


.item-card {

    max-width: 800px;

    margin: 0 auto;

    background: var(--card-bg);

    padding: 24px;

    border-radius: 20px;

    box-shadow: 0 18px 45px rgba(0,0,0,0.10);

    text-align: left;

    border: 1px solid rgba(255,255,255,0.6);

    backdrop-filter: blur(8px);

    position: relative;

}

.item-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 20px 20px 0 0;
    opacity: 0.9;
}

.item-card h2 {

    font-size: 42px;

    color: var(--primary);

    margin-bottom: 20px;

}


.item-card strong {

    color: var(--primary);

}

.item-card strong {

    color: var(--primary);

}

.item-card p {

    line-height: 1.8;

    margin-bottom: 14px;

}


.item-card ul {

    margin-top: 10px;

    padding-left: 30px;

    line-height: 1.8;
}


.item-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 30px;

    margin-bottom: 25px;

}

.item-info {

    flex: 1;

    display: flex;

    flex-direction: column;

}



.item-info p {

    margin: 8px 0;

}

.item-image {
    width: 220px;
    height: 220px;

    background: #F1F3F6;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #64748B;

    font-size: 13px;

    font-weight: 500;
}

.card-counter {

    font-size: 14px;

    color: #64748B;

    font-weight: 600;

    margin-bottom: 10px;

}

.nav-btn,
#complete-learning-btn {
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.card-navigation {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-top: 30px;

    max-width: 900px;

    margin-left: auto;

    margin-right: auto;

}

.nav-btn {

    min-width: 140px;

    padding: 14px 24px;

    border: none;

    border-radius: 12px;

    background: var(--accent);

    color: var(--primary);

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;

}


#complete-learning-btn {

    min-width: 220px;

    padding: 14px 30px;

    border: none;

    border-radius: 12px;

    background: var(--primary);

    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s;

}

.nav-btn:hover {

    transform: translateY(-2px);

}

#complete-learning-btn:hover {

    transform: translateY(-2px);

}


/* =========================
   LESSON CARD
========================= */


.lesson-objectives,
.lesson-outcome,
.lesson-example,
.inline-example {

    background: rgba(255, 255, 255, 0.92);

    border-radius: 14px;

    padding: 18px 15px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.06);

    border-left: 4px solid rgba(34, 0, 112, 0.2);

    margin-top: 14px;

}

.lesson-objectives { border-left-color: var(--accent); }

.lesson-outcome { border-left-color: #34d399; }

.lesson-example { border-left-color: var(--primary); }


.lesson-section {

    margin-top: 30px;

}

.lesson-content {

    line-height: 1.2;

}

.lesson-paragraph {

    margin-top: 0;

    margin-bottom: 18px;

    line-height: 1.6;

}

.lesson-section:last-child {

    background: #f7f7ff;

    padding: 15px;

    border-left: 4px solid #220070;

    border-radius: 8px;

}

.lesson-objectives {

    background: #F0F8FF;

    border-left: 5px solid var(--accent);

    padding: 20px;

    border-radius: 10px;

    margin-top: 25px;

}


.lesson-outcome {

   background: #F0FFF8;

    border-left: 5px solid var(--accent);

    padding: 20px;

    border-radius: 10px;

    margin-top: 25px;

}

.lesson-example {

    background: #F7F3FF;

    border-left: 5px solid var(--primary);

    padding: 10px;

    border-radius: 10px;

    margin-top: 5px;

}

.inline-example {
    background: #FFF1F2;
    border-left: 4px solid #E8A0A8;
    padding: 10px 16px;
    margin: 12px 0 18px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.5;
}


.inline-example ul,
.inline-example ol {

    margin-top: 6px;

    margin-bottom: 6px;

    padding-left: 24px;

}

.inline-example li {

    margin-bottom: 4px;

}

.section-header {

    display: flex;
    align-items: center;
    gap: 10px;

    cursor: pointer;

    font-size: 21px;
    font-weight: 700;

    color: var(--primary);

    padding: 10px 12px;

    border-radius: 10px;

    transition: 0.2s ease;

}

.section-header:hover {
    background: rgba(34, 0, 112, 0.05);
}

.section-arrow {

    width: 18px;

    text-align: center;

    font-size: 14px;

    font-weight: bold;

}

.lesson-content ul,
.lesson-content ol {

    margin-top: 8px;

    margin-bottom: 8px;

}


/* CALLOUT BOX */

.inline-callout {

    background: #FFF8E7;

    border-left: 4px solid #D9A441;

    padding: 14px 18px;

    margin: 16px 0;

    border-radius: 10px;

    color: var(--primary);

    line-height: 1.6;

}

.inline-callout > strong:first-child {

    display: block;

    margin-bottom: 10px;

}

/* =========================
   LESSON CONTENT HEADINGS
========================= */

/* H1 - Major lesson topics */
.lesson-heading-h1 {
    font-size: 21px;
    font-weight: 700;
    color: #220070;
    margin-top: 24px;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* H2 - Subtopics */
.lesson-heading-h2 {
    font-size: 18px;
    font-weight: 600;
    color: #220070;
    margin-top: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* H3 - Minor subtopics */
.lesson-heading-h3 {
    font-size: 16px;
    font-weight: 600;
    color: #220070;
    margin-top: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
}


/* =========================
   LESSON TEXT ALIGNMENT
========================= */

.lesson-align-left {
    text-align: left;
}

.lesson-align-center {
    text-align: center;
}

/* =========================
   EDITOR TOOLBAR
========================= */

.editor-toolbar {

    margin-bottom: 10px;

    padding: 10px 12px;

    background: rgba(255, 255, 255, 0.85);

    border: 1px solid rgba(0,0,0,0.06);

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    backdrop-filter: blur(8px);

}

#block-selector {

    width: 220px;

    padding: 8px 10px;

    border-radius: 8px;

    border: 1px solid #e5e7eb;

    outline: none;

    background: white;

}

.lesson-actions {

    display: flex;

    gap: 12px;

    justify-content: flex-start;

    align-items: center;

    padding: 12px 14px;

    background: rgba(255,255,255,0.7);

    border: 1px solid rgba(0,0,0,0.05);

    border-radius: 12px;

    margin-bottom: 16px;

    backdrop-filter: blur(8px);

}

.lesson-actions {

    min-width: 140px;

    padding: 10px 16px;

    border-radius: 10px;

    transition: all 0.2s ease;

}


.toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 12px;
}

.editor-actions .nav-btn {

    min-width: 140px;

}
/* Compact Lesson Editor Icon Buttons */

.toolbar-icon-btn {
    width: 46px;
    min-width: 46px;
    height: 44px;

    padding: 0;
    margin: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 46px;
}

.toolbar-icon-btn svg {
    width: 20px;
    height: 20px;
}

.editor-toolbar .toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* =========================
   SECTION LIST
========================= */

#sections-list {

    margin-top: 20px;

    width: 100%;

}

.section-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 14px 18px;

    margin-bottom: 12px;

    background: rgba(255,255,255,0.9);

    border: 1px solid rgba(0,0,0,0.05);

    border-radius: 12px;

    box-shadow: 0 6px 16px rgba(0,0,0,0.06);

    transition: all 0.2s ease;

}

.section-row:hover {

    transform: translateY(-2px);

    box-shadow: 0 12px 28px rgba(0,0,0,0.10);

}

.section-row.active {

    border: 1px solid rgba(121, 216, 197, 0.6);

    background: rgba(121, 216, 197, 0.08);

}




/* =========================
   ASSESSMENT
========================= */

#assessment-dashboard-page h2 {

    color: var(--primary);

    font-size: 32px;

    text-align: center;

    margin-bottom: 12px;

    font-weight: 700;

}


.page-description {

    text-align: center;

    margin-bottom: 25px;

    color: #64748b;

    font-size: 16px;

    max-width: 700px;

    margin-left: auto;

    margin-right: auto;

}

#assessment-dashboard-page {

    padding: 20px;

}

#assessment-dashboard-page h2,
.page-description {

    position: relative;

}

/* =========================
   ASSESSMENT SETS
========================= */

.assessment-set-card {

    background: var(--card-bg);

    border: 1px solid rgba(0,0,0,0.05);

    border-radius: 18px;

    padding: 22px;

    min-height: 110px;

    cursor: pointer;

    font-size: 22px;

    font-weight: 600;

    color: var(--primary);

    box-shadow: 0 10px 22px rgba(0,0,0,0.08);

    transition: all 0.25s ease;

}

.assessment-set-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 18px 38px rgba(0,0,0,0.12);

    border-left: 4px solid rgba(121, 216, 197, 0.8);

}

.assessment-set-card:disabled {

    opacity: 0.45;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;

}

.assessment-sets-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(200px, 260px));

    justify-content: center;

    gap: 22px;

    margin-top: 30px;

}


/* =========================
   ASSESSMENT QUESTION
========================= */

.item-card h3 {

    font-size: 24px;

    line-height: 1.6;

    color: var(--primary);

    margin-bottom: 24px;

    font-weight: 700;

    max-width: 850px;

}

.options-container {

    display: flex;

    flex-direction: column;

    gap: 16px;
    

}


.option-btn {

    width: 100%;

    text-align: left;

    padding: 16px 18px;

    border: 1px solid rgba(0,0,0,0.05);

    border-radius: 12px;

    background: #F8FAFC;

    color: var(--primary);

    font-size: 16px;

    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;

    box-shadow: 0 6px 14px rgba(0,0,0,0.06);

}


.option-btn:hover {

    background: rgba(121, 216, 197, 0.15);

    transform: translateY(-2px);

    box-shadow: 0 10px 22px rgba(0,0,0,0.08);

}

.option-btn.selected {
    background: rgba(34, 0, 112, 0.08);
    border: 1px solid var(--primary);
}


.revision-feedback {

    background: rgba(255,255,255,0.9);

    border-radius: 12px;

    padding: 16px;

    margin-bottom: 12px;

    border-left: 4px solid var(--accent);

    box-shadow: 0 8px 18px rgba(0,0,0,0.06);

}

.revision-feedback strong {

    color: var(--primary);

}

.revision-feedback .revision-question {

    font-size: 20px;

    font-weight: 600;

    color: var(--primary);

    margin-bottom: 14px;

}


.revision-learning-card {

    padding-top: 10px;

}

.revision-card {

    max-width: 900px;

    margin: 0 auto;

}

.revision-dashboard-card {

    text-align: center;

}


.revision-divider {

    border-top: 1px solid rgba(34, 0, 112, 0.08);

    margin: 20px 0;

}

/* =========================
   SEARCH PAGE
========================= */

.search-controls {

    display: flex;

    gap: 12px;

    justify-content: center;

    margin-bottom: 20px;

    padding: 14px;

    background: rgba(255,255,255,0.8);

    border: 1px solid rgba(0,0,0,0.05);

    border-radius: 12px;

    backdrop-filter: blur(8px);

}

#search-filter,
#search-input {

    padding: 10px 12px;

    border-radius: 10px;

    border: 1px solid #e5e7eb;

    min-width: 220px;

    outline: none;

    transition: 0.2s ease;

}

#search-results {

    display: flex;

    align-items: center;

    gap: 12px;

}

.search-result-card {

    background: rgba(255,255,255,0.9);

    padding: 16px;

    border-radius: 12px;

    max-width: 520px;

    width: 100%;

    cursor: pointer;

    box-shadow: 0 10px 24px rgba(0,0,0,0.06);

    border: 1px solid rgba(0,0,0,0.05);

    transition: all 0.2s ease;

}

.search-result-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 16px 36px rgba(0,0,0,0.10);

}

UNIFIED HEADING SYSTEM

h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary);
}

h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
}


.app-page h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 25px;
}

#menu-toggle {

    display: none;

}

.table-responsive {

    overflow-x: auto;

    width: 100%;

}


.admin-table {

    width: 100%;

    border-collapse: collapse;

    margin-top: 20px;

    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 10px 24px rgba(0,0,0,0.06);

}

.admin-table th,
.admin-table td {

    padding: 12px 14px;

    text-align: left;

    vertical-align: top;

    border-bottom: 1px solid rgba(0,0,0,0.05);

}

.admin-table th {

    background: rgba(245,245,245,0.6);

    font-weight: 700;

    color: var(--primary);

}

.admin-table tr:hover {

    background: rgba(121, 216, 197, 0.08);

}

.admin-table td {

    max-width: 250px;

    word-wrap: break-word;

}


.validation-summary {

    margin-top: 15px;

    padding: 12px 14px;

    background: rgba(255,255,255,0.85);

    border-radius: 10px;

    font-size: 14px;

    box-shadow: 0 8px 18px rgba(0,0,0,0.06);

    border-left: 4px solid var(--accent);

}


.sidebar-section-title {
    margin: 22px 12px 10px;
    padding: 0 6px;

    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}



/* =========================================
   EMAIL COMMUNICATION
========================================= */

#email-communication-page .item-card {
    width: 100%;
    max-width: 860px;
}

#email-communication-page #email-subject,
#email-communication-page #email-message {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 8px 0 20px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
}

#email-communication-page #email-message {
    min-height: 220px;
    resize: vertical;
}

#email-communication-page #email-recipient-type,
#email-communication-page #email-single-recipient {
    max-width: 100%;
    margin: 8px 0 14px;
    padding: 8px;
}

#email-communication-page #email-selected-recipients label {
    display: block;
    margin: 6px 0;
}

#email-communication-page #email-status-message {
    margin-top: 16px;
    font-weight: 600;
}

#email-communication-page #email-preview-message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* =========================================
   EMAIL ACTION BUTTONS
========================================= */

#email-communication-page .email-action-btn {
    display: inline-block;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    background-color: #220070;
    color: #FFFFFF;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#email-communication-page .email-action-btn:hover {
    background-color: #3b168c;
}

#email-communication-page .email-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#email-communication-page .email-send-btn {
    background-color: #168b76;
}

#email-communication-page .email-send-btn:hover {
    background-color: #116b5b;
}



/* =========================================
   PUBLIC LEARNER REGISTRATION
========================================= */

.registration-page {
    min-height: 100vh;
    padding: 30px 16px;
    background: var(--page-bg);
}

.registration-container {
    max-width: 650px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 20px;
    border-top: 5px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.registration-header {
    padding: 28px 24px;
    text-align: center;
    border-bottom: 2px solid var(--accent);
}

.registration-header img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto 16px;
}

.registration-header h1 {
    margin: 0;
    font-size: 30px;
    color: var(--primary);
}

.registration-header p {
    margin: 8px 0 0;
    color: var(--text-secondary);
}

.registration-form {
    padding: 28px 24px;
}

.registration-field {
    margin-bottom: 20px;
}

.registration-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.registration-field input,
.registration-field select,
.registration-field textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--text-primary);
    font: inherit;
}

.registration-field input:focus,
.registration-field select:focus,
.registration-field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--primary);
}

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

.registration-required {
    color: #B42318;
}

.registration-help {
    margin: 18px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.registration-submit {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #FFFFFF;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.registration-submit:hover {
    background: #3B168C;
}

.registration-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.registration-message {
    display: none;
    margin: 0 24px 24px;
    padding: 14px;
    border-radius: 10px;
    line-height: 1.6;
}

.registration-message.success {
    display: block;
    background: #E8F7F1;
    color: #155B43;
}

.registration-message.error {
    display: block;
    background: #FDECEC;
    color: #9C2424;
}

.registration-footer {
    padding: 18px;
    background: #F3F5F8;
    color: var(--text-secondary);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 480px) {
    .registration-page {
        padding: 12px 8px;
    }

    .registration-header,
    .registration-form {
        padding: 22px 18px;
    }

    .registration-header h1 {
        font-size: 25px;
    }

    .registration-message {
        margin-right: 18px;
        margin-left: 18px;
    }
}


/* Lesson tables */

.lesson-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 16px 0;
}

.lesson-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 14px;
    color: #303030;
    background: #FFFFFF;
}

.lesson-table th,
.lesson-table td {
    border: 1px solid #D6D6D6;
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

.lesson-table thead th {
    background: #DDF5F0;
    color: #220070;
    font-weight: 600;
}

.lesson-table tbody td {
    background: #FFFFFF;
}

.lesson-table tbody tr:nth-child(even) td {
    background: #EAF8F5;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {

    .sidebar {

        width: 220px;

        padding: 20px;

    }

    .main-content {

        padding: 25px;

    }

    .course-title {

        font-size: 22px;

    }

    .item-card {

        padding: 25px;

    }

    .item-info h2 {

        font-size: 34px;

    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .sidebar {

        width: 240px;

        position: fixed;

        top: 60px;

        left: -240px;

        height: calc(100vh - 60px);

        z-index: 2000;

        transition: 0.3s;

        overflow-x: hidden;

        -webkit-overflow-scrolling: touch;

        box-sizing: border-box;

    }


   #sidebar-close-btn {

    display: block;

    margin-left: auto;

    margin-bottom: 10px;

    border: none;

    background: transparent;

    color: var(--primary);

    font-size: 24px;

    font-weight: bold;

    cursor: pointer;

}
    #top-navbar {

    display: flex;

    flex-wrap: nowrap;

    gap: 8px;

}

.nav-btn {

        flex: 1;

        min-width: 0;

     

    }

      #back-btn {

        font-size: 0;

    }

    #back-btn::before {

        content: "↩";
        font-size: 18px;

    }


    .section-header span {

    display: inline-block;

    width: 24px;

}

    #home-btn {

        font-size: 0;

    }

    #home-btn::before {

        content: "🏠";
        font-size: 18px;

    }

    #courses-btn {

        font-size: 0;

    }

    #courses-btn::before {

        content: "📚";
        font-size: 18px;

    }

    .sidebar.mobile-open {

        left: 0;

    }

    .main-content {

        width: 100%;

        padding: 20px;

    }

    .item-info h2,
.item-card h2 {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 16px;
}

    .card-navigation {

        flex-direction: column;

        align-items: stretch;

        gap: 12px;

    }

    .card-navigation .nav-btn,

    #complete-learning-btn {

        width: 100%;

        min-width: 0;

    }


 #menu-toggle {

        display: block;

    }

    .app-layout {

        display: block;

    }

     .search-controls {

        display: flex;

        flex-direction: column;

        gap: 12px;

    }

    #search-filter,
    #search-input {

        width: 100%;

        box-sizing: border-box;

    }

}


/* =========================================
   AKL - MANAGE ADAPTIVE QUESTIONS EDITOR
========================================= */

#manage-adaptive-questions-page .adaptive-question-editor {
    max-width: 1150px;
    margin: 25px 0;
    padding: 30px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(34, 0, 112, 0.06);
    font-family: Arial, sans-serif;
    color: #333333;
    box-sizing: border-box;
}

#manage-adaptive-questions-page .adaptive-question-editor * {
    box-sizing: border-box;
}

/* EDITOR HEADER */

.adaptive-editor-header {
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 2px solid #79D8C5;
}

.adaptive-editor-header h3 {
    margin: 0 0 15px;
    color: #220070;
    font-size: 24px;
}

.adaptive-editor-header p {
    margin: 7px 0;
    color: #6B7280;
    font-size: 14px;
}

.adaptive-editor-header strong {
    color: #220070;
    font-size: 17px;
}

/* SECTION HEADINGS */

.adaptive-question-editor h4 {
    margin: 32px 0 20px;
    padding-bottom: 10px;
    color: #220070;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 1px solid #E5E7EB;
}

/* TWO-COLUMN GRID */

.adaptive-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin-bottom: 25px;
}

/* FORM GROUPS */

.adaptive-question-editor form > div:not(.adaptive-editor-grid):not(.adaptive-editor-actions) {
    margin-bottom: 22px;
}

.adaptive-question-editor label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-size: 13px;
    font-weight: 600;
}

/* INPUTS AND SELECTS */

.adaptive-question-editor input,
.adaptive-question-editor select,
.adaptive-question-editor textarea {
    display: block;
    width: 100%;
    min-height: 43px;
    padding: 11px 13px;
    background: #FFFFFF;
    color: #333333;
    border: 1px solid #D5D9E2;
    border-radius: 7px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.adaptive-question-editor textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

.adaptive-question-editor input:focus,
.adaptive-question-editor select:focus,
.adaptive-question-editor textarea:focus {
    border-color: #220070;
    box-shadow: 0 0 0 3px rgba(34, 0, 112, 0.08);
}

/* ANSWER CLASSIFICATION */

.adaptive-question-editor select {
    cursor: pointer;
}

/* ACTION BUTTONS */

.adaptive-editor-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid #E5E7EB;
}

.adaptive-editor-actions button {
    min-width: 145px;
    padding: 12px 20px;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.adaptive-editor-actions .btn-primary {
    background: #220070;
    color: #FFFFFF;
}

.adaptive-editor-actions .btn-primary:hover {
    background: #3B1591;
}

.adaptive-editor-actions .btn-secondary {
    background: #79D8C5;
    color: #220070;
}

.adaptive-editor-actions .btn-secondary:hover {
    background: #62CBB5;
}

/* RESPONSIVE DESIGN */

@media (max-width: 700px) {

    #manage-adaptive-questions-page .adaptive-question-editor {
        padding: 20px 16px;
        margin: 15px 0;
    }

    .adaptive-editor-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .adaptive-editor-header h3 {
        font-size: 21px;
    }

    .adaptive-editor-actions {
        flex-direction: column-reverse;
    }

    .adaptive-editor-actions button {
        width: 100%;
    }

}


/* =========================================
   AKL - ADAPTIVE QUESTION SEARCH INTERFACE
========================================= */

#manage-adaptive-questions-page .adaptive-question-search {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1150px;
    margin: 25px 0;
    padding: 25px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(34, 0, 112, 0.05);
    box-sizing: border-box;
}

.adaptive-search-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.adaptive-search-field label {
    color: #220070;
    font-size: 14px;
    font-weight: 600;
}

.adaptive-search-field input,
.adaptive-search-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #D5D9E2;
    border-radius: 7px;
    background: #FFFFFF;
    color: #333333;
    font-size: 14px;
    box-sizing: border-box;
}

.adaptive-search-field input:focus,
.adaptive-search-field select:focus {
    outline: none;
    border-color: #220070;
    box-shadow: 0 0 0 3px rgba(34, 0, 112, 0.08);
}

/* SEARCH ACTIONS */

.adaptive-search-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    padding-top: 5px;
}

.adaptive-search-actions button {
    min-width: 110px;
    padding: 11px 20px;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.adaptive-search-actions .btn-primary {
    background: #220070;
    color: #FFFFFF;
}

.adaptive-search-actions .btn-secondary {
    background: #79D8C5;
    color: #220070;
}

/* RESPONSIVE SEARCH */

@media (max-width: 800px) {

    #manage-adaptive-questions-page .adaptive-question-search {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .adaptive-search-actions {
        grid-column: auto;
    }

}


/* =========================================
   AKL - CREATE ADAPTIVE ASSESSMENT
========================================= */

#create-adaptive-assessment-page
#create-adaptive-assessment-content {
    max-width: 950px;
}

/* FORM CARD */

#create-adaptive-assessment-page
#create-adaptive-assessment-content form {
    max-width: 850px;
    margin-top: 25px;
    padding: 30px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(34, 0, 112, 0.06);
    box-sizing: border-box;
}

/* PAGE SUBHEADING */

#create-adaptive-assessment-content h3 {
    margin: 15px 0 20px;
    color: #220070;
    font-size: 22px;
}

/* FORM GROUPS */

#create-adaptive-assessment-content .form-group {
    margin-bottom: 24px;
}

#create-adaptive-assessment-content .form-group label {
    display: block;
    margin-bottom: 9px;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
}

/* INPUTS, SELECTS AND TEXTAREA */

#create-adaptive-assessment-content input,
#create-adaptive-assessment-content select,
#create-adaptive-assessment-content textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    background: #FFFFFF;
    color: #333333;
    border: 1px solid #D5D9E2;
    border-radius: 7px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#create-adaptive-assessment-content textarea {
    min-height: 120px;
    line-height: 1.6;
    resize: vertical;
}

#create-adaptive-assessment-content input:focus,
#create-adaptive-assessment-content select:focus,
#create-adaptive-assessment-content textarea:focus {
    outline: none;
    border-color: #220070;
    box-shadow: 0 0 0 3px rgba(34, 0, 112, 0.08);
}

/* SAVE BUTTON */

#create-adaptive-assessment-content .admin-btn {
    min-width: 170px;
    padding: 13px 22px;
    background: #220070;
    color: #FFFFFF;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

#create-adaptive-assessment-content .admin-btn:hover {
    background: #3B1591;
}

/* RESPONSIVE DESIGN */

@media (max-width: 700px) {

    #create-adaptive-assessment-page
    #create-adaptive-assessment-content form {
        padding: 20px 16px;
    }

    #create-adaptive-assessment-content .admin-btn {
        width: 100%;
    }

}



/* =========================================
   MANAGE LEARNING AREAS - HORIZONTAL ROWS
========================================= */

#manage-areas-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1150px;
}

#manage-areas-content .admin-card {
    display: grid;
    grid-template-columns:
        minmax(200px, 2fr)
        minmax(100px, 0.8fr)
        minmax(110px, 0.8fr)
        auto
        auto;
    align-items: center;
    gap: 20px;

    width: 100%;
    margin: 0;
    padding: 18px 22px;

    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-left: 4px solid #79D8C5;
    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(34, 0, 112, 0.05);
    box-sizing: border-box;
}

#manage-areas-content .admin-card h3 {
    margin: 0;
    color: #220070;
    font-size: 17px;
}

#manage-areas-content .admin-card p {
    margin: 0;
    color: #555555;
    font-size: 14px;
}

#manage-areas-content .admin-card button {
    min-width: 90px;
    padding: 9px 14px;

    border: none;
    border-radius: 6px;

    background: #220070;
    color: #FFFFFF;

    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

#manage-areas-content .admin-card button:last-child {
    background: #79D8C5;
    color: #220070;
}

#manage-areas-content .admin-card button:hover {
    opacity: 0.85;
}

/* MOBILE LAYOUT */

@media (max-width: 750px) {

    #manage-areas-content .admin-card {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    #manage-areas-content .admin-card h3 {
        grid-column: 1 / -1;
    }

    #manage-areas-content .admin-card button {
        width: 100%;
    }

}


/* =========================================
   MANAGE THEMES - HORIZONTAL ROWS
========================================= */

#manage-themes-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1150px;
}

#manage-themes-content .admin-card {
    display: grid;
    grid-template-columns:
        minmax(200px, 2fr)
        minmax(100px, 0.8fr)
        minmax(110px, 0.8fr)
        auto
        auto;
    align-items: center;
    gap: 20px;

    width: 100%;
    margin: 0;
    padding: 18px 22px;

    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-left: 4px solid #79D8C5;
    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(34, 0, 112, 0.05);
    box-sizing: border-box;
}

#manage-themes-content .admin-card h3 {
    margin: 0;
    color: #220070;
    font-size: 17px;
}

#manage-themes-content .admin-card p {
    margin: 0;
    color: #555555;
    font-size: 14px;
}

#manage-themes-content .admin-card button {
    min-width: 90px;
    padding: 9px 14px;

    border: none;
    border-radius: 6px;

    background: #220070;
    color: #FFFFFF;

    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

#manage-themes-content .admin-card button:last-child {
    background: #79D8C5;
    color: #220070;
}

#manage-themes-content .admin-card button:hover {
    opacity: 0.85;
}

/* MOBILE LAYOUT */

@media (max-width: 750px) {

    #manage-themes-content .admin-card {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    #manage-themes-content .admin-card h3 {
        grid-column: 1 / -1;
    }

    #manage-themes-content .admin-card button {
        width: 100%;
    }

}


/* =========================================
   MANAGE LISTS - HORIZONTAL ROWS
========================================= */

#manage-lists-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1150px;
}

#manage-lists-content .admin-card {
    display: grid;
    grid-template-columns:
        minmax(200px, 2fr)
        minmax(100px, 0.8fr)
        minmax(110px, 0.8fr)
        auto
        auto;
    align-items: center;
    gap: 20px;

    width: 100%;
    margin: 0;
    padding: 18px 22px;

    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-left: 4px solid #79D8C5;
    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(34, 0, 112, 0.05);
    box-sizing: border-box;
}

#manage-lists-content .admin-card h3 {
    margin: 0;
    color: #220070;
    font-size: 17px;
}

#manage-lists-content .admin-card p {
    margin: 0;
    color: #555555;
    font-size: 14px;
}

#manage-lists-content .admin-card button {
    min-width: 90px;
    padding: 9px 14px;

    border: none;
    border-radius: 6px;

    background: #220070;
    color: #FFFFFF;

    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

#manage-lists-content .admin-card button:last-child {
    background: #79D8C5;
    color: #220070;
}

#manage-lists-content .admin-card button:hover {
    opacity: 0.85;
}

/* MOBILE LAYOUT */

@media (max-width: 750px) {

    #manage-lists-content .admin-card {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    #manage-lists-content .admin-card h3 {
        grid-column: 1 / -1;
    }

    #manage-lists-content .admin-card button {
        width: 100%;
    }

}


/* =========================================
   REVIEW QUESTIONS - ADMIN PAGE
========================================= */

#review-questions-content {
    max-width: 1150px;
}

/* PAGE SUBHEADING */

#review-questions-content .review-page-subtitle {
    margin-bottom: 25px;
    color: #220070;
    font-size: 21px;
}

/* SECTION PANELS */

.review-question-panel {
    margin: 22px 0;
    padding: 25px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(34, 0, 112, 0.05);
}

.review-question-panel h4 {
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: #220070;
    font-size: 18px;
    border-bottom: 1px solid #E5E7EB;
}

/* QUESTION ID SEARCH */

.review-id-search {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.review-id-search .review-form-group {
    width: 280px;
}

/* FILTER GRID */

.review-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

/* FORM FIELDS */

.review-form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.review-form-group label {
    color: #333333;
    font-size: 14px;
    font-weight: 600;
}

.review-form-group input,
.review-form-group select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: #FFFFFF;
    color: #333333;
    border: 1px solid #D5D9E2;
    border-radius: 7px;
    font-size: 14px;
    box-sizing: border-box;
}

.review-form-group input:focus,
.review-form-group select:focus {
    outline: none;
    border-color: #220070;
    box-shadow: 0 0 0 3px rgba(34, 0, 112, 0.08);
}

/* ACTION BUTTONS */

.review-question-panel .admin-btn {
    min-height: 42px;
    padding: 10px 20px;
    background: #220070;
    color: #FFFFFF;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.review-question-panel .admin-btn:hover {
    background: #3B1591;
}

/* RESULTS SPACING */

#question-search-result,
#question-edit-container,
#review-question-results {
    margin-top: 20px;
}

/* RESPONSIVE */

@media (max-width: 750px) {

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

    .review-question-panel {
        padding: 18px;
    }

    .review-id-search .review-form-group {
        width: 100%;
    }

    .review-id-search .admin-btn {
        width: 100%;
    }

}


/* =========================================
   REVIEW QUESTIONS - EDIT QUESTION FORM
========================================= */

#question-edit-container .review-edit-card {
    max-width: 1050px;
    margin-top: 25px;
    padding: 30px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(34, 0, 112, 0.06);
    box-sizing: border-box;
}

.review-edit-header {
    padding-bottom: 18px;
    margin-bottom: 25px;
    border-bottom: 2px solid #79D8C5;
}

.review-edit-header h3 {
    margin: 0 0 12px;
    color: #220070;
    font-size: 23px;
}

.review-edit-header p {
    margin: 0;
    color: #666666;
    font-size: 14px;
}

.review-edit-card h4 {
    margin: 28px 0 20px;
    padding-bottom: 10px;
    color: #220070;
    font-size: 17px;
    border-bottom: 1px solid #E5E7EB;
}

.review-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.review-edit-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.review-edit-field label {
    color: #333333;
    font-size: 14px;
    font-weight: 600;
}

.review-edit-field input,
.review-edit-field select,
.review-edit-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    background: #FFFFFF;
    color: #333333;
    border: 1px solid #D5D9E2;
    border-radius: 7px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.review-edit-field textarea {
    min-height: 110px;
    line-height: 1.6;
    resize: vertical;
}

.review-edit-field input:focus,
.review-edit-field select:focus,
.review-edit-field textarea:focus {
    outline: none;
    border-color: #220070;
    box-shadow: 0 0 0 3px rgba(34, 0, 112, 0.08);
}

.review-edit-field input[readonly] {
    background: #F3F4F6;
    color: #666666;
}

.review-edit-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #E5E7EB;
}

.review-edit-actions .admin-btn {
    min-width: 160px;
    padding: 13px 22px;
    background: #220070;
    color: #FFFFFF;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.review-edit-actions .admin-btn:hover {
    background: #3B1591;
}

@media (max-width: 700px) {

    #question-edit-container .review-edit-card {
        padding: 20px 16px;
    }

    .review-edit-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .review-edit-actions .admin-btn {
        width: 100%;
    }

}

.lesson-content h3.lesson-heading-h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
}


