/* إعدادات عامة للصفحة */
body {
    font-family: 'Cairo', sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
    font-size: 16px;
    color: #000000;
}

/* العناوين */
h1, h2, h3, h4, h5, h6 {
    color: #28a9be;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 22px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

/* النصوص والروابط */
p, .card-body p, .card-body div {
    color: #000000;
    font-size: 18px;
}

strong {
    font-weight: 600;
    color: #28a9be;
}

a:not(.btn):not(.nav-link) {
    color: #28a9be;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
}

a:not(.btn):not(.nav-link):hover {
    color: #000000;
    text-decoration: underline;
}

/* الأزرار */
.btn {
    font-size: 14px;
}

/* البادجز */
.badge {
    font-size: 14px;
}

/* الكروت */
.card-body {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-hover {
    transition: all 0.3s ease;
    border: 1px solid #d0d0d0;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 12px rgba(30, 58, 138, 0.2);
    border-color: #ffffff;
    background-color: #28a9be;
}
/* الهيدر الخاص بالكروت */
.card-header {
    background: linear-gradient(to right, #28a9be, #b2dee6);
    color: #ffffff;
    text-align: center;
}

.card-title1 {
    font-size: 24px;
    font-weight: bold;
    color: #ff0606;
    text-align: center;
    margin-bottom: 0.75rem;
}

.card-header h5 {
    color: #ffffff !important;
}

.card-custom-bg {
    background-color: #000000 !important;
    color: #ffffff !important;
    font-size: 15px;
    line-height: 1.7;
}

.card-custom-bg h5,
.card-custom-bg h6 {
    font-size: 18px;
    font-weight: bold;
}

.card-custom-bg p,
.card-custom-bg strong,
.card-custom-bg a:not(.btn):not(.nav-link) {
    color: #ffffff !important;
    font-size: 18px;
}

.card-custom-bg a:hover {
    color: #b2dee6;
    text-decoration: underline;
}

/* زر العنوان الرئيسي */
.custom-header-btn {
    background: linear-gradient(to right, #007bff, #1e3a8a);
    font-size: 20px;
    font-weight: bold;
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    cursor: default;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* زر الرجوع */
.custom-back-btn {
    background-color: transparent !important;
    border: 2px solid #28a9be !important;
    color: #28a9be !important;
    font-size: 16px !important;
    font-weight: bold !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.custom-back-btn:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* تغليف المرفقات داخل الكارد */
.attachment-card {
    background-color: #28a9be;
    border: 1px solid #d0e7f5;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.attachment-card:hover {
    background-color: #b2dee6;
    box-shadow: 0 0 10px #1e3a8a33;
}

.attachment-card img {
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.attachment-card img:hover {
    transform: scale(1.03);
}

.attachment-card a.btn {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #28a9be;
    border-color: #28a9be;
}

.attachment-card a.btn:hover {
    background-color: #28a9be;
    color: white;
}
/* عنوان رئيسي بكارد ملون */
.page-title-card {
    background: linear-gradient(to right, #007bff, #1e3a8a);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px #0000001a;
}

/* خلفية للكارد */
.card-table-wrapper {
    background-color: #28a9be !important;
    border: 1px solid #000000;
    border-radius: 8px;
}

/* رؤوس الأعمدة */
.custom-table thead th {
    background-color: #000000 !important;
    color: #ffffff !important;
    font-size: 16px;
}

/* نص الجدول */
.custom-table td,
.custom-table th {
    font-size: 18px;
    vertical-align: middle;
    color: #28a9be !important;
    font-weight: bold;
}

/* حالة الطلب */
.custom-table .badge {
    font-size: 16px;
    padding: 6px 12px;
}

.custom-table .badge.bg-warning {
    background-color: #28a9be !important;
    color: #ffffff !important;
}

.custom-table .badge.bg-success {
    background-color: #28a9be !important;
}

.custom-table .badge.bg-danger {
    background-color: #b2dee6 !important;
    color: #000 !important;
}

.custom-table .badge.bg-dark {
    background-color: #28a9be !important;
}

/* أزرار العمليات */
.custom-table .btn-sm {
    font-size: 16px;
    padding: 7px 7px;
    color: #ffffff;
}

/* لون مميز للصفوف الفردية والزوجية */
table.custom-table tbody tr:nth-child(odd) td {
    background-color: #f6faff !important;
    border-color: #28a9be;
}

table.custom-table tbody tr:nth-child(even) td {
    background-color: #f6faff !important;
    border-color: #28a9be;
}

/* تأثير Hover على الصف */
.custom-table tbody tr:hover {
    background-color: #d1e0ff !important;
    transition: background-color 0.3s ease;
}

/* زر عرض الطلب */
.custom-table a.btn-outline-primary {
    border-color: #28a9be !important;
    color: #28a9be !important;
    font-size: 16px !important;
    padding: 5px 20px !important;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;

}

.custom-1primary-hover:hover {
    background-color: #ffffff;
    color: #28a9be;
    border: 2px solid #28a9be;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

/* اسم العميل في حالة القبول */
.custom-table a.fw-bold {
    color: #28a9be !important;
    font-size: 15px;
}
/* زر قبول / رفض */
.custom-table .btn-success,
.custom-table .btn-danger {
    font-size: 16px;
    padding: 5px 20px;
    border-radius: 8px;
    font-weight: bold;

}

.custom-btn {
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.custom-btn-accept {
    background-color: #b2dee6;
    color: #28a9be;
}

.custom-btn-accept:hover {
    background-color: #28a9be;
    color: #ffffff;
}

.custom-btn-reject {
    background-color: #b2dee6;
    color: #28a9be;
}

.custom-btn-reject:hover {
    background-color: #ff0000;
    color: #ffffff;
}

/* بادجات */
.custom-badge {
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
}

.custom-badge-warning,
.custom-badge-success,
.custom-badge-danger,
.custom-badge-dark {
    padding: 8px 10px !important;
    background-color: #b2dee6 !important;
    color: #28a9be !important;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-badge-warninga {
    background-color: #28a9be !important;
    color: #ffffff !important;
}

.custom-badge-warningr {
    background-color: #ff0000 !important;
    color: #ffffff !important;
}

.custom-badge-warningc {
    background-color: #28a9be !important;
    color: #ffffff !important;
}

.supporto {
    background-color: #28a9be !important;
    color: #ffffff !important;
}

.supportc {
    background-color: #d1a5a5 !important;
    color: #ffffff !important;
}

.supporta {
    background-color: #28a9be !important;
    color: #ffffff !important;
}

/* زر عرض التفاصيل */
.custom-btn-view {
    display: inline-block;
    padding: 8px 10px !important;
    background-color: #b2dee6 !important;
    color: #28a9be !important;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.custom-btn-view:hover {
    background-color: #28a9be;
    color: #ffffff !important;
}

.custom-btn-view1 {
    padding: 8px 10px !important;
    background-color: #b2dee6 !important;
    color: #28a9be !important;
    font-weight: bold;
    border: 2px solid #000000;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.custom-btn-view2 {
    padding: 8px 10px !important;
    background-color: #28a9be !important;
    color: #ffffff !important;
    font-weight: bold;
    border: 2px solid #ffffff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.custom-btn-view1:hover {
    background-color: #28a9be;
    color: #ffffff !important;
}

.ice-white-bg {
    background-color: #f6faff;
}
/* زر إضافة */
.custom-add-btn {
    background-color: #28a9be !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: bold !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
}

.custom-add-btn:hover {
    background-color: #ffffff !important;
    color: #28a9be !important;
    text-decoration: none !important;
}

.custom-add-btn-wrapper {
    margin-bottom: 20px;
}

/* التاريخ */
.custom-date {
    color: #28a9be !important;
}

/* لينك العميل */
.custom-client-link {
    background-color: #28a9be;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
}

.custom-client-link:hover {
    text-decoration: underline;
    color: #ffffff !important;
}

/* نصوص مساعدة */
.custom-muted-text,
.custom-text-success,
.custom-text-danger {
    color: #2493ac;
    font-weight: bold;
    font-size: 16px;
}

.custom-muted-text {
    font-style: italic;
}

/* الأيقونات */
.icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 6px;
    color: white;
}

/* العنوان العام للتطبيق */
.app-title {
    color: #000000;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.app-title-custom {
    color: #000000;
    font-size: 22px;
    font-weight: bold;
}

/* الشعار */
.logo {
    display: block;
    margin: 0 auto 10px;
    width: 60px;
}

/* زر الشريط الجانبي */
.sidebar-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1100;
    background-color: #1e3a8a;
    border: none;
    color: white;
    font-size: 24px;
    padding: 5px 10px;
    border-radius: 5px;
}

/* الشريط الجانبي */
.sidebar {
    background-color: #1e3a8a;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    padding: 20px;
    border-right: 2px solid #dee2e6;
    z-index: 1050;
    transition: transform 0.3s ease-in-out;
}

.sidebar.hide {
    transform: translateX(-100%);
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    padding: 10px 15px;
    padding-right: 25px;
    color: #000000;
    background-color: transparent;
    border-radius: 5px;
    font-size: 20px !important;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    text-align: right;
    margin-top: 5px;
    margin-bottom: 5px;
}

.sidebar .nav-link:hover {
    background-color: #e0e0e0;
    color: #000000;
}

.sidebar .nav-link.active {
    background-color: #e0e0e0;
    color: #2056e9;
    font-weight: bold;
}

.baricon {
    color: #2056e9;
}



/* محتوى الصفحة */
.content {
    margin-right: 260px;
    padding: 20px;
    transition: margin-right 0.3s ease-in-out;
}

.content.full-width {
    margin-right: 20px;
}

/* صورة البروفايل */
.profile-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

.welcome-text {
    color: white;
    font-size: 20px;
}

/* تغيير لون خلفية الزر ولون النص */
.sidebar-toggle {
    background-color: #28a9be !important;/* لون الخلفية */
    color: #ffffff; /* لون النص */
    position: sticky;
    left: 10px !important; /* الزر سيكون في الجهة اليسرى من الصفحة */
    top: 10px; /* الزر سيكون في أعلى الصفحة */
    z-index: 1100; /* لضمان بقاء الزر فوق باقي العناصر */
    border: none; /* إزالة الحدود */
    font-size: 18px; /* حجم الخط */
    padding: 10px 15px; /* مساحة داخل الزر */
    border-radius: 5px; /* جعل الزر بحدود مستديرة */
    cursor: pointer; /* تغيير الشكل عند مرور الفأرة */
    transition: all 0.3s ease; /* إضافة تأثير الانتقال */
}

/* تأثير عند مرور الماوس */
.sidebar-toggle:hover {
    background-color: #000000 !important; /* تغيير اللون عند مرور الفأرة */
    color: #ffffff; /* ضمان بقاء النص أبيض */
}

/* تغيير لون العناوين داخل الكاردات */
.card-title, .page-title-card {
    color: #28a9be; /* استخدام اللون الأساسي */
}

/* تغيير لون العناوين داخل الكاردات في حالة مرور الماوس */
.card-hover:hover .card-title,
.page-title-card:hover {
    color: #ffffff; /* تغيير اللون عند التمرير إلى اللون الأبيض */
}

                                                                /* تغيير خلفية الهيدر إلى الأسود */
.hero-section {
    background: #f7f4f5; /* خلفية سوداء */
    color: #000000; /* نص أبيض */
    border: 2px solid #000000; /* إطار بسمك 2px ولون أسود */

}

/* تغيير الأزرار داخل الكاردات إلى اللون الأساسي */
.card-body .btn-outline-primary {
    color: #ffffff;
    border-color: #000000;
}

.card-body .btn-outline-primary:hover {
    background-color: #000000;
    color: #ffffff;
}

/* الهيدر الرئيسي (العناوين الكبيرة) */
.page-title-card {
    background: #808080; /* خلفية سوداء */
    color: #ffffff; /* نص أبيض */
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px #0000001a;
}

/* تنسيق الأزرار */
.btn-custom {
    background-color: #28a9be;
    color: #ffffff;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-custom:hover {
    background-color: #000000;
    color: #ffffff;
}

/* لون الخط في النصوص */
p, .card-body p, .card-body div {
    color: #000000; /* لون النص الأسود */
}

a:not(.btn):not(.nav-link) {
    color: #28a9be; /* الروابط باللون الأزرق الفاتح */
    text-decoration: none;
}

a:not(.btn):not(.nav-link):hover {
    color: #000000; /* عند التمرير إلى اللون الأسود */
    text-decoration: underline;
}

/* main.css */

/* تحسينات للألوان والخلفية */
body {
    background-color: #f1efef;
    color: #000000;
}

/* تنسيق الشعار */
.navbar-logo {
    height: 70px;
    width: auto;
}

/* تحسين تنسيق النص في navbar */
.navbar-text {
    font-size: 1.5rem;
    font-weight: bold;
}

/* تحسين الروابط في navbar */
.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: #28a9be;
}

/* تنسيق الـ footer */
footer {
    background-color: #343a40;
    color: #ffffff;
    font-size: 0.875rem;
}

/* تخصيص الـ main */
main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Hero Section - تغيير حجم الخط في الشاشات الصغيرة */
.hero-section h1 {
    font-size: 2.5rem;
}

.hero-section p {
    font-size: 1.2rem;
}

/* Media query للأجهزة الصغيرة */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem; /* حجم أقل للعناوين في الشاشات الصغيرة */
    }
    .hero-section p {
        font-size: 1rem; /* حجم النص أصغر */
    }

    .page-title-card {
        font-size: 1.5rem; /* تقليل حجم العناوين في أقسام العرض */
    }
}

/* تخصيص تصميم الأعمدة في صفحة الفئات والمنتجات */
@media (max-width: 576px) {
    .col-12 {
        margin-bottom: 1rem; /* تباعد بين الأعمدة في الشاشات الصغيرة */
    }
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* تخصيص الأعمدة لصفحة الفئات والمنتجات */
@media (min-width: 576px) {
    .col-sm-6 {
        padding: 0 15px;
    }
}

@media (min-width: 768px) {
    .col-md-4 {
        padding: 0 15px;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        padding: 0 15px;
    }
}

/* تغيير عرض الصورة عند تصغير حجم الشاشة */
@media (max-width: 768px) {
    .card-body {
        padding: 10px; /* تقليل الحشو في الشاشات الصغيرة */
    }
}

