/* =========================================================
   ASSESSMENT QUESTION ADD
   Tambah Soal Pusat ke Assessment
========================================================= */

.assessment-question-add-page {
    width: 100%;
    max-width: 100%;
    padding: 2px 0 40px;
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.aq-add-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
    padding: 24px 26px;

    border-radius: 18px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(63, 133, 210, .16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #071b38 0%,
            #0b2d5c 60%,
            #123f76 100%
        );

    box-shadow:
        0 10px 28px rgba(7, 27, 56, .14);

    position: relative;
    overflow: hidden;
}

.aq-add-header::after {
    content: "";

    position: absolute;

    width: 210px;
    height: 210px;

    right: -90px;
    bottom: -145px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.10);
}

.aq-add-header-left {
    position: relative;
    z-index: 2;

    min-width: 0;
}

.aq-eyebrow {
    margin-bottom: 6px;

    color: #82b5eb;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.aq-add-header h2 {
    margin: 0;

    color: #fff;

    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.aq-add-header p {
    margin: 7px 0 0;

    max-width: 650px;

    color: #b9cce2;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.aq-back-button {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    flex-shrink: 0;

    min-width: 92px;
    height: 39px;

    padding: 0 14px;

    border-radius: 9px;

    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);

    color: #fff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    backdrop-filter: blur(8px);

    transition: .2s ease;
}

.aq-back-button:hover {
    background: rgba(255,255,255,.18);

    transform: translateY(-1px);
}


/* =========================================================
   ALERT
========================================================= */

.assessment-alert {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 16px;
    padding: 13px 15px;

    border-radius: 11px;

    font-size: 11px;
    line-height: 1.5;
}

.assessment-alert.error {
    background: #fff1f1;
    border: 1px solid #f2d2d2;

    color: #b74c4c;
}

.assessment-alert.error::before {
    content: "!";

    width: 23px;
    height: 23px;
    flex: 0 0 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f9dcdc;
    color: #b74c4c;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   ASSESSMENT INFO CARD
========================================================= */

.aq-add-assessment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
    padding: 18px 21px;

    background: #fff;

    border: 1px solid #e5edf6;
    border-radius: 15px;

    box-shadow:
        0 5px 17px rgba(14, 43, 78, .045);
}

.aq-section-label {
    margin-bottom: 5px;

    color: #3977bb;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .9px;
    text-transform: uppercase;
}

.aq-add-assessment-card h3 {
    margin: 0;

    color: #183754;

    font-size: 16px;
    font-weight: 800;

    word-break: break-word;
}

.aq-add-assessment-card p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    margin: 5px 0 0;

    color: #8997a8;

    font-size: 10px;
}

.aq-add-assessment-card p span {
    color: #bdc6d0;
}

.aq-add-assessment-status {
    min-width: 85px;

    padding: 9px 13px;

    border-radius: 10px;

    background: #fff7e8;
    border: 1px solid #f5e0b8;

    text-align: center;
}

.aq-add-assessment-status span {
    display: block;

    margin-bottom: 3px;

    color: #a77a32;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .7px;
}

.aq-add-assessment-status strong {
    color: #b57919;

    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   MAIN CARD
========================================================= */

.aq-add-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #e5edf6;
    border-radius: 18px;

    box-shadow:
        0 6px 20px rgba(14, 43, 78, .05);
}


/* =========================================================
   CARD HEADER
========================================================= */

.aq-add-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 22px 23px;

    border-bottom: 1px solid #edf1f6;
}

.aq-add-card-header h3 {
    margin: 0;

    color: #183754;

    font-size: 17px;
    font-weight: 800;
}

.aq-add-card-header p {
    margin: 5px 0 0;

    color: #8997a8;

    font-size: 10px;
    line-height: 1.5;
}

.aq-add-counter {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 5px;

    padding: 8px 12px;

    border-radius: 9px;

    background: #f3f7fc;

    color: #7b8ea4;

    font-size: 9px;
    font-weight: 600;
}

.aq-add-counter strong {
    color: #1769d3;

    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   TOOLBAR
========================================================= */

.aq-add-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 14px 19px;

    background: #fbfcfe;

    border-bottom: 1px solid #edf1f6;
}

.aq-add-search {
    position: relative;

    flex: 1;
    min-width: 180px;
}

.aq-add-search > span {
    position: absolute;

    left: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: #7f94aa;

    font-size: 14px;

    pointer-events: none;
}

.aq-add-search input {
    width: 100%;
    height: 39px;

    box-sizing: border-box;

    padding: 0 13px 0 38px;

    border: 1px solid #dce5ef;
    border-radius: 9px;

    outline: none;

    background: #fff;

    color: #314b67;

    font-family: inherit;
    font-size: 11px;

    transition: .2s ease;
}

.aq-add-search input::placeholder {
    color: #a8b4c1;
}

.aq-add-search input:focus {
    border-color: #77a7d7;

    box-shadow:
        0 0 0 3px rgba(38,116,190,.07);
}

.aq-select-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 39px;

    padding: 0 13px;

    border: 1px solid #d9e3ed;
    border-radius: 9px;

    background: #0b2d5c;
    color: #fff;

    font-family: inherit;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    transition: .2s ease;
}

.aq-select-button:hover {
    background: #124477;

    transform: translateY(-1px);
}

.aq-select-button.secondary {
    background: #fff;

    color: #60758b;
}

.aq-select-button.secondary:hover {
    background: #f2f6fa;

    color: #315b82;
}


/* =========================================================
   QUESTION LIST
========================================================= */

.aq-add-question-list {
    max-height: 560px;

    overflow-y: auto;

    padding: 7px 14px;
}


/* Scrollbar */

.aq-add-question-list::-webkit-scrollbar {
    width: 6px;
}

.aq-add-question-list::-webkit-scrollbar-track {
    background: #f6f8fb;
}

.aq-add-question-list::-webkit-scrollbar-thumb {
    background: #ccd8e5;

    border-radius: 999px;
}

.aq-add-question-list::-webkit-scrollbar-thumb:hover {
    background: #aebfd1;
}


/* =========================================================
   QUESTION ITEM
========================================================= */

.aq-add-question-item {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin: 5px 0;
    padding: 15px 13px;

    border: 1px solid transparent;
    border-radius: 12px;

    background: #fff;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.aq-add-question-item:hover {
    background: #f8fbff;

    border-color: #dce9f7;

    box-shadow:
        0 4px 12px rgba(14,43,78,.045);
}


/* =========================================================
   CHECKBOX
========================================================= */

.aq-checkbox-wrap {
    position: relative;

    flex: 0 0 21px;

    width: 21px;
    height: 21px;

    margin-top: 1px;
}

.aq-checkbox-wrap input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.aq-custom-checkbox {
    width: 21px;
    height: 21px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1.5px solid #c8d5e3;
    border-radius: 6px;

    background: #fff;

    color: transparent;

    font-size: 11px;
    font-weight: 900;

    transition: .18s ease;
}


/* Checked */

.aq-checkbox-wrap input:checked + .aq-custom-checkbox {
    border-color: #1769d3;

    background: #1769d3;

    color: #fff;

    box-shadow:
        0 3px 8px rgba(23,105,211,.20);
}


/* Focus */

.aq-checkbox-wrap input:focus-visible + .aq-custom-checkbox {
    box-shadow:
        0 0 0 3px rgba(23,105,211,.13);
}


/* Selected item */

.aq-add-question-item:has(
    .aq-checkbox-wrap input:checked
) {
    background: #f3f8ff;

    border-color: #cfe1f5;
}


/* =========================================================
   QUESTION NUMBER
========================================================= */

.aq-add-question-number {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f0f4f8;

    color: #71859a;

    font-size: 9px;
    font-weight: 800;
}

.aq-add-question-item:has(
    .aq-checkbox-wrap input:checked
) .aq-add-question-number {
    background: #e3efff;

    color: #1769d3;
}


/* =========================================================
   QUESTION CONTENT
========================================================= */

.aq-add-question-content {
    min-width: 0;
    flex: 1;
}

.aq-add-question-content p {
    margin: 0;

    color: #314b67;

    font-size: 12px;
    line-height: 1.6;
    font-weight: 500;

    word-break: break-word;
}

.aq-add-question-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 8px;
}

.aq-add-question-meta span {
    display: inline-flex;
    align-items: center;

    padding: 4px 7px;

    border-radius: 5px;

    background: #f2f5f8;

    color: #73869a;

    font-size: 8px;
    font-weight: 700;
}

.aq-add-question-meta span.active {
    background: #eaf8f1;

    color: #25855c;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.aq-add-empty,
.aq-search-empty {
    min-height: 280px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 35px 20px;

    text-align: center;
}

.aq-search-empty {
    flex-direction: column;
}

.aq-empty-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 15px;

    background: #edf5ff;

    color: #1769d3;

    font-size: 17px;
    font-weight: 800;
}

.aq-add-empty h4,
.aq-search-empty h4 {
    margin: 0;

    color: #344f6b;

    font-size: 14px;
    font-weight: 800;
}

.aq-add-empty p,
.aq-search-empty p {
    max-width: 450px;

    margin: 6px auto 0;

    color: #8b99a8;

    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   FOOTER
========================================================= */

.aq-add-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 15px 19px;

    background: #fbfcfe;

    border-top: 1px solid #e9eff5;
}

.aq-selected-info {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #7d8fa3;

    font-size: 10px;
}

.aq-selected-info strong {
    min-width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 7px;

    border-radius: 7px;

    background: #e7f1ff;

    color: #1769d3;

    font-size: 11px;
    font-weight: 800;
}

.aq-add-footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.aq-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-width: 78px;
    height: 39px;

    padding: 0 13px;

    box-sizing: border-box;

    border: 1px solid #d9e3ed;
    border-radius: 9px;

    background: #fff;

    color: #61758a;

    text-decoration: none;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    transition: .2s ease;
}

.aq-secondary-button:hover {
    background: #f3f6fa;

    border-color: #cbd8e5;

    color: #365b7d;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.aq-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 150px;
    height: 39px;

    padding: 0 15px;

    border: 0;
    border-radius: 9px;

    background: #0b2d5c;
    color: #fff;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(11,45,92,.14);

    transition: .2s ease;
}

.aq-primary-button:hover:not(:disabled) {
    background: #124477;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(11,45,92,.19);
}

.aq-primary-button:disabled {
    background: #c9d3de;

    color: #f5f7fa;

    cursor: not-allowed;

    box-shadow: none;

    transform: none;
}

.aq-primary-button span {
    font-size: 11px;
}


/* =========================================================
   INLINE RETURN BUTTON
========================================================= */

.aq-add-page-return {
    margin-top: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .aq-add-header {
        padding: 21px;
    }

    .aq-add-header h2 {
        font-size: 21px;
    }

    .aq-add-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .aq-add-counter {
        align-self: flex-start;
    }

    .aq-add-toolbar {
        flex-wrap: wrap;
    }

    .aq-add-search {
        flex-basis: 100%;
        order: 1;
    }

    .aq-select-button {
        order: 2;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .assessment-question-add-page {
        padding-bottom: 25px;
    }


    .aq-add-header {
        align-items: flex-start;
        flex-direction: column;

        padding: 20px;

        border-radius: 15px;
    }

    .aq-add-header h2 {
        font-size: 19px;
    }

    .aq-add-header p {
        font-size: 10px;
    }

    .aq-back-button {
        width: 100%;
    }


    .aq-add-assessment-card {
        align-items: flex-start;
        flex-direction: column;

        padding: 16px;
    }

    .aq-add-assessment-status {
        width: 100%;
        box-sizing: border-box;
    }


    .aq-add-card {
        border-radius: 14px;
    }


    .aq-add-card-header {
        padding: 18px;
    }


    .aq-add-toolbar {
        padding: 12px;
    }

    .aq-select-button {
        flex: 1;
    }


    .aq-add-question-list {
        max-height: none;

        padding: 5px 9px;
    }


    .aq-add-question-item {
        gap: 9px;

        padding: 13px 9px;
    }


    .aq-add-question-number {
        display: none;
    }


    .aq-add-question-content p {
        font-size: 11px;
    }


    .aq-add-footer {
        align-items: stretch;
        flex-direction: column;

        padding: 14px;
    }


    .aq-selected-info {
        justify-content: center;
    }


    .aq-add-footer-actions {
        width: 100%;
    }


    .aq-secondary-button,
    .aq-primary-button {
        flex: 1;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .aq-add-header {
        padding: 17px;
    }

    .aq-add-card-header h3 {
        font-size: 15px;
    }

    .aq-add-toolbar {
        gap: 6px;
    }

    .aq-select-button {
        padding: 0 9px;

        font-size: 9px;
    }

    .aq-add-question-item {
        padding: 11px 7px;
    }

    .aq-custom-checkbox {
        width: 19px;
        height: 19px;
    }

    .aq-checkbox-wrap {
        flex-basis: 19px;

        width: 19px;
    }

    .aq-add-question-content p {
        font-size: 10px;
    }

}