﻿ /* ملف: css/style.css */
/* تعريف متغيرات الألوان والخطوط */
:root {
    /* تم إضافة لون نص داكن جديد مخصص للـ Navbar الأبيض */
    --color-text-dark: #212529; /* لون نص أسود داكن للنص على الخلفية البيضاء */
    --color-primary: #004aad; /* الأزرق المعتاد للأزرار والعناوين */
    --color-accent: #f0a800; /* الأصفر/الذهبي للتمييز */
    --color-text: #343a40; /* لون النص الداكن */
    --color-bg: #f8f9fa; /* الخلفية الفاتحة */
    --font-family: 'Tajawal', sans-serif;
}

/* التنسيقات الأساسية */
body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: #fff;
    text-align: right;
}

html{
    overflow-x: hidden; /* يمنع أي حركة أو تمدد أفقي */
    width: 100%;
/*    position: relative;*/
}

p, a, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/** {
    border: 1px solid red !important;
}*/
/* ============================================== */
/* تخصيص الـ Navbar (الخلفية المحدثة - الأبيض الأنيق) */
/* ============================================== */
.custom-navbar {
    /* خلفية بيضاء نقية */
    background-color: #ffffff !important;
    z-index: 1050 !important; /* قيمة أعلى من أي عنصر آخر */
    /* ظل خفيف جداً لتميزه عن محتوى الصفحة */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    /* شريط التمييز الذهبي الذي يظل موجوداً */
    border-bottom: 3px solid var(--color-accent);
}
    /* اجعل القائمة الرئيسية دائماً في المقدمة */

    /* لون الشعار (إذا كان نصًا بجانب الشعار) */
    .custom-navbar .navbar-brand .text-white {
        /* تم تغيير اللون الأبيض إلى الأزرق الأساسي ليظهر على الخلفية البيضاء */
        color: var(--color-primary) !important;
    }

    .custom-navbar .nav-link {
        /* لون النص العادي على الخلفية البيضاء */
        color: var(--color-text-dark) !important;
        font-weight: 500;
        transition: color 0.3s, background-color 0.3s;
        padding: 0.5rem 1rem;
    }

        .custom-navbar .nav-link:hover, .custom-navbar .nav-link.active {
            /* عند التمرير أو التحديد، يصبح اللون هو اللون الذهبي المميز */
            color: var(--color-accent) !important;
            background-color: rgba(0, 0, 0, 0.05); /* خلفية رمادية خفيفة جداً عند التحديد */
            border-radius: 5px;
        }

/* تعديل لون أيقونة قائمة الموبايل لتظهر على الأبيض */
.navbar-toggler i {
    color: var(--color-primary) !important; /* جعل أيقونة القائمة بلون أزرق داكن */
}

/* تخصيص الأزرار (باقي كما هو) */
.btn-accent-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
    font-weight: 700;
    transition: all 0.3s;
}

    .btn-accent-primary:hover {
        background-color: #d19500;
        color: #fff;
        border-color: #d19500;
    }

.btn-accent-outline {
    /* للحفاظ على زر تسجيل الدخول يظهر بوضوح */
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: transparent;
    transition: all 0.3s;
}

    .btn-accent-outline:hover {
        background-color: var(--color-primary);
        color: #fff;
    }


/* ======= تنسيق القائمة المتدلية (Dropdown Menu) ======= */

/* تحسين شكل القائمة */
.dropdown-menu {
    text-align: right; /* محاذاة النص لليمين */
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px !important; /* مسافة بسيطة أسفل الـ Navbar */
    background-color: #ffffff;
}

/* تأثير عند المرور على العناصر */
.dropdown-item {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 2px;
}

    .dropdown-item:hover {
        background-color: rgba(0, 74, 173, 0.05); /* لون أزرق خفيف جداً */
        color: var(--color-primary) !important;
        padding-right: 25px; /* حركة بسيطة لليمين عند التمرير */
    }

    /* الأيقونات داخل القائمة */
    .dropdown-item i {
        font-size: 0.9rem;
        width: 20px;
    }

/* إزالة السهم الافتراضي إذا كنت تفضل شكلاً أبسط (اختياري) */
.dropdown-toggle::after {
    vertical-align: middle;
    color: var(--color-accent);
}
/* شريط الإعلانات المتحرك (Announcement Bar) */
.announcement-bar {
    background-color: var(--color-accent);
}

/* ============================================== */
/* تنسيقات السلايدر (Carousel) - الحركة البطيئة */
/* ============================================== */
.carousel-item {
    height: 550px;
    position: relative;
    overflow: hidden;
}

    .carousel-item img {
        height: 100%;
        object-fit: cover;
        filter: brightness(0.6);
    }

    .carousel-item .carousel-image-animated {
        animation: kenburns 15s ease-in-out infinite alternate;
        transform: scale(1.2);
        width: 100%;
        height: 100%;
    }

/* تحديد الحركة (Ken Burns Effect) */
@keyframes kenburns {
    0% {
        transform: scale(1.2) translateX(0);
    }

    100% {
        transform: scale(1.4) translateX(-5%);
    }
}

/* تنسيقات النص فوق الصورة */
/*.carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    right: 0;
    left: 0;
    padding-bottom: 0;
    padding-top: 0;
}

    .carousel-caption h1, .carousel-caption h4, .carousel-caption p {
        color: #fff;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    }*/






.carousel-indicators button {
    background-color: var(--color-primary);
    border: 1px solid var(--color-accent);
}

.carousel-indicators .active {
    background-color: var(--color-accent);
}
/* ======================================= */

.text-accent {
    color: var(--color-accent) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.bg-light-grey {
    background-color: var(--color-bg) !important;
}

/* عنوان القسم - إضافة خط التمييز */
.section-title {
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 80px;
        height: 4px;
        background-color: var(--color-accent);
        border-radius: 2px;
    }

.text-center .section-title::after {
    right: 50%;
    transform: translateX(50%);
}


/* الإحصائيات (Stat Cards) */
.stat-card {
    border-radius: 8px;
    border-bottom: 5px solid var(--color-primary);
    transition: transform 0.3s;
}

    .stat-card:hover {
        transform: translateY(-5px);
        border-color: var(--color-accent);
    }

/* الأقسام السريعة (Quick Links) */
.quick-link-card {
    display: block;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #eee;
    text-align: center;
    border-radius: 8px;
    padding: 30px 20px;
}

    .quick-link-card .fa-3x {
        color: var(--color-primary);
    }

    .quick-link-card:hover {
        background-color: var(--color-primary) !important;
        color: #fff !important;
        transform: translateY(-5px);
        border-color: var(--color-accent);
    }

        .quick-link-card:hover .fa-3x, .quick-link-card:hover h5 {
            color: var(--color-accent) !important;
        }

        .quick-link-card:hover p {
            color: rgba(255, 255, 255, 0.8) !important;
        }

/* التذييل (Footer) */
/* ======= تنسيقات الفوتر الاحترافي ======= */

.main-footer {
    background-color: #0b1a33; /* لون كحلي غامق جداً وفخم */
    color: #ffffff;
    font-family: 'Tajawal', sans-serif;
}

.footer-logo {
    max-height: 60px;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.8;
}

/* روابط الفوتر */
.footer-links li {
    margin-bottom: 12px;
}

    .footer-links li a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }

        .footer-links li a:hover {
            color: var(--color-accent);
            padding-right: 10px; /* حركة بسيطة عند التمرير بالـ RTL */
        }

/* أيقونات التواصل الاجتماعي */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
}

    .social-links a:hover {
        background-color: var(--color-accent);
        color: #004aad;
        transform: translateY(-3px);
    }

/* أيقونات التواصل */
.contact-info i {
    font-size: 1.1rem;
    color: var(--color-accent);
}

/* الحدود السفلية */
.footer-bottom {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.text-accent {
    color: var(--color-accent) !important;
}

/* تعديل المسافات في الـ RTL */
.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}
/* التجاوبية (Responsiveness) */
/* تنسيق حاوية الخريطة في الفوتر */
.map-container {
    height: 150px;
    width: 100%;
    padding-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

    .map-container:hover {
        border-color: var(--color-accent);
    }

    .map-container iframe {
        filter: grayscale(20%) contrast(1.1); /* لمسة فنية لتناسب ألوان الفوتر الداكنة */
    }

/* تحسين شكل الروابط عند التمرير */
.footer-links li a:hover {
    color: var(--color-accent) !important;
    transform: translateX(-5px);
    display: inline-block;
}

/* تعديلات للموبايل */
@media (max-width: 991px) {
    .map-container {
        height: 150px;
        margin-top: 10px;
    }
}



/* ======= تنسيقات صفحة الدخول (Login Page) ======= */

.login-page {
    /* خلفية متدرجة خفيفة تعطي طابعاً هندسياً */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

    /* إضافة لمسة فنية في الخلفية (اختياري) */
    .login-page::before {
        content: '';
        position: absolute;
        top: -10%;
        left: -10%;
        width: 300px;
        height: 300px;
        background: var(--color-accent);
        opacity: 0.05;
        border-radius: 50%;
    }

.login-card {
    border-radius: 20px;
    overflow: hidden;
    background-color: #ffffff;
}

    /* تحسين شكل الحقول */
    .login-card .input-group-text {
        border: 1px solid #dee2e6;
        color: var(--color-primary);
    }

    .login-card .form-control {
        border: 1px solid #dee2e6;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

        .login-card .form-control:focus {
            box-shadow: none;
            border-color: var(--color-primary);
            background-color: #fff !important;
        }

    /* زر الدخول */
    .login-card .btn-primary {
        background-color: var(--color-primary);
        border: none;
        border-radius: 10px;
        transition: transform 0.2s;
    }

        .login-card .btn-primary:hover {
            background-color: #003a8a;
            transform: translateY(-2px);
        }

/* تنسيق الروابط */
.text-accent {
    color: var(--color-accent) !important;
}

    .text-accent:hover {
        color: #d19500 !important;
    }



/* ======= تنسيقات صفحة مواعيد التسجيل ======= */

.page-header {
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
}

.header-line {
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin-top: 15px;
    border-radius: 2px;
}

/* تنسيق المخطط الزمني (Timeline) */
.timeline-item {
    position: relative;
}

    /* الخط الواصل بين الدوائر */
    .timeline-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 80px;
        right: 35px; /* يوضع خلف التاريخ */
        width: 2px;
        height: calc(100% - 30px);
        background-color: #dee2e6;
        z-index: 0;
    }

.timeline-date {
    min-width: 70px;
    height: 80px;
    z-index: 1;
    border: 1px solid #eee;
}

.timeline-content {
    flex-grow: 1;
    transition: transform 0.3s ease;
}

    .timeline-content:hover {
        transform: translateX(-5px); /* حركة خفيفة عند التمرير */
    }

/* ألوان الحدود الجانبية لكل حالة */
.border-primary {
    border-color: var(--color-primary) !important;
}

.border-accent {
    border-color: var(--color-accent) !important;
}

.border-success {
    border-color: #28a745 !important;
}

/* للهواتف المحمولة */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
    }

    .timeline-date {
        width: 100px;
        margin-bottom: 15px;
    }

    .timeline-item:not(:last-child)::after {
        display: none; /* إخفاء الخط في الموبايل لتبسيط الشكل */
    }

    .timeline-content {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}




/* ======= تنسيقات نموذج الطلب (Wizard Form) ======= */

/* شريط التقدم العلوي */
/* .wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
} */

/* الخط الواصل بين الخطوات */
/* .wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px; منتصف الدائرة تقريباً */
/* left: 0;
    width: 100%;
    height: 3px;
    background-color: #e9ecef; لون رمادي فاتح للخط غير المكتمل
    z-index: 0;
} */
/* ======= حل مشكلة شريط التقدم على الموبايل ======= */

.wizard-progress {
    display: flex !important;
    flex-direction: row !important; /* ضمان بقاء العناصر في صف واحد */
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 40px;
    width: 100%;
    padding: 0;
}

    /* الخط الواصل الخلفي */
    .wizard-progress::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 5%;
        right: 5%;
        width: 90%;
        height: 2px;
        background-color: #e9ecef;
        z-index: 0;
    }

.step-item {
    flex: 1; /* توزيع العناصر بالتساوي */
    position: relative;
    z-index: 1;
    text-align: center;
    min-width: 0; /* منع العناصر من التمدد وتجاوز الحاوية */
}

/* تصغير الخط والدوائر قليلاً للهواتف لضمان المساحة */
@media (max-width: 576px) {
    .step-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }

    .step-title {
        font-size: 10px !important; /* تصغير حجم الخط على الهاتف */
        white-space: nowrap; /* منع انقسام الكلمة لسطرين */
    }

    .wizard-progress::before {
        top: 15px; /* موازنة الخط مع الدوائر الأصغر */
    }
}
/* عنصر الخطوة الواحدة */
.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 25%; /* توزيع متساوي */
}

/* الدائرة */
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef; /* رمادي افتراضي */
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 10px auto;
    border: 3px solid #fff; /* إطار أبيض لفصل الدائرة عن الخط */
    transition: all 0.3s ease;
}

/* عنوان الخطوة */
.step-title {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* === تنسيق الخطوة النشطة (Active) === */
.step-item.active .step-circle {
    background-color: var(--color-primary); /* أزرق للخطوة الحالية */
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.2); /* تأثير توهج خفيف */
}

.step-item.active .step-title {
    color: var(--color-primary);
    font-weight: 700;
}

/* === تنسيق الخطوة المكتملة (Completed) === */
/* سنقوم بإضافة هذا الكلاس عبر Javascript للخطوات السابقة */
.step-item.completed .step-circle {
    background-color: var(--color-accent); /* ذهبي للخطوات المنجزة */
    color: var(--color-primary);
}

.step-item.completed::after {
    /* تعبئة الخط الواصل باللون الأزرق */
    content: '';
    position: absolute;
    top: 20px;
    right: 50%;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    z-index: -1;
}
/* إخفاء الخط عن أول عنصر */
.step-item:first-child.completed::after {
    display: none;
}


/* تنسيقات الحقول داخل النموذج */
.form-step .form-control,
.form-step .form-select {
    padding: 0.75rem;
    border-radius: 8px;
    border-color: #dee2e6;
}

    .form-step .form-control:focus,
    .form-step .form-select:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
    }



/* ======= تنسيقات صفحة شروط القبول ======= */

/* تصميم الكروت */
.requirement-card {
    transition: all 0.3s ease;
    border-radius: 20px !important;
}

    .requirement-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 30px rgba(0, 74, 173, 0.1) !important;
    }

/* صندوق الأيقونة */
.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 74, 173, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.requirement-card:hover .icon-box {
    background-color: var(--color-primary);
}

    .requirement-card:hover .icon-box i {
        color: #fff !important;
    }

/* القائمة المخصصة */
.custom-list li i {
    font-size: 1.2rem;
    color: var(--color-accent);
}

.custom-list span {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

/*Header Line*/
.header-line {
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    margin-top: 15px;
    border-radius: 2px;
}

/* تباعد الأيقونات في الـ RTL */
.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}



/* ======= تنسيقات صفحة المستندات (Document Cards) ======= */

/* تصميم البطاقة الأساسي */
.doc-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid #f1f1f1;
}

    .doc-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 74, 173, 0.08);
        border-color: var(--color-primary);
    }

/* أيقونة المستند */
.doc-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-left: 20px; /* مسافة لليمين في RTL */
}

/* ألوان الخلفية الناعمة للأيقونات */
.bg-soft-danger {
    background-color: #fff1f0;
}

.bg-soft-info {
    background-color: #e6f7ff;
}

.bg-soft-success {
    background-color: #f6ffed;
}

.bg-soft-warning {
    background-color: #fffbe6;
}

.bg-soft-secondary {
    background-color: #f5f5f5;
}

/* جسم البطاقة */
.doc-body h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.doc-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* شارات الحالة */
.badge-required {
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 5px 12px;
}

/* بطاقة الملف البلاستيكي (الحد المقطع) */
.border-dashed {
    border: 2px dashed #ccc !important;
    background-color: transparent;
}

/*Header Line*/
.header-line {
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    margin-top: 15px;
    border-radius: 2px;
}

/* تحسين الاستجابة للموبايل */
@media (max-width: 768px) {
    .doc-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .doc-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }
}



/* ======= تنسيقات التقويم الأكاديمي المتقدمة ======= */

.bg-soft-primary {
    background-color: rgba(0, 74, 173, 0.1);
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* تصميم كروت التقويم */
.calendar-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
}

    .calendar-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.06);
    }

.date-tag {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.calendar-card h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.calendar-card p {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.6;
}

.status-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 15px;
    color: #444;
}

/* ألوان الحدود العلوية للتمييز */
.border-top-blue {
    border-top: 5px solid #004aad !important;
}

.border-top-green {
    border-top: 5px solid #28a745 !important;
}

.border-top-orange {
    border-top: 5px solid #fd7e14 !important;
}

.border-top-red {
    border-top: 5px solid #dc3545 !important;
}

/* تحسين شكل الفواصل في القائمة المنسدلة */
.dropdown-divider {
    border-top: 1px solid #eee;
    margin: 0.5rem 1rem;
}



/* ======= تنسيقات جداول المحاضرات ======= */

/* تنسيق التبويبات (Tabs) */
.custom-tabs .nav-link {
    color: var(--color-primary);
    background: #fff;
    margin: 0 5px;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

    .custom-tabs .nav-link.active {
        background-color: var(--color-primary) !important;
        color: #fff !important;
        border-color: var(--color-primary);
    }

/* تنسيق الجدول الدراسي */
.custom-schedule-table thead th {
    padding: 20px;
    font-size: 0.95rem;
    border: none;
}

.day-col {
    background-color: #f8f9fa;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    width: 120px;
}

.subject-box {
    background: rgba(0, 74, 173, 0.05);
    border-right: 4px solid var(--color-primary);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

    .subject-box small {
        display: block;
        color: #666;
        font-weight: 400;
        margin-top: 4px;
    }

    .subject-box.accent-bg {
        background: rgba(255, 193, 7, 0.1);
        border-right-color: var(--color-accent);
    }

.empty-slot {
    text-align: center;
    color: #ccc;
    font-size: 0.8rem;
}

/* صندوق التحميل */
.download-box {
    transition: transform 0.3s ease;
}

    .download-box:hover {
        transform: scale(1.02);
    }




/* ======= تنسيقات صفحة المناهج الدراسية ======= */

/* القائمة الجانبية المخصصة */
.custom-side-menu .list-group-item {
    border: none;
    font-weight: 600;
    color: #555;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

    .custom-side-menu .list-group-item.active {
        background-color: var(--color-primary) !important;
        color: #fff !important;
    }

/* تنسيق الأكورديون (Accordion) */
.custom-accordion .accordion-item {
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background-color: #fff;
    color: var(--color-primary);
    font-weight: 700;
    box-shadow: none !important;
    padding: 20px;
}

    .custom-accordion .accordion-button:not(.collapsed) {
        background-color: rgba(0, 74, 173, 0.03);
        color: var(--color-primary);
    }

.semester-tag {
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-left: 15px; /* المسافة في RTL */
}

/* تنسيق الجداول داخل الأكورديون */
.table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    font-size: 0.95rem;
    color: #444;
}

/* Header Line */
.header-line {
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin-top: 15px;
    border-radius: 2px;
}

.custom-side-menu .nav-link {
    color: #555;
    border-radius: 10px !important;
    padding: 12px 15px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: 0.3s;
}

    .custom-side-menu .nav-link:hover {
        background-color: rgba(0, 74, 173, 0.05);
    }

    .custom-side-menu .nav-link.active {
        background-color: var(--color-primary) !important;
        color: #fff !important;
    }



/* ======= تنسيقات المكتبة الرقمية ======= */

.search-box {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

    .search-box:focus-within {
        box-shadow: 0 10px 25px rgba(0, 74, 173, 0.1) !important;
        border-color: var(--color-primary);
    }

.library-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
    height: 100%;
}

    .library-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    }

.file-type-icon {
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-left: 20px; /* المسافة في الـ RTL */
}

.library-content h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.file-size {
    font-size: 0.75rem;
    color: #999;
}

/* ألوان أيقونات الملفات */
.bg-soft-danger {
    background-color: #fff1f0;
    color: #ff4d4f;
}

.bg-soft-info {
    background-color: #e6f7ff;
    color: #1890ff;
}

.bg-soft-warning {
    background-color: #fffbe6;
    color: #faad14;
}

.border-right-accent {
    border-right: 4px solid var(--color-accent);
}

/* استجابة الموبايل */
@media (max-width: 576px) {
    .library-card {
        flex-direction: column;
        text-align: center;
    }

    .file-type-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }
}



/* ======= تنسيقات قسم الخدمات الطلابية ======= */

.bg-soft-primary {
    background-color: rgba(0, 74, 173, 0.1);
}

.bg-soft-success {
    background-color: rgba(40, 167, 69, 0.1);
}

.bg-soft-warning {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-soft-danger {
    background-color: rgba(220, 53, 69, 0.1);
}

.service-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border-color: var(--color-primary);
    }

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.link-arrow {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    background: #f8f9fa;
    color: var(--color-primary);
    margin-top: 15px;
    transition: all 0.3s ease;
}

.service-card:hover .link-arrow {
    background: var(--color-primary);
    color: #fff;
    transform: translateX(-5px); /* للـ RTL يتحرك لليسار */
}

/* تحسين شكل النصوص */
.service-card p {
    line-height: 1.6;
    margin-bottom: 0;
}



/* ======= تنسيقات صفحة النتائج ======= */

.bg-soft-primary {
    background-color: rgba(0, 74, 173, 0.1);
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#resultOutput {
    display: none; /* مخفي افتراضياً ويظهر عند البحث */
}

.op-7 {
    opacity: 0.8;
}

/* تحسين شكل الجدول */
.table thead th {
    padding: 15px;
    font-size: 0.85rem;
    border: none;
}

.table tbody td {
    padding: 18px 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* تأثير عند طباعة الصفحة */
@media print {
    .page-header, .card, form, .btn-print {
        display: none !important;
    }

    #resultOutput {
        display: block !important;
        box-shadow: none;
        border: 1px solid #000;
    }
}



/* تنسيقات قسم الأخبار في الرئيسية */
.main-news-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

    .main-news-card:hover {
        box-shadow: 0 15px 35px rgba(0, 74, 173, 0.1);
        transform: translateY(-8px);
    }

.card-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .card-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.main-news-card:hover .card-img-container img {
    transform: scale(1.1);
}

.badge-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.card-content {
    padding: 20px;
}

    .card-content h5 {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

/* stretched-link تجعل البطاقة كاملة قابلة للنقر */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}




/* --- تنسيقات الجانب الأكاديمي (Modern Dropdown) --- */

/* :root {
        --primary-color: #004aad;
        --soft-bg: #f8f9fa;
    } */

/* الأيقونات الملونة خلفية ناعمة */
.bg-soft-primary {
    background-color: rgba(0, 74, 173, 0.1);
}

.bg-soft-success {
    background-color: rgba(40, 167, 69, 0.1);
}

.bg-soft-danger {
    background-color: rgba(220, 53, 69, 0.1);
}

.badge-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.custom-dropdown .dropdown-menu {
    min-width: 260px;
    text-align: right;
    direction: rtl;
    border: none;
}

.main-text {
    font-size: 0.95rem;
    line-height: 1.2;
}

.sub-text {
    font-size: 0.75rem;
    display: block;
}

/* تأثيرات الكمبيوتر (Desktop) */
@media (min-width: 992px) {
    .custom-dropdown:hover .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .custom-dropdown .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.3s ease;
    }
}

/* --- حل مشاكل الموبايل (Mobile) --- */
@media (max-width: 991px) {
    .custom-dropdown .dropdown-menu {
        box-shadow: none !important;
        background-color: #fcfcfc !important;
        margin: 0 !important;
        padding: 10px !important;
        transform: none !important;
    }

    /* إزالة المسافة الكبيرة قبل القائمة */
    .navbar-nav .nav-item.custom-dropdown {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .custom-dropdown .nav-link {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* محاذاة كل شيء لليمين في الموبايل */
    .custom-dropdown .dropdown-item {
        justify-content: flex-start !important;
    }
}

/* حركات انسيابية */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate.slideIn {
    animation: slideIn 0.3s ease forwards;
}

/* تفاعل عند التمرير */
.dropdown-item:hover {
    background-color: var(--soft-bg);
    transform: scale(1.01);
}







/* ارقام تتحدث */

.stats-section {
    background: linear-gradient(rgba(0, 74, 173, 0.9), rgba(0, 74, 173, 0.9)), url('https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=1200');
    background-attachment: fixed; /* تأثير التمرير البارالاكس */
    background-size: cover;
    background-position: center;
    color: white;
}

.stat-item {
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05); /* تأثير زجاجي بسيط */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .stat-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-5px);
        border-color: var(--accent); /* اللون الذهبي/الأصفر */
    }

.stat-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-section h2 {
    font-size: 2.5rem;
    color: #ffc107; /* اللون الأصفر للتمييز */
}



.counter {
    display: inline-block;
    min-width: 80px; /* يمنع اهتزاز العناصر أثناء زيادة الأرقام */
}



/* تأثيرات البطاقات */
.project-card {
    transition: all 0.3s ease;
    border: none;
}

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    }

/* تأثير الصورة والظهور التدريجي للزر */
.project-img-container {
    height: 200px;
    overflow: hidden;
}

    .project-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.project-card:hover .project-img-container img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 74, 173, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* الألوان الناعمة للبادجات */
.bg-soft-primary {
    background-color: rgba(0, 74, 173, 0.1);
}

.bg-soft-success {
    background-color: rgba(40, 167, 69, 0.1);
}

.bg-soft-danger {
    background-color: rgba(220, 53, 69, 0.1);
}




/* كلمة العميد */

.dean-message {
    background-color: #ffffff;
    overflow: hidden;
}

.dean-image-wrapper {
    position: relative;
    z-index: 1;
    display: inline-block;
}

    .dean-image-wrapper img {
        position: relative;
        z-index: 2;
        border: 8px solid white;
        object-fit: cover;
    }

/* الإطار الملون خلف الصورة */
.image-accent {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #004aad; /* اللون الأساسي */
    top: 20px;
    right: -20px;
    z-index: 1;
    border-radius: 20px;
}

.dean-tag {
    position: absolute;
    bottom: -20px;
    left: 20px;
    z-index: 3;
    min-width: 200px;
}

.message-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.text-accent {
    color: #ffc107; /* لون التمييز الأصفر */
}

/* تحسين الظهور في الموبايل */
@media (max-width: 991px) {
    .image-accent {
        display: none;
    }

    .dean-image-wrapper {
        margin-bottom: 50px;
    }

    .dean-tag {
        left: 50%;
        transform: translateX(-50%);
    }
}




.college-brief {
    background: #ffffff;
}

.section-title h2 {
    position: relative;
    padding-bottom: 15px;
}

.title-line {
    width: 60px;
    height: 4px;
    background: #ffc107; /* اللون الأصفر التكميلي */
    border-radius: 2px;
}

.brief-img-wrapper .main-img {
    border-bottom: 10px solid #004aad; /* اللون الأزرق الأساسي */
    transition: transform 0.4s ease;
}

.brief-img-wrapper:hover .main-img {
    transform: scale(1.02);
}

.stats-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    z-index: 10;
    border-right: 4px solid #004aad;
}

.brief-text p {
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 15px;
    text-align: justify;
}

@media (max-width: 991px) {
    .stats-badge {
        position: static;
        margin-top: 20px;
        justify-content: center;
    }

    .brief-content {
        text-align: center;
    }

    .title-line {
        margin: 0 auto;
    }
}



/* تنسيق بطاقة المختبر */
.lab-card {
    transition: all 0.3s ease-in-out;
    border: none;
}

    .lab-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    }

/* تنسيق الصورة والتأثير عليها */
.lab-image {
    height: 220px;
    overflow: hidden;
}

    .lab-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.lab-card:hover .lab-image img {
    transform: scale(1.1);
}

/* الملصق (Tag) فوق الصورة */
.lab-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #004aad;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

/* تحسين القائمة داخل البطاقة */
.lab-card ul li {
    margin-bottom: 8px;
    color: #555;
}

/* تنسيق الـ Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}



.card {
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
    }

.input-group-text {
    border-right: none;
    color: #004aad;
}

.form-control:focus {
    border-color: #004aad;
    box-shadow: none;
    background-color: #fff !important;
}

.btn-primary {
    background-color: #004aad;
    border: none;
    transition: 0.3s;
}

    .btn-primary:hover {
        background-color: #003580;
        transform: scale(1.02);
    }

.x-small {
    font-size: 0.7rem;
}


/* دائرة الأيقونة العلوية */
.icon-circle {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* تحسين شكل حقول الإدخال */
.input-group-text {
    border-color: #eee;
    color: #004aad;
}

.form-control:focus {
    box-shadow: none;
    border-color: #004aad;
    background-color: #fff !important;
}

/* تأثيرات الحركة */
.transition-hover {
    transition: all 0.3s ease;
}

    .transition-hover:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,74,173,0.3) !important;
    }

/* النصوص الصغيرة جداً */
.x-small {
    font-size: 0.75rem;
}



/* تصميم الصورة الدائرية */
.avatar-circle {
    width: 40px;
    height: 40px;
    background-color: #007bff; /* لون خلفية افتراضي */
    background: linear-gradient(45deg, #007bff, #6610f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    /* تنسيق الحروف داخل الدائرة */
    .avatar-circle .initials {
        color: white;
        font-size: 18px;
        font-weight: bold;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    }

    /* تأثير عند تمرير الماوس */
    .avatar-circle:hover {
        transform: scale(1.1);
        transition: 0.3s ease;
        cursor: pointer;
    }

/* الألوان المتطورة */
:root {
    --purple: #6f42c1;
    --purple-light: #ebe5f7;
    --blue: #0d6efd;
    --blue-light: #e7f0ff;
    --orange: #fd7e14;
    --orange-light: #fff2e8;
}

.admin-card {
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #f0f0f0 !important;
}

    .admin-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    }

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* تخصيص الأزرار */
.btn-purple {
    background: var(--purple);
    color: white;
}

    .btn-purple:hover {
        background: #5a32a3;
        color: white;
    }

.bg-purple-light {
    background: var(--purple-light);
}

.text-purple {
    color: var(--purple);
}

.btn-blue {
    background: var(--blue);
    color: white;
}

.bg-blue-light {
    background: var(--blue-light);
}

.text-blue {
    color: var(--blue);
}

.btn-orange {
    background: var(--orange);
    color: white;
}

.bg-orange-light {
    background: var(--orange-light);
}

.text-orange {
    color: var(--orange);
}

.rounded-5 {
    border-radius: 25px !important;
}



/* تنسيق الـ Pills الجانبية */
/*#settings-tabs .nav-link {
    color: #555;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

#settings-tabs .nav-link:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

#settings-tabs .nav-link.active {
    background-color: #e7f0ff;
    color: #0d6efd;
    font-weight: bold;
    border-left: 4px solid #0d6efd;*/ /* علامة مميزة على الجنب */
/*}*/

/* صندوق الرفع المتقطع */
/*.border-dashed {
    border: 2px dashed #dee2e6;
    cursor: pointer;
    transition: 0.3s;
}
.border-dashed:hover {
    background-color: #f1f4f9 !important;
    border-color: #0d6efd;
}*/



.badge.bg-danger {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95) translate(-50%, -50%);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: scale(1) translate(-50%, -50%);
        box-shadow: 0 0 0 5px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(0.95) translate(-50%, -50%);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}



/* تصميم كروت المحاضرات */
.timetable-card {
    border-radius: 12px;
    border-right: 5px solid #4e73df; /* لون جانبي مميز */
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    border-left: 1px solid #e3e6f0;
    border-top: 1px solid #e3e6f0;
}

    .timetable-card:hover {
        transform: translateY(-3px);
        shadow: 0 10px 20px rgba(0,0,0,0.1);
        background-color: #ffffff;
    }

/* عناوين الأيام */
.day-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* تفاصيل الوقت */
.time-slot {
    font-size: 0.85rem;
    color: #858796;
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-name {
    color: #2e59d9;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
}

.instructor-name {
    font-size: 0.9rem;
    color: #5a5c69;
}
