body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fb;
    color: #1f2933;
    min-height: 100vh;
}

.layout-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff 0%, #f9fafb 50%, #eef2ff 100%);
}

.dashboard-wrapper {
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 210px;
    background: #ffffff;
    border-right: 1px solid #e4e9f2;
    padding: 1rem 0.75rem;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #4f46e5;
    color: #fff;
    font-weight: 700;
}

.brand-name {
    font-weight: 600;
    font-size: 1rem;
}

.dashboard-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    color: #475569;
    border-radius: 0.65rem;
    transition: all 0.2s ease-in-out;
}

.dashboard-sidebar .nav-link:hover {
    background-color: rgba(79, 70, 229, 0.08);
    color: #3730a3;
}

.dashboard-sidebar .nav-link.active {
    background-color: #4f46e5;
    color: #ffffff;
}

.dashboard-sidebar .nav-icon {
    font-size: 1.1rem;
}

.dashboard-main {
    background-color: #f2f4f8;
}

.dashboard-topbar {
    padding: 0.85rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-content {
    padding: 1.4rem 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: #ffffff;
    border-radius: 0.85rem;
    padding: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.1);
}

.stat-card .label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-card .value {
    font-size: 1.55rem;
    font-weight: 700;
    color: #1d1f2f;
}

.card {
    border: none;
    border-radius: 0.85rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.card .card-body {
    padding: 1.1rem 1.35rem;
}

.card-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    border-bottom: none;
    background: #f8fafc;
}

.table tbody td {
    vertical-align: middle;
    border-top-color: #f1f5f9;
}

.form-control,
.form-select {
    border-radius: 0.6rem;
    border-color: #d0d6e0;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
    border-radius: 0.6rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
}

.btn-outline-secondary {
    border-radius: 0.6rem;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
}

.dashboard-metrics .col {
    display: flex;
}

.metric-card {
    background: #ffffff;
    flex: 1 1 auto;
    border-radius: 0.8rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.metric-sub {
    font-size: 0.8rem;
    color: #94a3b8;
}

.dashboard-section .card {
    height: 100%;
    border-radius: 0.9rem;
}

.dashboard-section .card-body > .table-responsive {
    margin: 0 -0.35rem;
}

.list-group-flush .list-group-item {
    padding: 0.55rem 0;
    border: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.list-group-flush .list-group-item:last-child {
    border-bottom: none;
}

.auth-wrapper {
    max-width: 460px;
    width: 100%;
}

.auth-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.auth-card h1 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.badge-soft {
    background-color: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

.row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.row.g-4 + .row.g-4 {
    margin-top: 1.25rem;
}

@media (max-width: 992px) {
    .dashboard-sidebar {
        display: none;
    }

    .dashboard-topbar {
        padding: 0.85rem 1rem;
    }

    .dashboard-content {
        padding: 1.15rem;
        max-width: 100%;
    }
}
