﻿/* =====================================================
   ROOT COLORS (هادية ومحاسبية)
===================================================== */
:root {
    --primary: #2563eb; /* أزرق هادي */
    --secondary: #059669; /* أخضر مريح */
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --dark: #111827;
    --light: #f9fafb;
    --card: #ffffff;
    --radius: 14px;
}

/* =====================================================
   GLOBAL
===================================================== */
html {
    font-size: 17px; /* كبرنا الخط */
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f3f6fb, #eef2f7);
    font-family: 'Cairo', 'Tajawal', sans-serif;
    color: #111827;
    padding-top: 90px;
    font-weight: 600;
}

/* =====================================================
   HEADINGS (واضحة جدًا)
===================================================== */
h1 {
    font-size: 2.3rem;
    font-weight: 800;
}

h2 {
    font-size: 1.9rem;
    font-weight: 800;
}

h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

h4 {
    font-size: 1.3rem;
    font-weight: 700;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* =====================================================
   NAVBAR
===================================================== */
.creative-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary), #1e40af);
    box-shadow: 0 8px 25px rgba(0,0,0,.2);
    padding: 14px 0;
}

    .creative-navbar .nav-link {
        color: #f9fafb !important;
        padding: 10px 22px;
        border-radius: 999px;
        font-size: 1.05rem;
        font-weight: 700;
    }

        .creative-navbar .nav-link.active {
            background: #fff;
            color: var(--primary) !important;
        }

/* =====================================================
   PAGE HEADER
===================================================== */
.page-header {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* =====================================================
   CARDS
===================================================== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    border: none;
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
}

/* =====================================================
   TABLES (أوضح جزء)
===================================================== */
.table {
    font-size: 1.05rem;
}

    .table thead {
        background: var(--dark);
        color: #fff;
    }

    .table th {
        font-size: 1.05rem;
        font-weight: 800;
        padding: 14px;
    }

    .table td {
        font-size: 1.05rem;
        font-weight: 600;
        padding: 14px;
    }

.table-hover tbody tr:hover {
    background: #eef2ff;
}

/* =====================================================
   MONEY / NUMBERS 💰
===================================================== */
.money,
.amount {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: .6px;
}

/* ألوان الديون */
.text-danger {
    color: var(--danger) !important;
}

.text-success {
    color: var(--success) !important;
}

/* =====================================================
   BADGES
===================================================== */
.badge {
    padding: 8px 18px;
    font-size: .9rem;
    font-weight: 700;
    border-radius: 999px;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
    font-size: 1rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 8px 18px;
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary), #22c55e);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    border: none;
    color: #fff;
}

/* =====================================================
   ACTION BUTTONS (الجدول)
===================================================== */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    font-size: .95rem;
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

    .btn-action:hover {
        transform: translateY(-1px);
    }

/* =====================================================
   UTILITIES
===================================================== */
.text-muted {
    color: #6b7280 !important;
}
