﻿.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    color: var(--text-sidebar);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 8px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-brand h5 {
    color: #fff;
    font-weight: 700;
}

.sidebar-brand small {
    color: #9ca3af;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-sidebar);
    padding: 12px 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .nav-link-custom:hover {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 32px;
}

.page-title {
    color: var(--text-main);
    font-weight: 700;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.content-area {
    padding: 30px 32px;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 22px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .kpi-card:hover {
        transform: translateY(-3px);
    }

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.kpi-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.chart-container {
    position: relative;
    height: 360px;
}

@media (max-width: 991px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .topbar,
    .content-area {
        padding-left: 20px;
        padding-right: 20px;
    }
}
