﻿/* ========== إعدادات عامة للموقع ========== */

/* استدعاء خط كايرو */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* إعدادات أساسية لكل الصفحات */
html, body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ====== العناوين ====== */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: #004aad;
    margin-bottom: 15px;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.3rem;
}

/* ====== الفقرات والنصوص ====== */
p {
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* ====== الروابط ====== */
a {
    color: #004aad;
    text-decoration: none;
    transition: 0.3s;
}

    a:hover {
        color: #002d66;
        text-decoration: underline;
    }

/* ====== الأزرار العامة ====== */
.btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    /*padding: 0.6rem 1.2rem;*/
    cursor: pointer;
    transition: 0.3s ease;
    color: #fff;
}

/* ====== الأزرق الأساسي ====== */
.btn-primary {
    background-color: #004aad;
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: #00347a;
    }

/* ====== الأخضر (نجاح) ====== */
.btn-success {
    background-color: #198754;
}

    .btn-success:hover {
        background-color: #13653f;
    }

/* ====== الأحمر (خطر / حذف) ====== */
.btn-danger {
    background-color: #dc3545;
}

    .btn-danger:hover {
        background-color: #bb2d3b;
    }

/* ====== الأصفر (تحذير) ====== */
.btn-warning {
    background-color: #ffc107;
    color: #000;
}

    .btn-warning:hover {
        background-color: #e0a800;
    }

/* ====== السماوي (معلومات) ====== */
.btn-info {
    background-color: #0dcaf0;
}

    .btn-info:hover {
        background-color: #31d2f2;
    }


/* ====== الرمادي (محايد) ====== */
.btn-secondary {
    background-color: #62a7e5;
    color: #fff;
    border: none;
}

    .btn-secondary:hover {
        background-color: #4d91ca;
    }




/* ====== الأسود (داكن) ====== */
.btn-dark {
    background-color: #212529;
}

    .btn-dark:hover {
        background-color: #000;
    }

/* ====== الأبيض (فاتح) ====== */
.btn-light {
    background-color: #f8f9fa;
    color: #000;
    border: 1px solid #ddd;
}

    .btn-light:hover {
        background-color: #e9ecef;
    }

/* ====== أزرار شفافة (outline) ====== */
.btn-outline-primary {
    background: transparent;
    color: #004aad;
    border: 2px solid #004aad;
}

    .btn-outline-primary:hover {
        background-color: #004aad;
        color: #fff;
    }

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

    .btn-outline-danger:hover {
        background-color: #dc3545;
        color: #fff;
    }

.btn-outline-success {
    background: transparent;
    color: #198754;
    border: 2px solid #198754;
}

    .btn-outline-success:hover {
        background-color: #198754;
        color: #fff;
    }

/* ====== الرمادي بإطار فقط ====== */
.btn-outline-secondary {
    background-color: transparent;
    color: #62a7e5;
    /*border: 2px solid #62a7e5;*/
    transition: all 0.25s ease-in-out;
}

    .btn-outline-secondary:hover {
        background-color: #62a7e5;
        color: #fff;
    }




/* ====== البطاقات ====== */
.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    background-color: #fff;
    padding: 25px;
}

/* ====== التذييل ====== */
footer {
    background-color: #004aad;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    margin-top: 30px;
}

/* ====== استجابة الهواتف ====== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    p {
        font-size: 1rem;
    }
}







/* ===== تصميم الحاوية ===== */
.breadcrumb-container {
    background-color: #f8f9fa;
    padding: 3px 8px; /* داخل الحاوية: أعلى وأسفل صغير، يمين ويسار متوسط */
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin: 3px auto 10px auto; /* أعلى وأسفل صغير جدًا */
    font-family: "Cairo", sans-serif;
}


/* ===== الخط الأفقي ===== */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
}

    /* ===== الروابط ===== */
    .breadcrumb-nav a {
        color: #0d6efd;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .breadcrumb-nav a:hover {
            color: #0a58ca;
            text-decoration: underline;
        }

/* ===== السهم الفاصل ===== */
.separator {
    color: #0d6efd; /* 🔹 نفس لون الرابط */
    font-size: 1.1rem;
    margin: 0 6px;
    user-select: none;
    line-height: 1;
    display: inline-block;
    transform: translateY(1px);
    opacity: 0.8; /* خفيف قليلاً ليكون أنعم */
}

/* ===== العنصر الحالي ===== */
.current {
    color: #6c757d;
    font-weight: 600;
}

/* ===== متجاوب للجوال ===== */
@media (max-width: 576px) {
    .breadcrumb-container {
        padding: 10px 15px;
    }

    .breadcrumb-nav {
        font-size: 0.9rem;
        gap: 5px;
    }

    .separator {
        margin: 0 4px;
        font-size: 1rem;
    }
}
