:root,
[data-bs-theme="light"] {
    --brand-primary-hex: #0F172A;
    --brand-primary-rgb: 15, 23, 42;
    --brand-secondary-hex: #F4B400;
    --brand-secondary-rgb: 244, 180, 0;
    --brand-accent-hex: #F4B400;
    --brand-accent-rgb: 244, 180, 0;
    --brand-neutral-hex: #46525E;
    --brand-neutral-rgb: 70, 82, 94;
    --brand-secondary-pale-hex: #FFF3CD;
    --brand-card-border: rgba(var(--brand-primary-rgb), .08);
    --brand-card-shadow: 0 6px 18px rgba(var(--brand-primary-rgb), .06);
    --brand-hover-shadow: 0 10px 28px rgba(var(--brand-primary-rgb), .1);
}

body {
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #24313d;
    background-color: #f8fafb;
}

a {
    color: var(--brand-neutral-hex);
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

a:hover,
a:focus {
    color: var(--brand-accent-hex);
}

.app-topbar .topbar-link,
.app-topbar .topbar-page-title,
.app-topbar .topbar-page-subtitle,
.app-topbar .topbar-user-text,
.app-topbar .topbar-user-text small {
    color: #fff !important;
}

.app-topbar .sidenav-toggle-button {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}

.app-topbar .sidenav-toggle-button:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.sidenav-menu {
    background: #fff !important;
    color: var(--brand-primary-hex) !important;
    border-right: 1px solid rgba(var(--brand-primary-rgb), .08);
    box-shadow: 0 8px 28px rgba(var(--brand-primary-rgb), .08) !important;
}

.sidenav-menu .logo {
    border-bottom: 1px solid rgba(var(--brand-primary-rgb), .08) !important;
}

.side-nav {
    padding-bottom: 5px !important;
}

.side-nav-title {
    color: #8a96a3 !important;
}

.side-nav-link {
    border-radius: 10px;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
    color: #607081 !important;
}

.side-nav-link:hover {
    background: rgba(var(--brand-secondary-rgb), 0.08);
    color: var(--brand-primary-hex) !important;
}

.side-nav-link.active {
    background: rgba(var(--brand-secondary-rgb), 0.16);
    color: var(--brand-primary-hex) !important;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(var(--brand-secondary-rgb), 0.22);
}

.side-nav-link.active .menu-icon,
.side-nav-link.active i,
.side-nav-link:hover .menu-icon,
.side-nav-link:hover i {
    color: var(--brand-secondary-hex) !important;
}

.page-title-head,
.page-title-box {
    margin-bottom: 1.5rem;
}

.page-title,
.page-title-head h4 {
    color: var(--brand-primary-hex);
    font-weight: 700;
}

.page-subtitle {
    color: #6f7c88;
}

.content-page .container-fluid {
    max-width: 100%;
}

.card {
    border: 1px solid var(--brand-card-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--brand-card-shadow);
}

.card:hover {
    box-shadow: var(--brand-hover-shadow);
}

.alert {
    border-radius: 12px;
    border: 1px solid rgba(var(--brand-primary-rgb), .08);
}

.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all .2s ease;
}

.btn-sm {
    border-radius: 8px;
}

.btn-primary {
    background-color: var(--brand-primary-hex) !important;
    border-color: var(--brand-primary-hex) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-accent-hex) !important;
    border-color: var(--brand-accent-hex) !important;
    color: #fff !important;
}

.btn-secondary {
    background-color: var(--brand-secondary-hex) !important;
    border-color: var(--brand-secondary-hex) !important;
    color: #5c4300 !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #ffd54f !important;
    border-color: #ffd54f !important;
    color: #4b3600 !important;
}

.btn-light,
.btn-default {
    background: #fff !important;
    border-color: #e9edf1 !important;
    color: var(--brand-primary-hex) !important;
}

.btn-light:hover,
.btn-default:hover {
    background: var(--brand-secondary-pale-hex) !important;
    border-color: rgba(var(--brand-secondary-rgb), .35) !important;
    color: var(--brand-primary-hex) !important;
}

.form-control,
.form-select,
.select2-container .select2-selection--single .select2-selection__rendered {
    border-radius: 10px !important;
    border-color: #d9e0e6 !important;
    box-shadow: none !important;
    min-height: 42px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--brand-secondary-rgb), .6) !important;
    box-shadow: 0 0 0 .18rem rgba(var(--brand-secondary-rgb), .14) !important;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(var(--brand-primary-rgb), .015);
    --bs-table-hover-bg: rgba(var(--brand-secondary-rgb), .06);
    vertical-align: middle;
}

.table thead th,
.table > :not(caption) > * > th {
    font-size: .79rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6f7c88;
    border-bottom-width: 1px;
    border-color: #e9edf1;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.table > :not(caption) > * > td {
    padding-top: .95rem;
    padding-bottom: .95rem;
    border-color: #eef2f6;
}

.badge {
    border-radius: 999px;
    font-weight: 600;
}

.dropdown-menu {
    border-radius: 14px;
    border: 1px solid rgba(var(--brand-primary-rgb), .08);
    box-shadow: 0 16px 40px rgba(var(--brand-primary-rgb), .12);
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 2px;
    border-color: #e5e7eb;
    color: var(--brand-primary-hex);
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-primary-hex);
    border-color: var(--brand-primary-hex);
}
