.auth-body {
    background: #f5f6f8;
}

:root {
    --admin-accent: #2563eb;
    --admin-accent-strong: #1d4ed8;
    --admin-accent-soft: #dbeafe;
    --admin-cyan: #06b6d4;
    --admin-emerald: #10b981;
    --admin-amber: #f59e0b;
    --admin-rose: #f43f5e;
    --admin-ink: #0f172a;
    --admin-muted: #64748b;
    --admin-surface: #ffffff;
    --admin-surface-soft: #f8fbff;
    --admin-border: rgba(148, 163, 184, 0.18);
    --admin-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 26%),
        radial-gradient(circle at 86% 12%, rgba(6, 182, 212, 0.08), transparent 22%),
        linear-gradient(180deg, #f6f9ff 0%, #eef4ff 100%);
    color: var(--admin-ink);
}

#layout-wrapper,
.main-content,
.page-content {
    background: transparent;
}

#page-topbar {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.navbar-brand-box {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(6, 182, 212, 0.02));
}

.vertical-menu {
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 24%),
        linear-gradient(180deg, #0f172a 0%, #111827 52%, #0b1220 100%);
    box-shadow: 12px 0 40px rgba(2, 6, 23, 0.22);
}

.vertical-menu .navbar-brand-box {
    background: transparent;
}

#sidebar-menu ul li a {
    border-radius: 12px;
    color: rgba(226, 232, 240, 0.86);
    margin: 3px 10px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

#sidebar-menu ul li a:hover,
#sidebar-menu ul li a.active,
#sidebar-menu ul li.mm-active > a {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(6, 182, 212, 0.88));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
    color: #fff !important;
    transform: translateX(2px);
}

#sidebar-menu ul li a i,
#sidebar-menu ul li a span {
    transition: color .2s ease;
}

#sidebar-menu .sub-menu li a {
    background: rgba(255, 255, 255, 0.03);
    font-size: .92rem;
    margin-left: 18px;
}

.page-title-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(248, 251, 255, 0.96));
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    box-shadow: var(--admin-shadow);
    margin-bottom: 1.2rem;
    padding: 1.1rem 1.25rem !important;
}

.page-title-box .page-title,
.page-title-box h4,
.page-title-box .breadcrumb-item,
.page-title-box .breadcrumb-item.active {
    color: var(--admin-ink);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.98));
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    box-shadow: var(--admin-shadow);
    overflow: hidden;
}

.card-header {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    padding: 1rem 1.25rem;
}

.card-title,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: var(--admin-ink);
}

.btn {
    border-radius: 12px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--admin-accent-strong), var(--admin-cyan));
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #1e40af, #0891b2) !important;
    border-color: transparent !important;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26) !important;
}

.btn-outline-primary {
    border-color: rgba(37, 99, 235, 0.26);
    color: var(--admin-accent-strong);
}

.btn-outline-primary:hover {
    background: var(--admin-accent-soft);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--admin-accent-strong);
}

.table {
    --bs-table-bg: transparent;
}

.table thead th {
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
    border-bottom-width: 1px;
    color: #334155;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.table tbody tr {
    transition: background-color .18s ease, transform .18s ease;
}

.table tbody tr:hover {
    background: rgba(37, 99, 235, 0.04);
}

.table > :not(caption) > * > * {
    border-bottom-color: rgba(148, 163, 184, 0.14);
    padding: .9rem .95rem;
}

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.12);
}

.form-check-input:checked {
    background-color: var(--admin-accent-strong);
    border-color: var(--admin-accent-strong);
}

.badge {
    border-radius: 999px;
    font-weight: 700;
    padding: .42em .72em;
}

.alert {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.pagination .page-link {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #334155;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--admin-accent-strong), var(--admin-cyan));
    border-color: transparent;
}

.dropdown-menu {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.header-item.user {
    border-radius: 14px;
    transition: background-color .2s ease;
}

.header-item.user:hover {
    background: rgba(37, 99, 235, 0.06);
}

.auth-shell {
    background-image: url("../images/bg-auth.png");
    background-position: center;
    background-size: cover;
}

.auth-visual {
    align-items: center;
    background: linear-gradient(135deg, #1f58c7 0%, #173b86 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.auth-visual::after {
    background: rgba(255, 255, 255, 0.08);
    content: "";
    inset: 8%;
    position: absolute;
}

.auth-visual-content {
    margin: 0 auto;
    max-width: 620px;
    padding: 48px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.auth-illustration {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 420px;
}

.auth-form-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 20px;
}

.auth-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(19, 21, 22, 0.08);
    max-width: 440px;
    padding: 36px;
    width: 100%;
}

.metric-card .avatar-title {
    height: 48px;
    width: 48px;
}

.dashboard-chart {
    align-items: end;
    background: linear-gradient(180deg, rgba(31, 88, 199, 0.06), rgba(31, 88, 199, 0));
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(7, 1fr);
    height: 320px;
    padding: 24px;
}

.chart-bar {
    background: #1f58c7;
    border-radius: 6px 6px 0 0;
    height: var(--bar-height);
    min-height: 24px;
}

.activity-list {
    display: grid;
    gap: 22px;
}

.activity-item {
    align-items: flex-start;
    display: flex;
    gap: 14px;
}

.activity-dot {
    background: #1f58c7;
    border: 4px solid rgba(31, 88, 199, 0.15);
    border-radius: 50%;
    height: 18px;
    margin-top: 2px;
    width: 18px;
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 28px 22px;
    }

    .dashboard-chart {
        gap: 10px;
        height: 240px;
        padding: 16px;
    }
}
