/* =========================================================
   BANK SOAL
   QUESTIONS PAGE
========================================================= */

.questions-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #172033;
    box-sizing: border-box;
}

.questions-page *,
.questions-page *::before,
.questions-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.questions-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;

    margin: 0 0 15px 2px;

    font-size: 11px;
    font-weight: 600;
}

.questions-breadcrumb a {
    color: #64748b;
    text-decoration: none;

    transition: color .18s ease;
}

.questions-breadcrumb a:hover {
    color: #2563eb;
}

.questions-breadcrumb span {
    color: #cbd5e1;
    font-size: 13px;
}

.questions-breadcrumb strong {
    color: #334155;
}


/* =========================================================
   HERO
========================================================= */

.questions-hero {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 175px;

    margin-bottom: 22px;
    padding: 30px 32px;

    overflow: hidden;

    border: 1px solid #172554;
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #020617 0%,
            #0b1730 52%,
            #172554 100%
        );

    box-shadow:
        0 10px 28px rgba(15, 23, 42, .14);
}


/* =========================================================
   HERO DECORATION
========================================================= */

.questions-hero::before {
    content: "";

    position: absolute;

    top: -110px;
    right: 80px;

    width: 230px;
    height: 230px;

    border: 1px solid rgba(96, 165, 250, .07);

    border-radius: 50%;

    background: transparent;

    pointer-events: none;
}

.questions-hero::after {
    content: "";

    position: absolute;

    right: -100px;
    bottom: -135px;

    width: 280px;
    height: 280px;

    border: 1px solid rgba(96, 165, 250, .08);

    border-radius: 50%;

    background: transparent;

    pointer-events: none;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.questions-hero-content {
    position: relative;
    z-index: 2;

    min-width: 0;

    max-width: 650px;
}


/* =========================================================
   HERO LABEL
========================================================= */

.questions-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 9px;

    padding: 6px 10px;

    border: 1px solid rgba(96, 165, 250, .20);
    border-radius: 6px;

    background: rgba(37, 99, 235, .12);

    color: #60a5fa;

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: .12em;
}


/* =========================================================
   HERO TITLE
========================================================= */

.questions-hero h2 {
    margin: 0;

    color: #ffffff;

    font-size: 30px;
    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -.025em;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.questions-hero p {
    margin: 8px 0 0;

    color: #cbd5e1;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   ADD BUTTON
========================================================= */

.questions-add-button {
    position: relative;
    z-index: 5;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 125px;
    min-height: 41px;

    padding: 0 16px;

    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 8px;

    background: #ffffff;

    color: #172033;

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;

    white-space: nowrap;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, .14);

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.questions-add-button span {
    margin-right: 5px;

    color: #2563eb;

    font-size: 17px;
    font-weight: 800;
}

.questions-add-button:hover {
    background: #eff6ff;

    color: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 9px 22px rgba(0, 0, 0, .16);
}


/* =========================================================
   STATISTICS
========================================================= */

.questions-summary {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

    width: 100%;

    margin-bottom: 24px;
}


/* =========================================================
   STAT CARD
========================================================= */

.questions-stat-card {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 120px;

    padding: 20px;

    overflow: hidden;

    border: 1px solid #e1e7ef;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, .035);
}


/* TOP LINE */

.questions-stat-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: #2563eb;
}

.questions-stat-card:nth-child(2)::before {
    background: #10b981;
}

.questions-stat-card:nth-child(3)::before {
    background: #94a3b8;
}


/* =========================================================
   STAT ICON
========================================================= */

.questions-stat-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin-right: 15px;

    border-radius: 12px;

    background: #eef4ff;

    color: #2563eb;

    font-size: 17px;
    font-weight: 800;
}

.questions-stat-icon.active {
    background: #ecfdf5;
    color: #059669;
}

.questions-stat-icon.inactive {
    background: #f1f5f9;
    color: #64748b;
}


/* =========================================================
   STAT CONTENT
========================================================= */

.questions-stat-content {
    min-width: 0;
}

.questions-stat-content span {
    display: block;

    margin-bottom: 6px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: .1em;
}

.questions-stat-content strong {
    display: block;

    color: #172033;

    font-size: 27px;
    font-weight: 800;

    line-height: 1;
}


/* =========================================================
   TABLE CARD
========================================================= */

.questions-table-card {
    position: relative;

    width: 100%;

    overflow: hidden;

    border: 1px solid #dfe6ef;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, .035);
}


/* =========================================================
   TABLE CARD HEADER
========================================================= */

.questions-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 23px 25px 20px;

    border-bottom: 1px solid #edf1f5;
}


/* =========================================================
   SECTION LABEL
========================================================= */

.questions-section-label {
    display: block;

    margin-bottom: 6px;

    color: #2563eb;

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: .11em;
}


/* =========================================================
   TABLE TITLE
========================================================= */

.questions-table-header h3 {
    margin: 0;

    color: #172033;

    font-size: 19px;
    font-weight: 800;

    line-height: 1.25;
}


/* =========================================================
   TABLE DESCRIPTION
========================================================= */

.questions-table-header p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 11px;

    line-height: 1.4;
}


/* =========================================================
   TOTAL BADGE
========================================================= */

.questions-total-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    min-height: 31px;

    padding: 0 11px;

    border: 1px solid #dbe5f1;
    border-radius: 8px;

    background: #f8fafc;

    color: #1d4ed8;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;
}

.questions-total-badge span {
    color: #64748b;

    font-size: 9px;
    font-weight: 600;
}


/* =========================================================
   TABLE WRAPPER
========================================================= */

.questions-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


/* =========================================================
   TABLE
========================================================= */

.questions-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: auto;
}


/* =========================================================
   TABLE HEADER
========================================================= */

.questions-table thead th {
    height: 48px;

    padding: 0 17px;

    border-bottom: 1px solid #e9eef4;

    background: #f8fafc;

    color: #7b8798;

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: .08em;

    text-align: left;

    white-space: nowrap;
}


/* =========================================================
   TABLE BODY
========================================================= */

.questions-table tbody td {
    padding: 16px 17px;

    border-bottom: 1px solid #edf1f5;

    color: #334155;

    font-size: 11px;

    vertical-align: middle;
}

.questions-table tbody tr:last-child td {
    border-bottom: none;
}

.questions-table tbody tr {
    transition: background .15s ease;
}

.questions-table tbody tr:hover {
    background: #fafcff;
}


/* =========================================================
   COLUMN WIDTH
========================================================= */

.questions-table .col-number {
    width: 70px;
}

.questions-table .col-type {
    width: 150px;
}

.questions-table .col-status {
    width: 125px;
}

.questions-table .col-action {
    width: 175px;
}


/* =========================================================
   NUMBER
========================================================= */

.question-number-cell {
    text-align: center;
}

.questions-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 8px;

    background: #eef4ff;

    color: #2563eb;

    font-size: 10px;
    font-weight: 800;

    line-height: 1;
}


/* =========================================================
   QUESTION
========================================================= */

.questions-question-cell {
    min-width: 280px;
    max-width: 650px;
}

.questions-question-cell strong {
    display: block;

    color: #263248;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.5;
}

.questions-question-cell small {
    display: block;

    margin-top: 4px;

    color: #94a3b8;

    font-size: 9px;

    line-height: 1.3;
}


/* =========================================================
   TYPE
========================================================= */

.questions-type {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 0 9px;

    border: 1px solid #dbe5f1;
    border-radius: 7px;

    background: #f8fafc;

    color: #475569;

    font-size: 9px;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;
}


/* =========================================================
   STATUS
========================================================= */

.questions-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    min-height: 28px;

    padding: 0 9px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    white-space: nowrap;
}

.questions-status i {
    display: block;

    width: 6px;
    height: 6px;

    border-radius: 50%;
}


/* ACTIVE */

.questions-status.active {
    background: #ecfdf5;

    color: #047857;
}

.questions-status.active i {
    background: #10b981;
}


/* INACTIVE */

.questions-status.inactive {
    background: #f1f5f9;

    color: #64748b;
}

.questions-status.inactive i {
    background: #94a3b8;
}


/* =========================================================
   ACTIONS
========================================================= */

.questions-actions {
    display: flex;
    align-items: center;

    gap: 6px;

    white-space: nowrap;
}


/* =========================================================
   DETAIL BUTTON
========================================================= */

.questions-action.detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;

    padding: 0 11px;

    border: 1px solid #dbe3ed;
    border-radius: 7px;

    background: #ffffff;

    color: #475569;

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    text-decoration: none;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.questions-action.detail:hover {
    border-color: #93c5fd;

    background: #eff6ff;

    color: #2563eb;
}


/* =========================================================
   ACTION ICON
========================================================= */

.questions-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border: 1px solid #dbe3ed;
    border-radius: 7px;

    background: #ffffff;

    color: #64748b;

    font-size: 12px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.questions-action-icon:hover {
    border-color: #93c5fd;

    background: #eff6ff;

    color: #2563eb;
}


/* STATUS ACTION */

.questions-action-icon.status:hover {
    border-color: #86efac;

    background: #f0fdf4;

    color: #15803d;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.questions-empty {
    min-height: 300px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 45px 25px;

    text-align: center;
}


/* =========================================================
   EMPTY ICON
========================================================= */

.questions-empty-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 13px;

    background: #eef4ff;

    color: #2563eb;

    font-size: 18px;
    font-weight: 800;
}


/* =========================================================
   EMPTY TITLE
========================================================= */

.questions-empty h3 {
    margin: 0;

    color: #263248;

    font-size: 17px;
    font-weight: 800;
}


/* =========================================================
   EMPTY DESCRIPTION
========================================================= */

.questions-empty p {
    max-width: 430px;

    margin: 7px 0 18px;

    color: #94a3b8;

    font-size: 11px;

    line-height: 1.55;
}


/* =========================================================
   EMPTY BUTTON
========================================================= */

.questions-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 39px;

    padding: 0 15px;

    border: 1px solid #1d4ed8;
    border-radius: 8px;

    background: #2563eb;

    color: #ffffff;

    font-size: 10px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.questions-empty-button:hover {
    background: #1d4ed8;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(37, 99, 235, .18);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .questions-summary {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .questions-stat-card {
        padding: 17px;
    }

    .questions-stat-icon {
        width: 43px;
        height: 43px;

        margin-right: 11px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .questions-hero {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;

        min-height: auto;

        padding: 25px;
    }

    .questions-add-button {
        align-self: flex-start;
    }

    .questions-summary {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .questions-breadcrumb {
        font-size: 10px;
    }

    .questions-hero {
        padding: 22px;

        border-radius: 13px;
    }

    .questions-hero h2 {
        font-size: 25px;
    }

    .questions-hero p {
        font-size: 12px;
    }

    .questions-add-button {
        width: 100%;
    }

    .questions-table-header {
        align-items: flex-start;

        flex-direction: column;

        padding: 20px;
    }

    .questions-total-badge {
        align-self: flex-start;
    }

    .questions-table thead th,
    .questions-table tbody td {
        padding-left: 13px;
        padding-right: 13px;
    }

    .questions-actions {
        flex-wrap: nowrap;
    }

}


/* =========================================================
   DARK MODE OVERRIDES - BANK SOAL
   ========================================================= */

html.theme-dark .questions-page {
    color: #cbd5e1;
}

/* Breadcrumb */
html.theme-dark .questions-breadcrumb a {
    color: #94a3b8 !important;
}

html.theme-dark .questions-breadcrumb a:hover {
    color: #60a5fa !important;
}

html.theme-dark .questions-breadcrumb span {
    color: #475569 !important;
}

html.theme-dark .questions-breadcrumb strong {
    color: #f8fafc !important;
}

/* Hero & Add Button */
html.theme-dark .questions-hero {
    background: linear-gradient(135deg, #070d19 0%, #0d1b38 52%, #13234e 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark .questions-add-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

html.theme-dark .questions-add-button span {
    color: #ffffff !important;
}

html.theme-dark .questions-add-button:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5) !important;
}

/* Summary Stat Cards */
html.theme-dark .questions-stat-card {
    background: #0d172e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

html.theme-dark .questions-stat-icon {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #60a5fa !important;
}

html.theme-dark .questions-stat-icon.active {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}

html.theme-dark .questions-stat-icon.inactive {
    background: rgba(148, 163, 184, 0.15) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    color: #94a3b8 !important;
}

html.theme-dark .questions-stat-content span {
    color: #94a3b8 !important;
}

html.theme-dark .questions-stat-content strong {
    color: #f8fafc !important;
}

/* Table Card Container */
html.theme-dark .questions-table-card {
    background: #0d172e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

html.theme-dark .questions-table-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .questions-section-label {
    color: #60a5fa !important;
}

html.theme-dark .questions-table-header h3 {
    color: #f8fafc !important;
}

html.theme-dark .questions-table-header p {
    color: #94a3b8 !important;
}

html.theme-dark .questions-total-badge {
    background: #172554 !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #818cf8 !important;
}

html.theme-dark .questions-total-badge span {
    color: #94a3b8 !important;
}

/* Table Elements */
html.theme-dark .questions-table thead th {
    background: #0a1122 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #818cf8 !important;
}

html.theme-dark .questions-table tbody td {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}

html.theme-dark .questions-table tbody tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.4) !important;
}

html.theme-dark .questions-table tbody tr:hover td {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #ffffff !important;
}

html.theme-dark .questions-number {
    background: #172554 !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    color: #818cf8 !important;
}

html.theme-dark .questions-question-cell strong {
    color: #f8fafc !important;
}

html.theme-dark .questions-question-cell small {
    color: #64748b !important;
}

html.theme-dark .questions-type {
    background: #172033 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

html.theme-dark .questions-status.active {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}

html.theme-dark .questions-status.inactive {
    background: rgba(148, 163, 184, 0.15) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    color: #94a3b8 !important;
}

/* Action Buttons */
html.theme-dark .questions-action.detail {
    background: #172033 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

html.theme-dark .questions-action.detail:hover {
    background: #2563eb !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

html.theme-dark .questions-action-icon {
    background: #172033 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

html.theme-dark .questions-action-icon:hover {
    background: #2563eb !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

html.theme-dark .questions-action-icon.status:hover {
    background: #059669 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

/* Empty State */
html.theme-dark .questions-empty h3 {
    color: #f8fafc !important;
}

html.theme-dark .questions-empty p {
    color: #94a3b8 !important;
}

html.theme-dark .questions-empty-icon {
    background: #172554 !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    color: #818cf8 !important;
}

html.theme-dark .questions-empty-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}