/* =========================================================
    DASHBOARD
========================================================= */

.cbt-dashboard {
    width: 100%;
    min-height: 100vh;
    padding: 25px 20px 70px;
}

.cbt-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

/* =========================================================
    HEADER
========================================================= */

.cbt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.cbt-brand {
    display: flex;
    align-items: center;
}

.cbt-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
}

.cbt-brand-title {
    margin: 0;
    color: #173d78;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
}

.cbt-brand-subtitle {
    margin-top: 3px;
    color: #929eaf;
    font-size: 9px;
}

/* =========================================================
    LOGOUT
========================================================= */

.cbt-logout {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #65758b !important;
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 9px;
    font-size: 9.5px;
    font-weight: 600;
    transition: all .2s ease;
}

.cbt-logout i {
    margin-right: 6px;
    font-size: 9px;
}

.cbt-logout:hover {
    color: #315fbd !important;
    background: #f8faff;
    border-color: #cfddf3;
    transform: translateY(-1px);
}



/* =========================================================
   WELCOME CARD
========================================================= */

.cbt-welcome {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    height: clamp(200px, 20vw, 200px);
    margin-bottom: 30px;
    padding: 28px 30px;
    display: flex;
    align-items: stretch;
    color: #fff;
    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(91, 184, 255, .28),
            transparent 30%
        ),
        radial-gradient(
            circle at 35% 110%,
            rgba(61, 141, 255, .22),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #174b9a 0%,
            #1765c5 45%,
            #348bea 100%
        );

    border-radius: 22px;

    box-shadow:
        0 18px 45px rgba(31, 82, 150, .18);

    isolation: isolate;
}


/* =========================================================
   CONTENT
========================================================= */

.cbt-welcome-content {
    position: relative;
    z-index: 5;

    width: 58%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    overflow: hidden;
}


/* =========================================================
   SCHOOL LABEL
========================================================= */

.cbt-welcome-label {
    display: inline-flex;
    align-items: center;

    max-width: 100%;

    margin-bottom: 10px;
    padding: 6px 11px;

    color: rgba(255, 255, 255, .9);

    background: rgba(255, 255, 255, .10);

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 30px;

    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .7px;
    line-height: 1;

    text-transform: uppercase;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cbt-welcome-label i {
    flex-shrink: 0;

    font-size: 9px;
    color: rgba(255, 255, 255, .9);
}


/* =========================================================
   TITLE
========================================================= */

.cbt-welcome-title {
    margin: 0;

    max-width: 100%;

    color: #fff;

    font-size: clamp(18px, 2vw, 25px);
    font-weight: 600;
    line-height: 1.25;

    letter-spacing: -.3px;
}

.cbt-welcome-title span:not(.cbt-welcome-wave) {
    color: #7ed8ff;

    font-weight: 700;
}

.cbt-welcome-wave {
    display: inline-block;

    margin-left: 3px;

    font-size: .8em;

    transform-origin: 70% 70%;
}


/* =========================================================
   EMAIL
========================================================= */

.cbt-welcome-email {
    display: flex;
    align-items: center;

    max-width: 100%;

    gap: 7px;

    margin-top: 7px;

    color: rgba(255, 255, 255, .78);

    font-size: 10px;
    line-height: 1.4;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cbt-welcome-email i {
    flex-shrink: 0;

    font-size: 9px;
    opacity: .9;
}


/* =========================================================
   RESULT BUTTON
========================================================= */

.cbt-result-button {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    width: 145px;
    height: 36px;

    margin-top: 15px;
    padding: 0 12px;

    flex-shrink: 0;

    color: #fff !important;

    background: rgba(255, 255, 255, .14);

    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 10px;

    font-size: 10px;
    font-weight: 600;

    text-decoration: none !important;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, .08);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.cbt-result-button span {
    display: inline-flex;
    align-items: center;

    gap: 7px;
}

.cbt-result-button i:first-child {
    font-size: 10px;
}

.cbt-result-arrow {
    font-size: 9px;

    transition: transform .2s ease;
}

.cbt-result-button:hover {
    color: #fff !important;

    background: rgba(255, 255, 255, .23);

    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(0, 0, 0, .12);
}

.cbt-result-button:hover .cbt-result-arrow {
    transform: translateX(3px);
}


/* =========================================================
   VISUAL AREA
========================================================= */

.cbt-welcome-visual {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: 47%;

    z-index: 2;

    pointer-events: none;
}


/* =========================================================
   STUDENT 3D
========================================================= */

.cbt-student-image {
    position: absolute;

    right: 15px;
    bottom: -10px;

    width: clamp(170px, 24vw, 160px);
    max-width: 100%;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 18px 20px rgba(0, 35, 90, .18)
        );

    z-index: 4;
}


/* =========================================================
   FLOATING ICON
========================================================= */

.cbt-floating-icon {
    position: absolute;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;

    background: rgba(255, 255, 255, .17);

    border: 1px solid rgba(255, 255, 255, .20);

    border-radius: 13px;

    box-shadow:
        0 12px 25px rgba(0, 35, 90, .10);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    z-index: 5;
}

.cbt-floating-check {
    top: 65px;
    left: 230px;
    width: 42px;
    height: 42px;
    font-size: 13px;
    transform: rotate(-7deg);
}

.cbt-floating-book {
    top: 30px;
    right: 25px;

    width: 40px;
    height: 40px;

    font-size: 13px;

    transform: rotate(8deg);
}


/* =========================================================
   BACKGROUND GLOW
========================================================= */

.cbt-welcome-glow {
    position: absolute;

    width: 350px;
    height: 350px;

    right: 100px;
    top: -180px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .07);

    filter: blur(1px);

    z-index: 0;
}


/* =========================================================
   DECORATIVE CIRCLES
========================================================= */

.cbt-welcome-circle {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, .07);

    z-index: 1;
}

.cbt-welcome-circle-1 {
    width: 240px;
    height: 240px;

    right: -100px;
    bottom: -140px;
}

.cbt-welcome-circle-2 {
    width: 140px;
    height: 140px;

    right: 150px;
    top: -90px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .cbt-welcome {
        height: 180px;
        min-height: 180px;
        padding: 24px 25px;
        border-radius: 19px;
    }

    .cbt-welcome-content {
        width: 57%;
    }

    .cbt-welcome-visual {
        width: 46%;
    }

    .cbt-welcome-title {
        font-size: 20px;
    }

    .cbt-welcome-label {
        font-size: 8px;
        padding: 6px 10px;
    }

    .cbt-welcome-email {
        font-size: 9px;
    }

    .cbt-result-button {
        width: 135px;
        height: 34px;

        margin-top: 13px;

        font-size: 9.5px;
    }

    .cbt-student-image {
        width: 150px;
        right: -5px;
        bottom: -8px;
    }

    .cbt-floating-check {
        width: 38px;
        height: 38px;
        left: 170px;
        font-size: 12px;
    }

    .cbt-floating-book {
        width: 36px;
        height: 36px;

        right: 10px;

        font-size: 11px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .cbt-welcome {
        height: 150px;
        min-height: 150px;
        margin-bottom: 20px;
        padding: 20px 18px;

        border-radius: 17px;
    }

    /*
     * Tetap horizontal:
     * kiri = text
     * kanan = siswa
     */
    .cbt-welcome-content {
        width: 60%;
    }

    .cbt-welcome-visual {
        width: 43%;
    }

    .cbt-welcome-label {
        margin-bottom: 7px;

        padding: 5px 9px;

        font-size: 7px;
        letter-spacing: .5px;
    }

    .cbt-welcome-label i {
        font-size: 7px;
    }

    .cbt-welcome-title {
        max-width: 100%;

        font-size: 17px;
        line-height: 1.2;
    }

    .cbt-welcome-email {
        max-width: 100%;

        margin-top: 6px;

        font-size: 8px;
    }

    .cbt-result-button {
        width: 120px;
        height: 32px;

        margin-top: 11px;
        padding: 0 10px;

        border-radius: 9px;

        font-size: 8.5px;
    }

    .cbt-result-button span {
        gap: 5px;
    }

    .cbt-result-button i:first-child {
        font-size: 8px;
    }

    .cbt-result-arrow {
        font-size: 8px;
    }

    .cbt-student-image {
        width: 130px;
        right: -20px;
        bottom: -8px;
    }

    /*
     * Icon tetap ada tetapi diperkecil
     */
    .cbt-floating-check {
        width: 31px;
        height: 31px;

        top: 42px;
        left: 10px;

        border-radius: 9px;

        font-size: 10px;
    }

    .cbt-floating-book {
        display: none;
    }

    .cbt-welcome-circle-1 {
        width: 190px;
        height: 190px;

        right: -100px;
        bottom: -120px;
    }

    .cbt-welcome-circle-2 {
        width: 110px;
        height: 110px;

        right: 60px;
        top: -70px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .cbt-welcome {
        height: 135px;
        min-height: 135px;

        padding: 17px 15px;

        border-radius: 15px;
    }

    .cbt-welcome-content {
        width: 61%;
    }

    .cbt-welcome-visual {
        width: 43%;
    }

    .cbt-welcome-label {
        max-width: 95%;

        margin-bottom: 6px;

        padding: 5px 8px;

        font-size: 6.5px;
    }

    .cbt-welcome-title {
        font-size: 15px;
    }

    .cbt-welcome-email {
        margin-top: 5px;

        font-size: 7.5px;
    }

    .cbt-result-button {
        width: 108px;
        height: 29px;

        margin-top: 9px;

        padding: 0 9px;

        font-size: 7.5px;
    }

    .cbt-result-button span {
        gap: 4px;
    }

    .cbt-result-button i:first-child {
        font-size: 7px;
    }

    .cbt-result-arrow {
        font-size: 7px;
    }

    .cbt-student-image {
        width: 110px;
        right: -25px;
        bottom: -6px;
    }

    .cbt-floating-check {
        width: 27px;
        height: 27px;

        top: 34px;
        left: -2px;

        border-radius: 8px;

        font-size: 8px;
    }
}

/* ------------------------------------------------------------ */

/* =========================================================
    SECTION TITLE
========================================================= */

.cbt-section-heading {
    margin-bottom: 17px;
    text-align: center;
}

.cbt-section-title {
    position: relative;
    display: inline-block;
    margin: 0;
    color: #263c59;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.cbt-section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 25px;
    height: 2px;
    transform: translateX(-50%);
    background:
        linear-gradient(
            90deg,
            #3568c4,
            #5a88d7
        );
    border-radius: 10px;
}

.cbt-section-subtitle {
    margin: 10px 0 0;
    color: #9aa6b6;
    font-size: 9px;
}

/* =========================================================
    TRYOUT CARD
========================================================= */

.cbt-tryout-card {
    height: 100%;
    padding: 18px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 15px;
    box-shadow:
        0 6px 20px rgba(37, 69, 115, .04);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.cbt-tryout-card:hover {
    transform: translateY(-2px);
    border-color: #d6e1f2;
    box-shadow:
        0 12px 27px rgba(37, 69, 115, .075);
}

.cbt-tryout-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cbt-tryout-main {
    display: flex;
    align-items: center;
    min-width: 0;
}

.cbt-tryout-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #376bc8;
    background: #eef4ff;
    border-radius: 11px;
    font-size: 14px;
}

.cbt-tryout-title {
    margin: 0 0 4px;
    color: #293f5c;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.35;
}

.cbt-tryout-subtitle {
    margin: 0;
    color: #929eae;
    font-size: 8.8px;
}

.cbt-status {
    flex-shrink: 0;
    padding: 4px 8px;
    color: #3177b6;
    background: #edf7ff;
    border-radius: 20px;
    font-size: 7.8px;
    font-weight: 600;
}

/* =========================================================
    TRYOUT DETAILS
========================================================= */

.cbt-tryout-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding: 11px 0;
    margin: 15px 0 13px;
    border-top: 1px solid #f0f3f7;
    border-bottom: 1px solid #f0f3f7;
}

.cbt-detail {
    display: flex;
    align-items: center;
    color: #758398;
    font-size: 8.8px;
}

.cbt-detail i {
    width: 13px;
    margin-right: 5px;
    color: #6286c7;
    text-align: center;
}

/* =========================================================
    TRYOUT FOOTER
========================================================= */

.cbt-tryout-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cbt-tryout-note {
    color: #a0abba;
    font-size: 8px;
    line-height: 1.45;
}

/* =========================================================
    START BUTTON
========================================================= */

.cbt-btn-start {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 12px;
    color: #fff !important;
    background:
        linear-gradient(
            135deg,
            #3568c6,
            #4d82db
        );
    border-radius: 8px;
    font-size: 8.8px;
    font-weight: 600;
    box-shadow:
        0 5px 12px rgba(55, 105, 198, .16);
    transition: all .2s ease;
}

.cbt-btn-start i {
    margin-left: 6px;
    font-size: 7px;
}

.cbt-btn-start:hover {
    transform: translateY(-1px);
    box-shadow:
        0 7px 16px rgba(55, 105, 198, .23);
}

/* =========================================================
    EMPTY RESULT
========================================================= */

.cbt-empty {
    padding: 35px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed #dce5f1;
    border-radius: 15px;
}

.cbt-empty-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #7894c2;
    background: #f3f6fb;
    border-radius: 12px;
    font-size: 15px;
}

.cbt-empty-title {
    margin: 0 0 4px;
    color: #53647c;
    font-size: 10.8px;
    font-weight: 600;
}

.cbt-empty-text {
    margin: 0;
    color: #9ba7b6;
    font-size: 8.5px;
}

/* =========================================================
    TABLET
========================================================= */

@media (max-width: 991.98px) {

    .cbt-dashboard {
        padding: 22px 17px 60px;
    }

}

/* =========================================================
    MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .cbt-dashboard {
        padding: 15px 12px 55px;
    }

    /* Header */

    .cbt-header {
        margin-bottom: 16px;
    }

    .cbt-logo {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }

    .cbt-brand-title {
        font-size: 12.5px;
    }

    .cbt-brand-subtitle {
        font-size: 8px;
    }

    .cbt-logout {
        height: 32px;
        padding: 0 10px;
        font-size: 9px;
    }

    .cbt-logout i {
        margin-right: 5px;
    }


    /* Section */

    .cbt-section-heading {
        margin-bottom: 14px;
    }

    .cbt-section-title {
        font-size: 12.5px;
    }

    .cbt-section-subtitle {
        font-size: 8.5px;
    }

    /* Tryout */

    .cbt-tryout-card {
        padding: 14px;
        border-radius: 13px;
    }

    .cbt-tryout-title {
        font-size: 10.8px;
    }

    .cbt-tryout-subtitle {
        font-size: 8.2px;
    }

    .cbt-status {
        padding: 3px 7px;
        font-size: 7px;
    }

    .cbt-tryout-details {
        gap: 7px 13px;
        margin: 12px 0;
        padding: 10px 0;
    }

    .cbt-detail {
        font-size: 8px;
    }

    .cbt-tryout-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }

    .cbt-tryout-note {
        font-size: 7.8px;
    }

    .cbt-btn-start {
        width: 100%;
        min-height: 34px;
        font-size: 8.8px;
    }

}

/* =========================================================
    SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .cbt-dashboard {
        padding-left: 10px;
        padding-right: 10px;
    }

    .cbt-brand-subtitle {
        display: none;
    }

    .cbt-brand-title {
        font-size: 11.5px;
    }

    .cbt-logout {
        padding: 0 8px;
    }

    .cbt-status {
        display: none;
    }
}



/* =========================================================
   CBT TEST CARD - SIMPLE
========================================================= */

.cbt-test-card {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 82px;
    padding: 14px 15px 14px 18px;
    background: #fff;
    border-top: 1px solid #dce4ef;
    border-bottom: 1px solid #dce4ef;
    border-right: 1px solid #dce4ef;
    border-left: 3px solid #0fb37e;
    border-radius: 5px;
    box-shadow: 0 2px 7px rgba(35, 65, 110, .04);
    transition: all .2s ease;
}



/* Content */

.cbt-test-content {
    flex: 1;
    min-width: 0;
}


/* Header */

.cbt-test-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}


/* Nama mapel */

.cbt-test-title {
    min-width: 0;
    margin: 0;
    color: #234478;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */

.cbt-test-meta {
    display: flex;
    align-items: center;

    color: #8997aa;

    font-size: 7.5px;

    white-space: nowrap;
}

.cbt-test-meta span {
    display: inline-flex;
    align-items: center;
}

.cbt-test-meta i {
    margin-right: 4px;

    color: #5181df;

    font-size: 7px;
}

.cbt-test-dot {
    margin: 0 7px;

    color: #c5cfdd;

    font-size: 8px;
}

/* Card hover */

.cbt-test-card:hover {
    border-color: #cbd9ee;
    box-shadow: 0 5px 14px rgba(35, 65, 110, .07);
    transform: translateY(-1px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .cbt-test-card {
        min-height: 76px;

        padding: 12px 12px 12px 15px;
    }

    .cbt-test-title {
        font-size: 10px;
    }

    .cbt-test-status {
        font-size: 7px;
    }

    .cbt-test-meta {
        font-size: 7px;

        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cbt-test-meta i {
        font-size: 6px;
    }

    .cbt-test-dot {
        margin: 0 5px;
    }
}


/* =========================================================
   EXTRA SMALL
========================================================= */

@media (max-width: 380px) {

    .cbt-test-card {
        padding-right: 9px;
    }

    .cbt-test-status {
        display: none;
    }

    .cbt-test-meta {
        font-size: 6.5px;
    }

    .cbt-test-dot {
        margin: 0 4px;
    }
}