:root {
    --sidebar-width: 260px;
}

body {
    background-color: #f4f6f9;
}

/* ---------- Auth pages ---------- */
.auth-page {
    background: linear-gradient(135deg, #2e1a45 0%, #9c51a0 55%, #2e1a45 100%);
    min-height: 100vh;
}

.auth-card {
    border-radius: 1rem;
}

.auth-logo {
    font-size: 2.5rem;
    color: #0d6efd;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #2e1a45 0%, #9c51a0 150%) !important;
    color: #cfd8e3;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
    }
}

.sidebar-brand {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .nav-link {
    color: #cfd8e3;
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.15rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar .nav-link.active {
    background: rgba(200,200,200,0.15);
    color: #fff;
}

.sidebar-footer .nav-link:hover {
    background: rgba(220, 53, 69, 0.15);
}

/* ---------- Topbar & content ---------- */
.topbar {
    background: #fff;
    border-bottom: 1px solid #e3e6ea;
    height: 56px;
    z-index: 1020;
}

@media (min-width: 992px) {
    .topbar {
        margin-left: var(--sidebar-width);
    }

    .main-content {
        margin-left: var(--sidebar-width);
    }
}

.main-content {
    padding-top: 56px;
    min-height: 100vh;
}

/* ---------- Components ---------- */
.stat-card {
    border-radius: 0.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover,
.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08) !important;
}

.report-card {
    border-radius: 0.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.avatar-xl {
    width: 88px;
    height: 88px;
    font-size: 2.25rem;
}

.card {
    border-radius: 0.75rem;
}

.btn-primary {
    background-color: #9c51a0;
    border-color: unset;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: #7a3b7c !important;
    border-color: unset !important;
}
.form-control {
    background-color: var(--bs-tertiary-bg);
}
.form-control:focus {
    border-color: #9c51a0;
    box-shadow: 0 0 0 .25rem rgba(156, 81, 160, 0.4);
}
