/* Shahna Star panel theme — loaded after the legacy styles. Navy + star gold, soft depth, readable tables. */
:root {
    --sh-navy-950: #071a2f; --sh-navy-900: #0b2545; --sh-navy-700: #17375e; --sh-navy-500: #2a5a93; --sh-navy-100: #e8eef8;
    --sh-gold-500: #e9a82b; --sh-gold-400: #f3c056; --sh-gold-100: #fff4d9;
    --sh-ink: #0f1b2d; --sh-muted: #5b6b82; --sh-line: #e6ecf5; --sh-bg: #f4f7fb; --sh-card: #fff;
    --sh-green: #12a150; --sh-red: #d92d20; --sh-blue: #2563eb; --sh-violet: #7c3aed;
    --sh-radius: 16px; --sh-shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px rgba(15, 27, 45, .05);
}

body, .dashboard-main-wrapper { background: var(--sh-bg) !important; color: var(--sh-ink); }
.dashboard-content { padding-top: 1.25rem; }

/* ---------- sidebar ---------- */
.nav-left-sidebar {
    background: linear-gradient(185deg, var(--sh-navy-700) 0%, var(--sh-navy-900) 55%, var(--sh-navy-950) 100%) !important;
    box-shadow: 0 0 40px rgba(7, 26, 47, .25);
}
.nav-left-sidebar .nav-link, .nav-left-sidebar .nav-divider { color: rgba(255, 255, 255, .74) !important; }
.nav-left-sidebar .nav-divider { font-size: .72rem; letter-spacing: .08em; opacity: .7; }
.nav-left-sidebar .nav-link {
    border-radius: 12px; margin: 2px 12px; padding: .62rem .85rem !important; font-weight: 500; transition: background .15s ease, color .15s ease;
}
.nav-left-sidebar .nav-link i, .nav-left-sidebar .nav-link .fa, .nav-left-sidebar .nav-link .fas, .nav-left-sidebar .nav-link .fa-solid {
    color: var(--sh-gold-400) !important; width: 1.4rem; text-align: center;
}
.nav-left-sidebar .nav-link:hover { background: rgba(255, 255, 255, .09) !important; color: #fff !important; }
.nav-left-sidebar .nav-link.active, .nav-left-sidebar .nav-link[aria-expanded="true"] {
    background: linear-gradient(90deg, rgba(233, 168, 43, .22), rgba(233, 168, 43, .06)) !important; color: #fff !important;
    box-shadow: inset 3px 0 0 var(--sh-gold-500);
}
html[dir="rtl"] .nav-left-sidebar .nav-link.active, html[dir="rtl"] .nav-left-sidebar .nav-link[aria-expanded="true"] { box-shadow: inset -3px 0 0 var(--sh-gold-500); }
.nav-left-sidebar .submenu { background: rgba(0, 0, 0, .16) !important; border-radius: 12px; margin: 2px 12px 6px; }
.nav-left-sidebar .submenu .nav-link { margin: 1px 6px; font-size: .92rem; }

/* ---------- top bar ---------- */
.dashboard-header .navbar {
    background: #fff !important; border-bottom: 1px solid var(--sh-line); box-shadow: 0 4px 18px rgba(15, 27, 45, .05);
}
.dashboard-header .navbar-nav .nav-link { color: var(--sh-navy-700); }
.dashboard-header .btn-primary.btn-sm { border-radius: 999px; padding: .35rem .9rem; }

/* ---------- page header ---------- */
.page-header h2, .page-header .page-title { color: var(--sh-navy-900); font-weight: 700; }
.breadcrumb { background: transparent !important; padding: 0 !important; font-size: .85rem; color: var(--sh-muted); }
.breadcrumb a { color: var(--sh-navy-500); }

/* ---------- cards ---------- */
.card {
    border: 1px solid var(--sh-line) !important; border-radius: var(--sh-radius) !important; background: var(--sh-card);
    box-shadow: var(--sh-shadow); overflow: hidden;
}
.card.border-top { border-top: 1px solid var(--sh-line) !important; position: relative; }
.card-header { background: #fff !important; border-bottom: 1px solid var(--sh-line) !important; font-weight: 700; color: var(--sh-navy-900); padding: 1rem 1.25rem; }
.card-body { padding: 1.25rem; }

/* dashboard KPI tiles */
.total-card-color { transition: transform .15s ease, box-shadow .15s ease; }
.total-card-color:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 27, 45, .10); }
.total-card-body { padding: 1.1rem 1.25rem; }
.total-card-body .icon {
    width: 52px; height: 52px; min-width: 52px; display: inline-flex !important; align-items: center; justify-content: center;
    border-radius: 14px; margin: 0 !important; padding: 0 !important;
    background: var(--sh-navy-100); color: var(--sh-navy-500);
}
.total-card-body .icon i { font-size: 1.35rem; color: inherit !important; }
.total-card-body h5 { font-size: .86rem; font-weight: 600; color: var(--sh-muted) !important; margin: 0 0 .25rem; }
.total-card-body h1 { font-size: 1.9rem; font-weight: 800; color: var(--sh-navy-900); margin: 0; letter-spacing: -.01em; }
.total-card-body .box-content { padding-inline: .9rem; text-align: start !important; }
.dashboard-content .row > div:nth-child(5n+1) .total-card-body .icon { background: #e8eef8; color: #2a5a93; }
.dashboard-content .row > div:nth-child(5n+2) .total-card-body .icon { background: #fff4d9; color: #b57905; }
.dashboard-content .row > div:nth-child(5n+3) .total-card-body .icon { background: #e4f6ec; color: #12a150; }
.dashboard-content .row > div:nth-child(5n+4) .total-card-body .icon { background: #f0e9fe; color: #7c3aed; }
.dashboard-content .row > div:nth-child(5n+5) .total-card-body .icon { background: #fde9e7; color: #d92d20; }

/* ---------- tables ---------- */
.table { color: var(--sh-ink); }
.table thead th {
    background: #f1f5fb !important; color: var(--sh-navy-700) !important; font-size: .78rem; font-weight: 700; letter-spacing: .03em;
    border: 0 !important; padding: .85rem 1rem !important; white-space: nowrap;
}
.table td { border-color: #eef2f8 !important; padding: .85rem 1rem !important; vertical-align: middle; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: #f8fbff; }
.table-responsive { border-radius: 12px; }
.badge { border-radius: 999px; font-weight: 600; padding: .38em .75em; }

/* ---------- buttons & forms ---------- */
.btn { border-radius: 10px; font-weight: 600; transition: transform .1s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-brand { background: linear-gradient(135deg, var(--sh-navy-700), var(--sh-navy-900)) !important; border: 0 !important; color: #fff !important; box-shadow: 0 6px 16px rgba(11, 37, 69, .22); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline-primary { color: var(--sh-navy-700); border-color: var(--sh-navy-700); }
.btn-outline-primary:hover { background: var(--sh-navy-700); color: #fff; }
.btn-success { background: var(--sh-green) !important; border: 0 !important; }
.btn-danger { background: var(--sh-red) !important; border: 0 !important; }
.form-control, .custom-select, .select2-container--default .select2-selection--single {
    border-radius: 10px !important; border: 1.5px solid var(--sh-line) !important; min-height: 42px; background: #fff;
}
.form-control:focus, .custom-select:focus { border-color: var(--sh-navy-500) !important; box-shadow: 0 0 0 4px rgba(42, 90, 147, .12) !important; }
label { font-weight: 600; color: var(--sh-navy-900); }
a { color: var(--sh-navy-500); }
a:hover { color: var(--sh-navy-900); }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: #c3cee0 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c3cee0; border-radius: 8px; }

/* typography scale (legacy theme was ~13px) */
html[dir="rtl"] body { font-size: 15px; line-height: 1.65; }
html[dir="ltr"] body { font-size: 14.5px; line-height: 1.6; }
.nav-left-sidebar .nav-link { font-size: .95rem; }
.nav-left-sidebar .nav-link .nav-icons, .nav-left-sidebar .nav-link i { margin-inline-end: .55rem; }
h1, h2, h3, h4, h5 { color: var(--sh-navy-900); }
.page-header { margin-bottom: 1rem; }
