:root {
    --sidebar-width: 240px;
    --primary-color: #0f172a;
    --primary-accent: #2563eb;
    --background-color: #f5f7fb;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    margin: 0;
    color: #111827;
}

body.auth-body {
    background: linear-gradient(135deg, #2563eb 0%, #0f172a 100%);
}

.wrapper {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    color: #fff;
    padding: 2rem 1rem;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.sidebar-logo {
    font-size: 1.4rem;
    font-weight: 600;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li + li {
    margin-top: 0.75rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background-color: rgba(37, 99, 235, 0.35);
    color: #fff;
}

.sidebar-nav i {
    width: 18px;
    text-align: center;
}

.content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    background-color: var(--background-color);
}

.content-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.content-body {
    padding: 2rem;
}

.card {
    border-radius: 1rem;
}

.table thead {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-primary {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.badge {
    text-transform: capitalize;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 360px;
    width: 100%;
}

.bg-purple {
    background-color: #4f46e5 !important;
}

.bg-accent {
    background-color: var(--primary-accent) !important;
}

.text-accent {
    color: var(--primary-accent) !important;
}

.table thead.bg-accent th,
.table thead.bg-accent td {
    background-color: var(--primary-accent) !important;
    color: #ffffff !important;
    border-color: var(--primary-accent) !important;
    text-align: center;
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        padding: 1.5rem 1rem;
    }

    .content {
        margin-left: 0;
        width: 100%;
    }
}

.kpi-card {
    border-radius: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.kpi-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    border: 2px solid rgba(37, 99, 235, 0.05);
    pointer-events: none;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.kpi-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
}

.kpi-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.35rem;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.kpi-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0.35rem 0 0;
}
