/* استيراد خط Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
    --brand-dark: #1e293b; /* كحلي رمادي مطفي */
    --brand-primary: #334155; /* رمادي غامق رسمي */
    --brand-light: #f1f5f9; /* خلفية هادئة */
    --brand-border: #e2e8f0; /* حدود ناعمة */
    --text-main: #0f172a; /* لون نص واضح */
    --text-muted: #64748b; /* نص ثانوية */
    --soft-success: #10b981; /* أخضر هادئ */
    --soft-danger: #ef4444; /* أحمر هادئ */
}

* {
    font-family: 'Cairo', sans-serif !important;
}

body {
    background-color: #f8fafc;
    color: var(--text-main);
    line-height: 1.6;
}

/* Navbar - لون واحد عميق بدلاً من التدرج الصارخ */
.navbar {
    background-color: var(--brand-dark) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: #fff !important;
}

.nav-link {
    color: #cbd5e1 !important;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
}

    .nav-link:hover {
        color: #fff !important;
    }

/* الكروت - إزالة الظلال الثقيلة والتدرجات */
.card {
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    background: #fff;
}

.card-header {
    background-color: #fff !important; /* خلفية بيضاء لتبدو كوثيقة */
    border-bottom: 1px solid var(--brand-border) !important;
    color: var(--brand-dark) !important;
    padding: 1.2rem;
}

/* الجداول - بسيطة جداً وواضحة */
.table {
    border-color: var(--brand-border);
}

    .table thead th {
        background-color: #f8fafc;
        color: var(--text-muted);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.8rem;
        border-top: none;
        padding: 12px;
    }

    .table tbody td {
        padding: 14px;
        border-bottom: 1px solid var(--brand-border);
        vertical-align: middle;
    }

    .table tbody tr:hover {
        background-color: #f1f5f9;
    }

/* الأزرار - ألوان مسطحة (Flat) */
.btn {
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--brand-primary);
    border: none;
}

    .btn-primary:hover {
        background-color: var(--brand-dark);
        transform: none;
    }

/* أزرار العمليات الصغيرة في الجداول */
.btn-sm {
    padding: 4px 10px;
}

/* النماذج - حدود أنحف وألوان أهدأ */
.form-control, .form-select {
    border: 1px solid var(--brand-border);
    background-color: #fff;
    font-size: 0.9rem;
    color: var(--text-main);
}

    .form-control:focus {
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 2px rgba(51, 65, 85, 0.1);
    }

.form-label {
    color: var(--brand-primary);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

/* التنبيهات - ألوان فاتحة جداً مع حدود جانبية */
.alert {
    border: 1px solid transparent;
    border-right-width: 4px;
    font-size: 0.9rem;
}

.alert-info {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Footer - هادئ جداً */
.footer {
    background: #f8fafc;
    border-top: 1px solid var(--brand-border);
    color: var(--text-muted);
    padding: 2rem 0;
    font-size: 0.85rem;
}

/* الشارات - Badge */
.badge {
    font-weight: 500;
    background-color: var(--brand-light);
    color: var(--brand-primary);
    border: 1px solid var(--brand-border);
}
