/* قالب الألوان البرتقالي العصري */

:root {
    /* الألوان الأساسية - مطابقة للتصميم المرفق */
    --primary-color: #FF8833;        /* برتقالي رئيسي */
    --secondary-color: #FF9F5A;      /* برتقالي فاتح */
    --accent-color: #FF8833;         /* برتقالي للتمييز */
    --success-color: #4CAF50;        /* أخضر للنجاح */
    --warning-color: #FF9800;        /* برتقالي للتحذير */
    --danger-color: #F44336;         /* أحمر للخطر */
    --info-color: #FF8833;           /* برتقالي للمعلومات */
    
    /* الألوان المحايدة - مطابقة للتصميم المرفق */
    --text-color: #212529;           /* نص رئيسي */
    --text-muted: #ADB5BD;           /* نص ثانوي */
    --text-light: #999999;
    --bg-color: #F8F9FB;             /* خلفية فاتحة */
    --bg-light: #FFFFFF;             /* أبيض نقي */
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.08);
    
    /* ألوان التدرج */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-light: linear-gradient(135deg, #ffffff, #f8f9fa);
    --gradient-card: linear-gradient(135deg, #ffffff, #fafafa);
    
    /* ألوان خاصة للتصميم */
    --image-placeholder: #FFEBE4;    /* لون وهمي للصور */
}

/* تطبيق الألوان على العناصر الأساسية */
body {
    font-family: 'Cairo', 'Arial', sans-serif;
    background-color: var(--bg-color);
    background-image: none !important;
    color: var(--text-color);
    overflow-x: hidden;
}

html {
    background-color: var(--bg-color);
    background-image: none !important;
    overflow-x: hidden;
}

/* الشعار */
.navbar-brand img {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* الشعار للشاشات الصغيرة */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 70px;
    }
}

/* الأزرار */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 136, 51, 0.3);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 136, 51, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* البطاقات */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 136, 51, 0.15);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
    border: none;
}

.card-body {
    padding: 25px;
}

/* الجداول */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.table th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px;
}

.table td {
    padding: 15px;
    border-color: var(--border-color);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 136, 51, 0.05);
}

/* التنبيهات */
.alert-success {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    border: 1px solid #4CAF50;
    color: #2e7d32;
    border-radius: 10px;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee, #fce4ec);
    border: 1px solid #F44336;
    color: #c62828;
    border-radius: 10px;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3e0, #fce4ec);
    border: 1px solid #FF9800;
    color: #ef6c00;
    border-radius: 10px;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 1px solid #2196F3;
    color: #1565c0;
    border-radius: 10px;
}

/* النماذج */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 136, 51, 0.25);
    background: white;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* الشارات */
.badge {
    border-radius: 20px;
    padding: 8px 12px;
    font-weight: 600;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.bg-success {
    background: linear-gradient(135deg, #4CAF50, #66BB6A) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #FF9800, #FFB74D) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #F44336, #EF5350) !important;
}

.bg-info {
    background: linear-gradient(135deg, #2196F3, #42A5F5) !important;
}

/* الصور */
.img-thumbnail {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.img-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* الروابط */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* العناوين */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 700;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* الخلفيات */
.bg-primary {
    background: var(--gradient-primary) !important;
}

.bg-light {
    background: var(--bg-light) !important;
}

/* الحدود */
.border-primary {
    border-color: var(--primary-color) !important;
}

/* الظلال */
.shadow {
    box-shadow: 0 4px 15px var(--shadow-color) !important;
}

.shadow-lg {
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.15) !important;
}

/* التدرجات المخصصة */
.gradient-primary {
    background: var(--gradient-primary);
    color: white;
}

.gradient-light {
    background: var(--gradient-light);
}

/* تأثيرات الحركة */
.transition-all {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 136, 51, 0.15);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* الأيقونات */
.fas, .far, .fab {
    color: var(--primary-color);
}

/* القوائم */
.nav-link {
    color: var(--text-color);
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(255, 136, 51, 0.1);
}

/* الصفحات الرئيسية */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 30px 0;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(255, 136, 51, 0.3);
}

.page-title {
    color: white;
    font-weight: 700;
    margin: 0;
}

/* المنتجات */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 136, 51, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

/* البحث */
.search-bar {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 0;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(255, 136, 51, 0.3);
}

/* السلة */
.cart-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 136, 51, 0.15);
}

/* القائمة السفلية */
.bottom-nav {
    background: white;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 15px var(--shadow-color);
}

.nav-item {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary-color);
}

/* لوحة التحكم */
.top-navbar {
    background: var(--gradient-primary);
    box-shadow: 0 2px 15px rgba(255, 136, 51, 0.3);
}

.navbar-brand {
    color: white;
    font-weight: 700;
}

.navbar-brand:hover {
    color: var(--accent-color);
}

.nav-link {
    color: white;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* التجاوب */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .page-header {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
}

/* تحسينات إضافية */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
}

/* تأثيرات بصرية */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* تحسين الخط العربي */
* {
    font-family: 'Cairo', 'Arial', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

/* تحسينات للأداء */
.card, .btn, .form-control {
    will-change: transform;
}

/* إصلاحات Bootstrap */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* تحسينات للجداول */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* تحسينات للتنبيهات */
.alert {
    border: none;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.alert-dismissible .btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    opacity: 0.7;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}
