/* ملف CSS الرئيسي لنظام إدارة الموارد البشرية */

/* الخطوط العربية */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');
/* المتغيرات العامة (تعديل مقترح لتحسين التباين والوظائف) */
/* 🎨 لوحة ألوان عصرية ومحترفة */

/* 2. الإعدادات العامة وفرض الخط على جميع العناصر بلا استثناء */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* فرض خط كايرو باستخدام !important لضمان عدم طغيان أي مكتبة خارجية عليه */
    font-family: 'Cairo', sans-serif !important;
}
   :root {
    /* الألوان الرئيسية */
    --primary-color: #164B7A;    
    --secondary-color: #164B7A;   
    --accent-color: #164B7A;      

    /* ألوان الحالة */
    --success-color: #164B7A;     
    --warning-color: #164B7A;     
    --info-color: #164B7A;         
    --danger-color: #E74C3C;       

    /* ألوان الخلفيات والنصوص */
    --light-color: #F9FAFB;       
    --dark-color: #164d23;      
    --text-color: #34511e;      
    --heading-color: #164B7A;     

    /* الإعدادات العامة */
    --sidebar-width: 280px;
    --header-height: 65px;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0,0,0,0.08);

    /* ظلال متناسقة مع الألوان */
    --menu-active-bg: var(--secondary-color);
    --menu-active-text: var(--primary-color);
    --menu-hover-bg: #FFF8E1;
    --menu-link-color: var(--primary-color);
}

/* 💳 2. تنسيق البطاقات الموحدة */
/* ==================================== */
.custom-card-bg {
    /* تطبيق اللون الأساسي على خلفية كل بطاقات الأقسام */
    background-color: var(--primary-color) !important; 
    border-color: var(--primary-color) !important;
}


/* 3. استثناء الأيقونات (FontAwesome) لكي لا تختفي وتظهر كمربعات */
.fas, .far, .fab, .fa, [class^="fa-"], .menu-icon, i {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands', 'FontAwesome' !important;
    font-size: 0.85rem;
}

/* للتأكد من أن الروابط والأيقونات داخل البطاقات تظل بيضاء */
.custom-card-bg .text-white, 
.custom-card-bg a,
.custom-card-bg i {
    color: #fff !important;
}


/* ==================================== */
/* 🤖 3. زر الدردشة العائم (Floating Button) */
/* ==================================== */
.floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px; /* يمكن تغييرها إلى right: 20px إذا كانت الواجهة إنجليزية */
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color); /* استخدام اللون الثانوي */
    color: white;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
}

.floating-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* ==================================== */
/* 💬 4. نافذة الدردشة المنبثقة (Chat Popup) */
/* ==================================== */
.chat-popup {
    position: fixed;
    bottom: 90px;
    left: 20px; /* يجب أن يتطابق مع Floating Button */
    width: 350px;
    height: 450px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    display: none; /* يتم إخفاؤها مبدئياً وتُفتح بالجافاسكريبت */
    flex-direction: column;
}

.chat-popup-header {
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-popup-header h5 {
    margin: 0;
    font-size: 16px;
}

.chat-popup-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-popup-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

.chat-popup-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-left: 10px;
}

.chat-popup-footer .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* تنسيق فقاعات الرسائل */
.message-bubble {
    padding: 8px 12px;
    border-radius: 18px;
    margin-bottom: 10px;
    max-width: 80%;
    line-height: 1.4;
}

.bot-message {
    background-color: #e9e9eb;
    color: #000;
    margin-right: auto;
    border-bottom-right-radius: 2px;
}

.user-message {
    background-color: var(--primary-color);
    color: white;
    margin-left: auto;
    border-bottom-left-radius: 2px;
}

/* زر الإغلاق */
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* ==================================== */
/* ⏰ 5. الساعة العائمة (Floating Clock) */
/* ==================================== */
.floating-clock {
    position: fixed;
    bottom: 20px;
    right: 20px; /* وضع الساعة في الزاوية المقابلة لزر الدردشة */
    z-index: 1000;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: var(--border-radius-lg);
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ↓ تصغير حجم الخط العام لكل العناصر */
body, .card, .btn, .form-label, .page-title, .page-subtitle, .table th, .table td, .hero-title, .hero-subtitle {
    font-size: 0.85rem; /* قلل الحجم حسب رغبتك */
}

/* ↓ تصغير حجم الأيقونات */
.fas, .far, .fab, .menu-icon {
    font-size: 0.85rem; /* قلل حجم الأيقونات */
}


body {
    font-family: 'jf flat', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* New: Flexbox for main layout below header */
    display: flex;
    flex-direction: column; /* Stacks header on top, then main content area */
    min-height: 100vh;
}

/* الهيدر */
.header {
    position: fixed; /* Keep header fixed at the top */
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

.user-info:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* New: Wrapper for sidebar and main-content to enable flex layout */
.wrapper {
    display: flex;
    flex: 1; /* Allows it to take up remaining vertical space */
    margin-top: var(--header-height); /* Push content below the fixed header */
}

/* القائمة الجانبية */
.sidebar {
    position: fixed; /* Make the sidebar fixed */
    top: var(--header-height); /* Position it below the header */
    right: 0; /* Align to the right (RTL layout) */
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height)); /* Take full height below header */
    background: white;
    box-shadow: var(--box-shadow);
    z-index: 999; /* Ensure it's above main content but below header */
    overflow-y: auto;
    transition: transform var(--transition-speed) ease; /* For sliding effect on small screens */
    transform: translateX(0); /* Default: visible for larger screens, adjusted by media query */
}

.sidebar.active {
    transform: translateX(0); /* For smaller screens when activated */
}

/* Keep the rest of .sidebar styling */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: var(--light-color);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.menu-link:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
    padding-right: 25px;
}

.menu-link.active {
    background-color: var(--secondary-color);
    color: white;
}

.menu-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
}

.menu-icon {
    margin-left: 12px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.menu-text {
    font-weight: 500;
}

/* المحتوى الرئيسي */
.main-content {
    flex: 1; /* Allow main content to take up remaining width */
    padding: 0; /* Keep padding flexible, can add to inner container */
    transition: margin-right var(--transition-speed) ease;
    min-height: calc(100vh - var(--header-height)); /* Ensure it fills remaining vertical space */
    /* Removed margin-top as it's handled by .wrapper */
    margin-right: var(--sidebar-width); /* Default margin for larger screens */
}

.main-content.sidebar-open {
    margin-right: var(--sidebar-width); /* This class is now redundant for desktop, useful for mobile */
}

/* ... (القواعد السابقة) ... */

/* صورة الهيرو */
.hero-section {
    position: relative;
    /* التعديل: إزالة الارتفاع الثابت 400px والسماح لها بملء ارتفاع المحتوى أو Viewport إذا لزم الأمر */
    /* إذا كنت تريدها بملء الشاشة، استخدم 100vh، ولكن 400px كان مناسبًا كـ Hero */
    height: 400px; /* الاحتفاظ بالارتفاع المحدد كـ Hero */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* 🔥 التعديل: استخدام 100% 100% لضمان التمدد الكامل (Stretch) */
    background-size: 100% 100%; 
    
    /* 💡 تم إلغاء background-position: center; لأن التمديد 100% 100% يغطي الكل ولا يحتاج لتمركز */
    background-repeat: no-repeat;
    
    /* الخصائص الأخرى التي طلبتها سابقًا: */
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5); 
    filter: brightness(0.8);
    
    background-image: url('../images/486306818_9678064172259051_3125127036512099893_n.jpg'); 
}
/* ... (بقية القواعد الأخرى) ... */

/* عند استخدام Media Queries */
@media (max-width: 768px) {
    .hero-background {
        /* التعديل: استبدال 'contain' بـ 'cover' لضمان ملء الشاشة وتناسق الأبعاد */
        background-size: cover;
    }
}


.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* منطقة المحتوى */
.content-area {
    padding: 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
}

/* البطاقات */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-header {
    padding: 20px;
    background: var(--light-color);
    border-bottom: 1px solid #eee;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #28701b;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--accent-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* الجداول */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    margin: 0;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.table th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--primary-color);
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* النماذج */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid --light-color;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* التنبيهات */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #13600c;
}

/* خلفية التراكب */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* الاستجابة للشاشات */
@media (max-width: 2000.98px) { /* Adjusted breakpoint for better mobile handling */
    .sidebar {
        width: var(--sidebar-width); /* Maintain width for consistency */
        transform: translateX(100%); /* Hidden by default on small screens */
        position: fixed; /* Keep it fixed for sliding */
    }

    .sidebar.active {
        transform: translateX(0); /* Visible when active */
    }
    
    .main-content {
         padding-top: 60px; /* ✅ تمت الإضافة: مسافة بادئة من الأعلى للمحتوى */
        margin-right: 0; /* Remove margin for main content on small screens */
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .content-area {
        padding: 20px 15px;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .user-info span {
        display: none;
    }
}

@media (min-width: 2000px) {
    .sidebar {
        position: fixed; /* Still fixed, but always visible */
        transform: translateX(0); /* Always visible */
        /* Removed relative/auto height - keep fixed positioning for consistency */
        border-left: 1px solid #eee; /* Maintain visual separation */
    }
    
/* المحتوى الرئيسي */
.main-content {
    flex: 1; /* Allow main content to take up remaining width */
    padding-top: 60px; /* ✅ تمت الإضافة: مسافة بادئة من الأعلى للمحتوى */
    padding-left: 0; /* لضمان عدم وجود مسافات بادئة أفقية إذا لم تكن مطلوبة بشكل صريح */
    padding-right: 0; /* لضمان عدم وجود مسافات بادئة أفقية إذا لم تكن مطلوبة بشكل صريح */
    padding-bottom: 0; /* لضمان عدم وجود مسافات بادئة سفلية إذا لم تكن مطلوبة بشكل صريح */
    transition: margin-right var(--transition-speed) ease;
    min-height: calc(100vh - var(--header-height)); /* Ensure it fills remaining vertical space */
    margin-right: var(--sidebar-width); /* Default margin for larger screens */
}
    
    .sidebar-toggle {
        display: none; /* Hide toggle button on large screens */
    }
    
    .sidebar-overlay {
        display: none; /* Hide overlay on large screens */
    }
}

/* تحسينات إضافية */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تحسينات للطباعة */
@media print {
    .header,
    .sidebar,
    .sidebar-overlay {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        margin-top: 0 !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/*
 * تنسيق القوائم الرئيسية (المشتريات، الموردين)
 */
.menu-item {
    /* لإضافة تباعد رأسي بين العناصر الرئيسية */
    margin-bottom: 10px; 
    /* للتأكد من أن جميع عناصر القائمة الرئيسية تأخذ نفس العرض إذا لزم الأمر */
    width: 100%;
}

.menu-item > .menu-link {
    /* جعل الرابط يملأ مساحة الـ li بالكامل */
    display: flex;
    /* توسيط المحتوى (الأيقونة والنص والسهام) عموديًا */
    align-items: center; 
    /* جعل العناصر تتوزع بشكل متساوٍ (الأيقونة في البداية، السهم في النهاية) */
    justify-content: space-between; 
    
    /* تنسيق أساسي للزر */
    padding: 10px 15px; /* تباعد داخلي جميل */
    border-radius: 6px; /* زوايا مستديرة */
    text-align: right; /* لمحاذاة النص والـ RTL (العربية) */
    text-decoration: none; /* إزالة خطوط الروابط */
    
    /* مثال على لون خلفية أو حدود */
    background-color: #f8f9fa; /* لون فاتح للخلفية */
    border: 1px solid #dee2e6;
    color:  var(--primary-color); /* لون النص */
    transition: background-color 0.3s, color 0.3s; /* انتقال سلس عند التفاعل */
}

.menu-item > .menu-link:hover {
    background-color:  var(--primary-color); /* تغيير اللون عند المرور بالفأرة */
    color:  var(--primary-color);
}

/* * توسيط النص فقط في القائمة الرئيسية (لأن الأيقونات موجودة)
 */
.menu-item > .menu-link .menu-text {
    /* استخدام flex-grow لتوسيط النص بين الأيقونة الرئيسية وسهم القائمة الفرعية */
    flex-grow: 1; 
    /* محاذاة النص داخل المساحة المتاحة له */
    text-align: right; 
    /* إضافة تباعد بسيط بين الأيقونة والنص */
    margin-right: 10px; 
}


/*
 * تنسيق القوائم الفرعية (إنشاء/عرض المشتريات، إنشاء/عرض الموردين)
 */
.submenu {
    padding-right: 20; /* إزالة التباعد الافتراضي لـ ul */
}

.submenu-item {
    list-style: none; /* إزالة النقاط */
}

.submenu-link {
    display: block; /* لجعل الرابط يملأ السطر */
    padding: 8px 15px 8px 30px; /* تباعد داخلي، مع إزاحة لليمين */
    text-decoration: none;
    color:  var(--primary-color); /* لون نص مختلف عن الرئيسي */
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
}

.submenu-link:hover {
    background-color: --light-color;
    color:  var(--primary-color);
}
/* تنسيق الزر العائم في أسفل اليسار */
.fab-container-left {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.fab-main-button {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-options-up {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* الكلاس الذي سيضيفه الجافاسكريبت عند الضغط */
.fab-container-left.active .fab-options-up {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-container-left.active .fab-main-button {
    transform: rotate(45deg); /* تدوير الزر عند الفتح */
    background-color: var(--secondary-color);
}

.fab-item-small {
    width: 45px;
    height: 45px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    text-decoration: none;
    transition: all 0.2s ease;
}

.fab-item-small:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.logout-color:hover { background-color: #e74c3c !important; }


/* إجبار حقل التاريخ على ترتيب (يوم-شهر-سنة) في المتصفحات التي تدعم Flex */
/*    input[type="date"] {*/
/*        direction: rtl;*/
/*        text-align: right;*/
/*    }*/

/*input[type="date"]::-webkit-datetime-edit {*/
/*    display: flex;*/
/*    flex-direction: row-reverse;*/
/*}*/

    /* تنسيق إضافي لضمان ظهور الفواصل بشكل صحيح */
/*    input[type="date"]::-webkit-datetime-edit-day-field,*/
/*    input[type="date"]::-webkit-datetime-edit-month-field,*/
/*    input[type="date"]::-webkit-datetime-edit-year-field {*/
/*        direction: ltr;*/
/*    }*/