/* =========================================================
   ASSESSMENT QUESTIONS
   FULL MASTER CSS
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.aq-page {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    color: #172033;

    box-sizing: border-box;
}

.aq-page *,
.aq-page *::before,
.aq-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   BACK BUTTON
   POSISI DI LUAR HERO
========================================================= */

.aq-back-wrapper {
    width: 100%;

    display: flex;
    align-items: center;

    margin: 0 0 14px 0;
}

.aq-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 0 15px;



    color: #334155;

    font-size: 11px;
    font-weight: 800;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;



    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.aq-back-button:hover {
    border-color: #93c5fd;

    background: #eff6ff;

    color: #2563eb;

    transform: translateX(-1px);

    box-shadow:
        0 5px 14px rgba(37, 99, 235, .08);
}


/* =========================================================
   HERO
========================================================= */

.aq-hero {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 175px;

    margin: 0 0 22px 0;

    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
   HANYA GARIS TIPIS
   TIDAK ADA BULATAN BIRU BESAR PADAT
========================================================= */

.aq-hero::before {
    content: "";

    position: absolute;

    top: -115px;
    right: 70px;

    width: 235px;
    height: 235px;

    border: 1px solid rgba(96, 165, 250, .06);

    border-radius: 50%;

    background: transparent;

    pointer-events: none;
}

.aq-hero::after {
    content: "";

    position: absolute;

    right: -105px;
    bottom: -140px;

    width: 290px;
    height: 290px;

    border: 1px solid rgba(96, 165, 250, .07);

    border-radius: 50%;

    background: transparent;

    pointer-events: none;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.aq-hero-content {
    position: relative;
    z-index: 2;

    min-width: 0;

    max-width: 650px;
}


/* =========================================================
   HERO EYEBROW
========================================================= */

.aq-eyebrow {
    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
========================================================= */

.aq-hero h2 {
    margin: 0;

    color: #ffffff;

    font-size: 30px;
    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -.025em;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.aq-hero p {
    margin: 8px 0 0;

    color: #cbd5e1;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.5;
}


/* =========================================================
   HERO ACTION
========================================================= */

.aq-hero-actions {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;

    flex-shrink: 0;

    margin-left: 25px;
}


/* =========================================================
   BUTTON BASE
========================================================= */

.aq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 15px;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 800;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


/* =========================================================
   WHITE BUTTON
========================================================= */

.aq-btn-white {
    min-width: 125px;

    border: 1px solid rgba(255, 255, 255, .9);

    background: #ffffff;

    color: #172033;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, .14);
}

.aq-btn-white:hover {
    background: #eff6ff;

    color: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 9px 22px rgba(0, 0, 0, .16);
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.aq-btn-primary {
    border: 1px solid #1d4ed8;

    background: #2563eb;

    color: #ffffff;

    box-shadow:
        0 6px 16px rgba(37, 99, 235, .16);
}

.aq-btn-primary:hover {
    border-color: #1e40af;

    background: #1d4ed8;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .22);
}


/* =========================================================
   PLUS
========================================================= */

.aq-plus {
    margin-right: 5px;

    color: #2563eb;

    font-size: 17px;
    font-weight: 800;

    line-height: 1;
}

.aq-plus-white {
    margin-right: 6px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;

    line-height: 1;
}


/* =========================================================
   ASSESSMENT CARD
========================================================= */

.aq-assessment-card {
    position: relative;

    width: 100%;

    margin: 0 0 25px 0;

    padding: 25px 27px;

    border: 1px solid #e1e7ef;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, .035);
}


/* =========================================================
   ASSESSMENT TOP
========================================================= */

.aq-assessment-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}


/* =========================================================
   SECTION LABEL
========================================================= */

.aq-section-label {
    display: block;

    margin-bottom: 6px;

    color: #2563eb;

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: .12em;
}


/* =========================================================
   ASSESSMENT TITLE
========================================================= */

.aq-assessment-top h3 {
    margin: 0;

    color: #172033;

    font-size: 20px;
    font-weight: 800;

    line-height: 1.25;
}


/* =========================================================
   ASSESSMENT STATUS
========================================================= */

.aq-status {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    min-height: 28px;

    padding: 0 10px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    line-height: 1;

    white-space: nowrap;
}

.aq-status-dot {
    display: block;

    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: currentColor;
}


/* DRAFT */

.aq-status.draft {
    background: #fff7ed;

    color: #c2410c;
}


/* ACTIVE */

.aq-status.active {
    background: #ecfdf5;

    color: #047857;
}


/* COMPLETED */

.aq-status.completed {
    background: #eff6ff;

    color: #1d4ed8;
}


/* CANCELLED */

.aq-status.cancelled {
    background: #fef2f2;

    color: #b91c1c;
}


/* =========================================================
   INFO GRID
========================================================= */

.aq-info-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 0;

    padding-top: 20px;

    border-top: 1px solid #edf1f5;
}


/* =========================================================
   INFO ITEM
========================================================= */

.aq-info-item {
    min-width: 0;

    padding: 0 20px;

    border-right: 1px solid #edf1f5;
}

.aq-info-item:first-child {
    padding-left: 0;
}

.aq-info-item:last-child {
    padding-right: 0;

    border-right: none;
}


/* =========================================================
   INFO LABEL
========================================================= */

.aq-info-item span {
    display: block;

    margin-bottom: 7px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: .04em;
}


/* =========================================================
   INFO VALUE
========================================================= */

.aq-info-item strong {
    display: block;

    overflow: hidden;

    color: #334155;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.3;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* =========================================================
   TOTAL NUMBER
========================================================= */

.aq-info-item strong.aq-total-number {
    color: #2563eb;
}

.aq-total-number small {
    color: #64748b;

    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.aq-section-heading {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: 100%;

    margin: 0 0 13px 0;

    padding: 2px 0 2px 14px;
}


/* LEFT BLUE LINE */

.aq-section-heading::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 3px;
    height: 100%;

    border-radius: 4px;

    background: #2563eb;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.aq-section-title {
    color: #172033;

    font-size: 17px;
    font-weight: 800;

    line-height: 1.3;
}


/* =========================================================
   SECTION DESCRIPTION
========================================================= */

.aq-section-heading p {
    margin: 4px 0 0;

    color: #94a3b8;

    font-size: 11px;
    font-weight: 400;

    line-height: 1.4;
}


/* =========================================================
   QUESTION COUNT
========================================================= */

.aq-question-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 29px;

    padding: 0 10px;

    border: 1px solid #dbe5f1;
    border-radius: 8px;

    background: #f8fafc;

    color: #2563eb;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   TABLE CARD
========================================================= */

.aq-table-card {
    position: relative;

    width: 100%;

    overflow: hidden;

    border: 1px solid #e1e7ef;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, .035);
}


/* =========================================================
   TABLE TOP
========================================================= */

.aq-table-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 19px 22px;

    border-bottom: 1px solid #edf1f5;

    background: #ffffff;
}

.aq-table-top strong {
    display: block;

    margin-bottom: 3px;

    color: #263248;

    font-size: 13px;
    font-weight: 800;

    line-height: 1.3;
}

.aq-table-top span {
    display: block;

    color: #94a3b8;

    font-size: 10px;

    line-height: 1.4;
}


/* =========================================================
   TABLE WRAPPER
========================================================= */

.aq-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


/* =========================================================
   TABLE
========================================================= */

.aq-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: auto;
}


/* =========================================================
   TABLE HEADER
========================================================= */

.aq-table thead th {
    height: 46px;

    padding: 0 16px;

    border-bottom: 1px solid #e8edf3;

    background: #f8fafc;

    color: #7b8798;

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: .08em;

    text-align: left;

    white-space: nowrap;
}


/* =========================================================
   TABLE BODY
========================================================= */

.aq-table tbody td {
    padding: 15px 16px;

    border-bottom: 1px solid #edf1f5;

    color: #334155;

    font-size: 11px;

    vertical-align: middle;
}

.aq-table tbody tr:last-child td {
    border-bottom: none;
}

.aq-table tbody tr {
    transition:
        background .15s ease;
}

.aq-table tbody tr:hover {
    background: #fafcff;
}


/* =========================================================
   COLUMN WIDTH
========================================================= */

.aq-col-no {
    width: 70px;
}

.aq-col-order {
    width: 85px;
}

.aq-col-type {
    width: 145px;
}

.aq-col-status {
    width: 120px;
}

.aq-col-action {
    width: 100px;
}


/* =========================================================
   NUMBER
========================================================= */

.aq-number-cell {
    text-align: center;
}

.aq-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 29px;
    height: 29px;

    border-radius: 8px;

    background: #eef4ff;

    color: #2563eb;

    font-size: 10px;
    font-weight: 800;

    line-height: 1;
}


/* =========================================================
   ORDER
========================================================= */

.aq-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 29px;
    height: 29px;

    padding: 0 8px;

    border: 1px solid #e2e8f0;
    border-radius: 7px;

    background: #f8fafc;

    color: #475569;

    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   QUESTION
========================================================= */

.aq-question-cell {
    min-width: 300px;
    max-width: 600px;
}

.aq-question-cell strong {
    display: block;

    color: #263248;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.5;
}


/* =========================================================
   QUESTION TYPE
========================================================= */

.aq-type {
    display: inline-flex;
    align-items: center;

    min-height: 27px;

    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;
}


/* =========================================================
   QUESTION STATUS
========================================================= */

.aq-question-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    min-height: 27px;

    padding: 0 9px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    white-space: nowrap;
}

.aq-question-status > span {
    display: block;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: currentColor;
}


/* ACTIVE */

.aq-question-status.active {
    background: #ecfdf5;

    color: #047857;
}


/* INACTIVE */

.aq-question-status.inactive {
    background: #f1f5f9;

    color: #64748b;
}


/* =========================================================
   ACTION
========================================================= */

.aq-actions {
    display: flex;
    align-items: center;

    gap: 6px;

    white-space: nowrap;
}

.aq-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 31px;

    padding: 0 10px;

    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;
}

.aq-action-button:hover {
    border-color: #93c5fd;

    background: #eff6ff;

    color: #2563eb;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.aq-empty {
    min-height: 310px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 45px 25px;

    text-align: center;
}


/* =========================================================
   EMPTY ICON
========================================================= */

.aq-empty-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 50%;

    background: #eef4ff;

    color: #2563eb;

    font-size: 19px;
    font-weight: 800;

    line-height: 1;
}

.aq-empty-icon span {
    color: #2563eb;

    font-size: 20px;
    font-weight: 800;
}


/* =========================================================
   EMPTY TITLE
========================================================= */

.aq-empty h3 {
    margin: 0;

    color: #263248;

    font-size: 17px;
    font-weight: 800;

    line-height: 1.3;
}


/* =========================================================
   EMPTY DESCRIPTION
========================================================= */

.aq-empty p {
    max-width: 430px;

    margin: 7px 0 18px;

    color: #94a3b8;

    font-size: 11px;

    line-height: 1.55;
}


/* =========================================================
   EMPTY PAGE
========================================================= */

.aq-empty-page {
    min-height: 350px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 40px;

    text-align: center;
}

.aq-empty-page h3 {
    margin: 0;

    color: #263248;

    font-size: 17px;
    font-weight: 800;
}

.aq-empty-page p {
    margin: 7px 0 18px;

    color: #94a3b8;

    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .aq-info-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        row-gap: 20px;
    }

    .aq-info-item {
        border-right: none;
    }

    .aq-info-item:nth-child(odd) {
        padding-left: 0;
    }

    .aq-info-item:nth-child(even) {
        padding-right: 0;
    }

    .aq-info-item:nth-child(-n + 2) {
        padding-bottom: 0;
    }

    .aq-hero {
        gap: 20px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .aq-hero {
        align-items: flex-start;

        flex-direction: column;

        min-height: auto;

        padding: 25px;
    }

    .aq-hero-actions {
        width: 100%;

        margin-left: 0;
    }

    .aq-hero-actions .aq-btn {
        width: auto;
    }

    .aq-section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .aq-question-count {
        align-self: flex-start;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .aq-back-wrapper {
        margin-bottom: 12px;
    }

    .aq-back-button {
        min-height: 36px;

        padding: 0 12px;

        font-size: 10px;
    }

    .aq-hero {
        min-height: auto;

        padding: 22px;

        border-radius: 13px;
    }

    .aq-hero h2 {
        font-size: 25px;
    }

    .aq-hero p {
        font-size: 12px;
    }

    .aq-hero-actions {
        width: 100%;
    }

    .aq-hero-actions .aq-btn {
        width: 100%;
    }

    .aq-assessment-card {
        padding: 20px;
    }

    .aq-assessment-top {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .aq-info-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .aq-info-item,
    .aq-info-item:first-child,
    .aq-info-item:last-child {
        padding: 0;

        border-right: none;
    }

    .aq-section-title {
        font-size: 16px;
    }

    .aq-table-top {
        padding: 17px;
    }

}


/* =========================================================
   EXTRA SMALL
========================================================= */

@media (max-width: 420px) {

    .aq-hero {
        padding: 20px;
    }

    .aq-hero h2 {
        font-size: 23px;
    }

    .aq-assessment-top h3 {
        font-size: 18px;
    }

    .aq-empty {
        min-height: 270px;

        padding: 35px 18px;
    }

}


/* =========================================================
   DARK MODE OVERRIDES - ASSESSMENT QUESTIONS
   ========================================================= */

html.theme-dark .aq-page {
    color: #cbd5e1;
}

html.theme-dark .aq-back-button {
    background: #172033 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

html.theme-dark .aq-back-button:hover {
    background: #1e293b !important;
    color: #ffffff !important;
}

html.theme-dark .aq-hero {
    background: linear-gradient(135deg, #020617 0%, #0b1730 52%, #172554 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.theme-dark .aq-add-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

html.theme-dark .aq-card,
html.theme-dark .aq-stat-card,
html.theme-dark .aq-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 .aq-stat-icon {
    background: rgba(30, 41, 59, 0.8) !important;
    color: #60a5fa !important;
}

html.theme-dark .aq-stat-content span {
    color: #94a3b8 !important;
}

html.theme-dark .aq-stat-content strong {
    color: #f8fafc !important;
}

html.theme-dark .aq-table-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .aq-section-title,
html.theme-dark .aq-assessment-top h3 {
    color: #f8fafc !important;
}

html.theme-dark .aq-table thead th {
    background: #0a1122 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #818cf8 !important;
}

html.theme-dark .aq-table tbody td {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}

html.theme-dark .aq-table tbody tr:hover td {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #ffffff !important;
}

html.theme-dark .aq-action-btn,
html.theme-dark .aq-action-icon {
    background: #172033 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

html.theme-dark .aq-action-btn:hover,
html.theme-dark .aq-action-icon:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}