:root {
    --bct-blue: #0a58ca;
    --bct-red: #c2252f;
    --bct-dark: #1c2430;
    --bct-bg: #f3f6fb;
    --bct-border: #e3e8f0;
    --bct-muted: #5b6779;
    --bct-radius: 12px;
    --bct-shadow: 0 2px 10px rgba(16, 42, 88, .06);
    --bct-shadow-hover: 0 10px 26px rgba(16, 42, 88, .12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: var(--bct-bg);
    color: #212a37;
    overflow-x: hidden;
}

a {
    color: var(--bct-blue);
}

/* ------------------------------------------------------------------ */
/* Brand                                                                 */
/* ------------------------------------------------------------------ */
.brand-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bct-blue) 50%, var(--bct-red) 50%);
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(10, 88, 202, .12);
}

.navbar-light {
    background: #fff !important;
}
.navbar-light .navbar-brand {
    color: var(--bct-dark) !important;
}
.navbar-light .nav-link {
    color: #3c4754;
    font-weight: 500;
    padding-inline: .9rem;
    border-radius: .5rem;
}
.navbar-light .nav-link:hover,
.navbar-light .nav-link.active {
    color: var(--bct-blue);
}
.navbar-dark .navbar-brand {
    color: #fff !important;
}
.navbar-dark .nav-link {
    color: rgba(255, 255, 255, .88) !important;
}
.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: #fff !important;
}
.navbar-brand {
    min-width: 0;
}
.brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.02rem;
    letter-spacing: .2px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                              */
/* ------------------------------------------------------------------ */
.btn-primary {
    --bs-btn-bg: var(--bct-blue);
    --bs-btn-border-color: var(--bct-blue);
    --bs-btn-hover-bg: #0948a8;
    --bs-btn-hover-border-color: #0948a8;
    --bs-btn-active-bg: #0948a8;
    --bs-btn-active-border-color: #0948a8;
    --bs-btn-disabled-bg: var(--bct-blue);
    --bs-btn-disabled-border-color: var(--bct-blue);
    font-weight: 600;
}
.btn-outline-primary {
    --bs-btn-color: var(--bct-blue);
    --bs-btn-border-color: var(--bct-blue);
    --bs-btn-hover-bg: var(--bct-blue);
    --bs-btn-hover-border-color: var(--bct-blue);
    --bs-btn-active-bg: var(--bct-blue);
    --bs-btn-active-border-color: var(--bct-blue);
    font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Cards                                                                */
/* ------------------------------------------------------------------ */
.card {
    border: 1px solid var(--bct-border) !important;
    border-radius: var(--bct-radius);
    box-shadow: var(--bct-shadow);
    background: #fff;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid var(--bct-border) !important;
    padding: .95rem 1.15rem;
    border-radius: var(--bct-radius) var(--bct-radius) 0 0 !important;
}
.card-header.bg-white {
    background: #fff !important;
}
.card-body {
    padding: 1.15rem;
}
.card.hoverable:hover {
    box-shadow: var(--bct-shadow-hover);
    transform: translateY(-2px);
    transition: transform .15s ease, box-shadow .15s ease;
}

/* ------------------------------------------------------------------ */
/* Tables                                                               */
/* ------------------------------------------------------------------ */
.table {
    --bs-table-hover-bg: #f5f8ff;
}
.table thead th {
    background: #f3f6fb;
    color: #45536a;
    font-weight: 600;
    border-bottom: 1px solid var(--bct-border) !important;
    white-space: nowrap;
}
.table td {
    vertical-align: middle;
}
.table-stack-sm td:first-child {
    color: #6b7890;
}
.table tbody tr {
    border-top-color: #edf1f7;
}

/* ------------------------------------------------------------------ */
/* Badges                                                               */
/* ------------------------------------------------------------------ */
.badge {
    font-weight: 600;
    padding: .42em .62em;
    border-radius: 50rem;
}
.badge.text-bg-light {
    background: #eef3fb !important;
    color: #2b3a54;
    border: 1px solid #dbe4f2;
}
.badge.text-bg-secondary {
    background: #5b6779 !important;
}
.badge.text-bg-success {
    background: #14804a !important;
}
.badge.text-bg-warning {
    background: #f5b301 !important;
    color: #4a3400 !important;
}
.badge.text-bg-danger {
    background: #c2252f !important;
}

/* ------------------------------------------------------------------ */
/* Forms                                                                */
/* ------------------------------------------------------------------ */
.form-control {
    border-color: #cfd8e6;
    border-radius: .55rem;
}
.form-control:focus {
    border-color: var(--bct-blue);
    box-shadow: 0 0 0 .2rem rgba(10, 88, 202, .12);
}
.input-group-lg .form-control {
    border-radius: .7rem 0 0 .7rem;
}
.input-group-lg .btn {
    border-radius: 0 .7rem .7rem 0;
    padding-inline: 1.2rem;
}

/* ------------------------------------------------------------------ */
/* Alerts                                                               */
/* ------------------------------------------------------------------ */
.alert {
    border-radius: var(--bct-radius);
    border: 0;
}

/* ------------------------------------------------------------------ */
/* Breadcrumb                                                           */
/* ------------------------------------------------------------------ */
.breadcrumb {
    background: #fff;
    border: 1px solid var(--bct-border);
    border-radius: var(--bct-radius);
    padding: .6rem 1rem;
    font-size: .86rem;
}

/* ------------------------------------------------------------------ */
/* Search hero                                                          */
/* ------------------------------------------------------------------ */
.hero {
    background: linear-gradient(135deg, #0a58ca 0%, #0d6efd 55%, #3fa0ff 100%);
    border-radius: 20px;
    color: #fff;
    padding: 2.4rem 1.6rem;
    box-shadow: 0 14px 34px rgba(10, 88, 202, .25);
}
.hero .input-group {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */
footer {
    background: #fff;
    border-top: 1px solid var(--bct-border);
}
footer a {
    color: #5b6779;
}
footer a:hover {
    color: var(--bct-blue);
}
footer .list-unstyled a {
    display: inline-block;
    padding: .08rem 0;
}

/* ------------------------------------------------------------------ */
/* Tabs                                                                 */
/* ------------------------------------------------------------------ */
.nav-tabs .nav-link {
    color: #46536a;
    font-weight: 500;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: .7rem 1rem;
}
.nav-tabs .nav-link:hover {
    color: var(--bct-blue);
    border-color: transparent;
}
.nav-tabs .nav-link.active {
    color: var(--bct-blue);
    background: transparent;
    border-bottom-color: var(--bct-blue);
    font-weight: 600;
}
.nav-tabs {
    border-bottom: 1px solid var(--bct-border);
}
.tab-content {
    border: 1px solid var(--bct-border) !important;
    border-top: 0;
    border-radius: 0 0 var(--bct-radius) var(--bct-radius);
}

/* ------------------------------------------------------------------ */
/* Misc                                                                 */
/* ------------------------------------------------------------------ */
.shadow-sm {
    box-shadow: var(--bct-shadow) !important;
}
img.object-fit-cover {
    object-fit: cover;
}
.text-primary {
    color: var(--bct-blue) !important;
}
.breadcrumb {
    margin-bottom: .75rem;
}

/* ------------------------------------------------------------------ */
/* Responsive helpers */
/* ------------------------------------------------------------------ */
.scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scroll-x::-webkit-scrollbar {
    display: none;
}

.nav-chips .nav-link {
    white-space: nowrap;
    color: #3c4754;
    border: 1px solid var(--bct-border);
    border-radius: 50rem;
    padding: .34rem 1rem;
    background: #fff;
}
.nav-chips .nav-link.active {
    background: var(--bct-blue);
    border-color: var(--bct-blue);
    color: #fff;
}

@media (max-width: 575.98px) {
    .table-stack-sm,
    .table-stack-sm tbody,
    .table-stack-sm tr,
    .table-stack-sm td {
        display: block;
        width: 100%;
    }
    .table-stack-sm tr {
        padding: .4rem 0;
        border-bottom: 1px dashed #e7ecf3;
    }
    .table-stack-sm tr:last-child {
        border-bottom: 0;
    }
    .table-stack-sm td {
        border: 0 !important;
        padding: .1rem .75rem;
    }
    .table-stack-sm td:first-child {
        color: #6b7890;
        font-size: .82rem;
        padding-top: .4rem;
    }
    .table-stack-sm td:last-child {
        font-weight: 600;
        word-break: break-word;
        padding-bottom: .4rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        max-width: calc(100vw - 70px);
    }
    .brand-text {
        display: inline-block;
        vertical-align: middle;
        max-width: 100%;
    }
}

/* ------------------------------------------------------------------ */
/* Lock area (thong tin bi khoa khi chua dang nhap / xac thuc OTP)      */
/* ------------------------------------------------------------------ */
.lock-area {
    position: relative;
    border: 1px dashed #cbd5e1;
    border-radius: .75rem;
    padding: 1rem;
    background: #f8fafc;
}
.lock-blur {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: .9rem;
}
.lock-bar {
    height: .7rem;
    border-radius: .5rem;
    background: #d7e0ea;
    filter: blur(2px);
}
.lock-msg {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    color: #49566b;
    font-weight: 500;
}