:root {
    --bs-primary: #2563EB;
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: #2563EB;
    --sidebar-w: 220px;
    --sidebar-bg: #ffffff;
    --page-bg: #F8FAFC;
}
body {
    background: var(--page-bg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
.btn-primary {
    --bs-btn-bg: #2563EB;
    --bs-btn-border-color: #2563EB;
    --bs-btn-hover-bg: #1D4ED8;
    --bs-btn-hover-border-color: #1D4ED8;
    --bs-btn-active-bg: #1E40AF;
    --bs-btn-active-border-color: #1E40AF;
    --bs-btn-disabled-bg: #2563EB;
    --bs-btn-disabled-border-color: #2563EB;
}
.btn-outline-primary {
    --bs-btn-color: #2563EB;
    --bs-btn-border-color: #2563EB;
    --bs-btn-hover-bg: #2563EB;
    --bs-btn-hover-border-color: #2563EB;
    --bs-btn-hover-color: #ffffff;
}
.text-primary {
    color: #2563EB !important;
}
.admin-sidebar {
    width: var(--sidebar-w);
    color: #1f2937;
    background: var(--sidebar-bg);
    border-right: 1px solid #e5e7eb;
    --bs-offcanvas-width: var(--sidebar-w);
    --bs-offcanvas-bg: #ffffff;
    --bs-offcanvas-color: #1f2937;
}
@media (min-width: 992px) {
    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1030;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    .admin-main {
        margin-left: var(--sidebar-w);
    }
}
.admin-sidebar .brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
}
.admin-sidebar .sidebar-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}
.brand-accent {
    color: #2563EB;
}
.sidebar-nav {
    padding: .75rem;
    background: #ffffff;
}
.sidebar-nav .nav-heading {
    padding: .45rem .35rem;
    color: #94a3b8;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .2rem .75rem;
    margin-bottom: .15rem;
    border-radius: .5rem;
    color: #374151;
    font-size: .9rem;
    font-weight: 400;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.sidebar-nav .nav-link i {
    width: 1.2rem;
    color: #64748b;
    font-size: 1.05rem;
    text-align: center;
    transition: color .15s ease;
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: #EFF6FF;
    color: #1D4ED8;
}
.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link.active i {
    color: #1D4ED8;
}
.sidebar-nav .nav-link .badge {
    font-size: .65rem;
    font-weight: 500;
}
.sidebar-nav .js-logout {
    color: #374151;
}
.sidebar-nav .js-logout i {
    color: #64748b;
}
.sidebar-nav .js-logout:hover {
    background: #FEF2F2;
    color: #DC2626;
}
.sidebar-nav .js-logout:hover i {
    color: #DC2626;
}
.admin-sidebar .offcanvas-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}
.admin-sidebar .offcanvas-header .brand {
    padding: 0;
    border-bottom: 0;
}
.admin-sidebar .offcanvas-header .fw-bold {
    color: #111827 !important;
}
.admin-sidebar .offcanvas-header .btn-close {
    filter: none;
}
@media (max-width: 991.98px) {
    .admin-sidebar .offcanvas-header .sidebar-logo {
        width: 160px;
        height: 42px;
    }
}
.admin-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}
.avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2563EB;
    color: #ffffff;
    font-weight: 600;
}
.admin-content {
    max-width: 1500px;
}
.card {
    border-radius: .75rem;
}
.card-header {
    border-top-left-radius: .75rem !important;
    border-top-right-radius: .75rem !important;
}
.table > :not(caption) > * > * {
    padding: .7rem .85rem;
}
.table thead th {
    color: #64748b;
    font-size: .78rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.thumb {
    width: 56px;
    height: 36px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    border-radius: .35rem;
    background: #f1f5f9;
    cursor: zoom-in;
}
.thumb-lg {
    max-width: 260px;
    max-height: 160px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background: #f1f5f9;
    cursor: zoom-in;
}
.detail-table th {
    width: 220px;
}
.detail-table td {
    word-break: break-word;
}
.stat-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: .75rem;
    font-size: 1.35rem;
}
.min-w-0 {
    min-width: 0;
}
:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .45);
    outline-offset: 2px;
}
.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 1rem;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}
.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
}
.login-logo-img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: 80px;
    margin: 0 auto 12px;
    object-fit: contain;
}
.btn.is-loading {
    pointer-events: none;
    opacity: .85;
}