:root {
    --sidebar-width: 240px;
    --brand-color: #6f4e37;
    --brand-color-dark: #4b3220;
}

body {
    background-color: #f4f5f7;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.auth-body {
    background: linear-gradient(135deg, #6f4e37, #3f2a1d);
}

.auth-card {
    width: 100%;
    max-width: 380px;
    border: none;
    border-radius: 14px;
}

.auth-logo {
    font-size: 2.5rem;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--brand-color-dark);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1030;
    transition: transform 0.2s ease;
}

.sidebar-brand {
    padding: 1.1rem 1.25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 0.5rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.92rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-link.active {
    background: var(--brand-color);
    color: #fff;
    font-weight: 600;
}

.main-area {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    min-width: 0;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.content {
    padding: 1.5rem;
}

.kpi-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.kpi-card .kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.kpi-card .kpi-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-area {
        margin-left: 0;
    }
}
