:root {
    --bg-primary: #0f172a;
    --bg-secondary: #111827;
    --bg-card: #ffffff;
    --bg-soft: #f4f7fb;
    --accent: #f97316;
    --accent-2: #0ea5e9;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
}

body.app-body {
    font-family: "Manrope", sans-serif;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 45%),
        radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.15), transparent 40%),
        #eef2f7;
    color: var(--text-dark);
    min-height: 100vh;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 270px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #e2e8f0;
    padding: 28px 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Space Grotesk", sans-serif;
}

.brand-mark {
    background: var(--accent);
    color: #fff;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-logo img {
    width: 100%;
    border-radius: 14px;
    background: #0b1220;
    padding: 12px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav .nav-link {
    color: #cbd5f5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link i {
    width: 20px;
}

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

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: transparent;
}

.page-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-muted);
    margin: 0;
}

.topbar-actions .btn {
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.4);
}

.app-content {
    padding: 0 32px 32px;
}

.card-kpi {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 20px;
}

.card-kpi h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.card-kpi .kpi-value {
    font-size: 28px;
    font-weight: 700;
}

.card-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.card-panel .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-soft);
    padding: 16px 20px;
    font-weight: 600;
}

.card-panel .card-body {
    padding: 20px;
}

.table-modern {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table-modern tbody tr {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.table-modern tbody td {
    border-top: none;
    padding: 14px 16px;
    vertical-align: middle;
}

.badge-soft {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
    font-weight: 600;
}

.auth-body {
    font-family: "Manrope", sans-serif;
    background: radial-gradient(circle at top, rgba(249, 115, 22, 0.25), transparent 55%),
        #0f172a;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    width: min(480px, 90%);
}

.auth-card {
    background: #111827;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.auth-brand h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    margin: 0;
}

.auth-card .form-control,
.auth-card .form-check-input {
    background: #0b1220;
    border: 1px solid #1f2937;
    color: #e2e8f0;
}

.auth-card .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-bar .form-control,
.filter-bar .form-select {
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-soft);
}

@media (max-width: 992px) {
    .app-shell {
        flex-direction: column;
    }
    .app-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .app-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
