﻿:root {
    /* ألوان حكومية متزنة */
    --brand-primary: #112b4a; /* Navy */
    --brand-accent: #c8a64b; /* Gold */
    --brand-muted: #6b7280; /* Gray */
    --bg-soft: #f5f7fb; /* خلفية هادئة */
    --header-shadow: 0 4px 12px rgba(17,43,74,.08);
    --sidebar-w: 280px;
    --radius: .6rem;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg-soft);
    color: #0f172a;
    line-height: 1.6;
}
/* رأس حكومي بسيط */
.topbar {
    background: var(--brand-primary);
    color: #e5e7eb;
    font-size: .95rem;
}

    .topbar a {
        color: #fff;
        text-decoration: none;
    }

.brand-bar {
    background: #fff;
    box-shadow: var(--header-shadow);
    border-bottom: 1px solid #e5e7eb;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
}

.brand-title {
    color: var(--brand-primary);
    font-weight: 800;
    letter-spacing: .2px;
}

.brand-sub {
    color: var(--brand-muted);
    font-size: .95rem;
}

.btn-brand {
    background: var(--brand-primary);
    color: #fff;
}

    .btn-brand:hover {
        background: #0b213b;
        color: #fff;
    }

.text-accent {
    color: var(--brand-accent) !important;
}

/* تخطيط عام: Sidebar ثابت */
.app-layout {
    min-height: calc(100vh - 56px - 72px);
}

.sidebar {
    width: var(--sidebar-w);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
    position: sticky;
    top: 1rem;
}

    .sidebar .nav-section-title {
        color: #475569;
        font-size: .85rem;
        margin-bottom: .5rem;
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    /* إزالة النِّقاط */
    .sidebar .nav-link {
        color: #0f172a;
        font-weight: 600;
        border-radius: .5rem;
        padding: .55rem .75rem;
    }

        .sidebar .nav-link:hover {
            background: #f3f4f6;
        }

        .sidebar .nav-link.active {
            color: var(--brand-primary);
            background: #eef2ff;
            border-right: 3px solid var(--brand-accent);
        }

@media (max-width: 991.98px) { /* < lg */
    .sidebar {
        display: none;
    }
}

/* رأس الصفحة */
.hero-breadcrumb {
    background: #fff;
    border: 1px solid #e9eef6;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

.page-title {
    color: var(--brand-primary);
    font-weight: 700;
}

/* بطاقات */
.card {
    border: 1px solid #e9eef6;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

footer {
    background: #0b1a3a;
    color: #cbd5e1;
}

    footer a {
        color: #f8f9fa;
        text-decoration: none;
    }

/* زر إظهار القائمة الجانبية على الموبايل */
.sidebar-toggler {
    border: 1px solid #e5e7eb;
}

@@media (max-width: 575.98px) {
    .brand-sub {
        display: none;
    }
}
