/* ================= GLOBAL BASE ================= */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: #f8f9fa;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden !important;
}

label {
    font-size: 14px;
}

/* mencegah zoom mobile */
input,
select,
textarea {
    font-size: 16px;
}

/* ================= TABLE ================= */

table {
    width: 100%;
    table-layout: fixed;
}

th,
td {
    font-size: 13px;
}

#scoreTable th,
#scoreTable td {
    text-align: center;
    vertical-align: middle;
}

td {
    white-space: nowrap;
}

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

.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    background: #1e1e2f;
    color: #fff;
    z-index: 1040;
    padding: 20px 0;
    transition: 0.3s;
}

.sidebar a {
    color: #cfd3ec;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-size: 14px;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.sidebar .active {
    background: rgba(255, 255, 255, .12);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1030;
}

.main-content {
    margin-left: 240px;
    padding: 30px;
}

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

.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

/* ================= BUTTON ================= */

.btn-primary {
    background: #1f6feb;
    border: none;
}

.btn-primary:hover {
    background: #1a5ed8;
}

/* ================= TABLE DETAIL ================= */

#scoreTable tbody tr {
    cursor: pointer;
}

#scoreTable tbody tr:hover {
    background: #f1f3f5;
}

.detail-cell small {
    display: block;
    font-size: 11px;
}

.detail-date,
.tr-date td {
    background: #eef1f4;
    font-weight: 600;
    font-size: 13px;
}

.detail-date {
    text-align: center;
}

.tr-date td {
    text-align: left;
    padding: 6px 12px;
}

/* ================= MODAL ================= */

.modal {
    z-index: 1200;
}

#detailModal .modal-dialog {
    max-width: 900px;
}

#detailTable th,
#detailTable td {
    white-space: normal;
    vertical-align: top;
}

#scoreModal .modal-dialog {
    max-width: 720px;
}

#scoreModal .modal-content {
    max-height: 90vh;
}

#scoreModal .modal-body {
    overflow-y: auto;
}

.custom-evaluate-modal {
    max-width: 720px;
}

/* ================= PRICE CARD ================= */

.price-card {
    border-radius: 12px;
}

.price-card small {
    font-size: 11px;
    letter-spacing: .5px;
}

.price-card .fw-bold {
    font-size: 18px;
}

/* ================= ERROR ICON ================= */

.error-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    background: #ffe5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

/* ================= LOGIN ================= */

.login-card {
    width: 100%;
    max-width: 400px;
    margin: 100px auto 0;
}

.failed {
    background-color: #fff3f3;
}

/* ================= FILTER COMPONENT ================= */


.filter-row .form-select,
.filter-row .btn,
    /* ===== SELECT2 COMPACT HEIGHT ===== */

.select2-container--default .select2-selection--single {
    height: 34px;
    padding: 2px 4px;
}

.select2-container--default .select2-selection__rendered {
    line-height: 30px;
    font-size: 14px;
}

.select2-container--default .select2-selection__arrow {
    height: 34px;
}

/* select2 width mengikuti parent */

.select2-container {
    width: 100% !important;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .custom-evaluate-modal {
        max-width: 600px;
    }

    td {
        white-space: normal;
    }
}

@media (max-width: 576px) {

    .custom-evaluate-modal {
        max-width: 95%;
        margin: 1rem auto;
    }

    #scoreModal ul li {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .price-card {
        padding: 16px !important;
    }

    .price-card .fw-bold {
        font-size: 20px;
    }

    #scoreModal .modal-title {
        font-size: 16px;
    }

    #modalConfidenceLabel {
        font-size: 13px;
    }

    #scoreModal .progress {
        height: 6px !important;
    }
}