:root {
    --app-bg: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #fbfcfe;
    --line: #e7ecf3;
    --text: #0f172a;
    --muted: #64748b;
    --sidebar-text: #334155;
    --sidebar-muted: #94a3b8;
    --primary: #2563eb;
    --primary-soft: #eaf1ff;
    --primary-soft-2: #f4f7ff;
    --success-soft: #eaf8ef;
    --danger-soft: #fff1f2;
    --warning-soft: #fff8e8;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, .05);
    --shadow-md: 0 18px 48px rgba(15, 23, 42, .08);
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

html, body {
    background: linear-gradient(180deg, #f8fafc 0%, #f5f7fb 100%);
    color: var(--text);
}

body {
    font-size: 0.96rem;
}

.sidebar {
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--line);
    box-shadow: inset -1px 0 0 rgba(255,255,255,.4);
}

.logo-circle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .12);
}

.text-sidebar-sub {
    color: var(--sidebar-muted) !important;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: .18s ease;
}

.sidebar .nav-link:hover {
    background: var(--primary-soft-2);
    color: var(--primary);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #eef4ff 0%, #e6efff 100%);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.08);
}

.main-area {
    min-height: 100vh;
}

.soft-card,
.filter-box,
.modal-content,
.login-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(231, 236, 243, .9);
    box-shadow: var(--shadow-sm);
}

.soft-card {
    border-radius: 24px;
}

.metric-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .10);
}

h1, h2, h3, h4, h5, h6,
.fw-bold {
    color: #0b1324;
}

.text-muted,
.form-text,
small {
    color: var(--muted) !important;
}

.table thead th,
.table tbody td {
    vertical-align: middle;
    font-size: 13px;
    white-space: nowrap;
    border-color: #eef2f7;
}

.table thead th {
    color: #475569;
    font-weight: 600;
    background: #f8fafc !important;
}

.table tbody tr:hover {
    background: #fbfdff;
}

.filter-box {
    border-radius: 22px;
    padding: 1rem;
}

.login-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.16), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
}

.login-card {
    border-radius: 28px;
    box-shadow: var(--shadow-md);
}

.form-section-title {
    font-size: .92rem;
    font-weight: 700;
    color: #334155;
    margin-top: 1rem;
}

.sidebar-nav .submenu-wrap {
    margin-top: -2px;
    margin-bottom: 8px;
}

.sidebar-nav .submenu-list {
    margin-left: 12px;
    padding-left: 10px;
    border-left: 1px solid #e8eef6;
}

.sidebar .submenu-link {
    padding: 10px 12px;
    margin-bottom: 6px;
    font-size: .94rem;
    color: #64748b;
    background: transparent;
}

.sidebar .submenu-link:hover,
.sidebar .submenu-link.active {
    background: #f5f9ff;
    color: var(--primary);
}

.sidebar .submenu-arrow {
    transition: transform .2s ease;
}

.sidebar a[aria-expanded="true"] .submenu-arrow {
    transform: rotate(180deg);
}

.btn {
    border-radius: 12px;
    font-weight: 500;
    box-shadow: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #2563eb;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border-color: #1d4ed8;
}

.btn-dark {
    background: #0f172a;
    border-color: #0f172a;
}

.btn-outline-secondary {
    color: #475569;
    border-color: #d8e0ea;
}

.btn-outline-secondary:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cfd8e3;
}

.btn-warning {
    background: #fff7e6;
    border-color: #fde7b0;
    color: #8a5a00;
}

.btn-warning:hover {
    background: #ffefcc;
    border-color: #f7dc91;
    color: #714700;
}

.btn-danger {
    background: #fff1f2;
    border-color: #ffd4d8;
    color: #be123c;
}

.btn-danger:hover {
    background: #ffe4e6;
    border-color: #ffc6cd;
    color: #9f1239;
}

.btn-info {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #1d4ed8;
}

.btn-info:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: #dde5ef;
    min-height: 44px;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #bfd3ff;
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .10);
}

.badge.text-bg-success {
    background: #ebfaf0 !important;
    color: #15803d !important;
}

.alert {
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 2px;
    border-color: #e4eaf2;
    color: #475569;
}

.pagination .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
}

.modal-content {
    border-radius: 24px;
}

.card,
.filter-box,
.modal-content {
    backdrop-filter: blur(8px);
}
