/* تصميم تابات اللغات - متكامل مع ألوان النظام */
.nav-tabs {
    border-bottom: 2px solid #2c3e50;
    margin-bottom: 1rem;
}

.nav-tabs .nav-link {
    color: #2c3e50 !important; /* نفس لون السايدبار */
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    font-weight: 500;
    font-size: 14px;
    padding: 0.75rem 1rem;
    margin-right: 2px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs .nav-link:hover {
    color: #ffffff !important;
    background-color: #34495e;
    border-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.2);
}

.nav-tabs .nav-link.active {
    color: #ffffff !important;
    background-color: #2c3e50; /* نفس لون السايدبار */
    border-color: #2c3e50;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(44, 62, 80, 0.3);
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #2c3e50;
}

/* تحسين مظهر أيقونات الأعلام */
.nav-tabs .nav-link .flag-icon {
    margin-left: 8px;
    font-size: 16px;
    vertical-align: middle;
}

[dir="rtl"] .nav-tabs .nav-link .flag-icon {
    margin-left: 0;
    margin-right: 8px;
}

/* تحسين النصوص داخل التابات */
.nav-tabs .nav-link span,
.nav-tabs .nav-link {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
}

/* تحسين محتوى التابات */
.tab-content {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    min-height: 200px;
}

.tab-pane {
    padding: 1.5rem;
}

/* تحسين الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        font-size: 12px;
        padding: 0.5rem 0.75rem;
        margin-right: 1px;
    }
    
    .nav-tabs .nav-link .flag-icon {
        font-size: 14px;
        margin-left: 4px;
    }
    
    [dir="rtl"] .nav-tabs .nav-link .flag-icon {
        margin-left: 0;
        margin-right: 4px;
    }
}

/* ===== تحسينات شاملة للنظام ===== */

/* Color Theme Import Removed */

/* ===== Enhanced Product Image Display ===== */

/* Product Card Image Enhancements */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.product-card .card-img-top {
    transition: all 0.4s ease;
    object-fit: cover;
    height: 250px;
    width: 100%;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Image Gallery Container */
.image-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.image-gallery .main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-gallery .main-image:hover {
    transform: scale(1.02);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f1f1f1;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    display: block;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.thumbnail-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.1);
    pointer-events: none;
}

/* Image Loading States */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.image-placeholder {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
}

/* Image Modal/Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Image Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 25px;
}

.zoom-btn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

/* Responsive Image Enhancements */
@media (max-width: 768px) {
    .product-card .card-img-top {
        height: 200px;
    }
    
    .image-gallery .main-image {
        height: 300px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .thumbnail-gallery {
        gap: 6px;
        padding: 3px 0;
    }
    
    .image-modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .image-gallery .main-image {
        height: 250px;
    }
    
    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
    
    .thumbnail-gallery {
        gap: 4px;
    }
}

/* Image Aspect Ratio Controls */
.aspect-ratio-16-9 {
    aspect-ratio: 16/9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4/3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1/1;
}

.aspect-ratio-3-2 {
    aspect-ratio: 3/2;
}

/* Image Filters and Effects */
.image-filter-brightness {
    filter: brightness(1.1);
}

.image-filter-contrast {
    filter: contrast(1.1);
}

.image-filter-saturate {
    filter: saturate(1.2);
}

.image-filter-sepia {
    filter: sepia(0.3);
}

/* Hover Effects for Product Images */
.product-image-hover {
    position: relative;
    overflow: hidden;
}

.product-image-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-image-hover:hover::before {
    opacity: 1;
}

.product-image-hover .overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.product-image-hover:hover .overlay-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Image Badge Positioning */
.image-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.image-badge.sale {
    background: #dc3545;
}

.image-badge.new {
    background: #28a745;
}

.image-badge.featured {
    background: #ffc107;
    color: #000;
}

/* Fallback CSS Variables - Ensure they're always available */
:root {
    /* Bootstrap Override */
    --bs-body-font-size: 13px;
    
    /* Primary Colors (now blue theme) */
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    
    /* Secondary Colors (now gray theme) */
    --secondary-500: #627d98;
    --secondary-600: #486581;
    --secondary-700: #334e68;
    
    /* Success Colors */
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;
    
    /* Warning Colors */
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;
    
    /* Danger Colors */
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;
    
    /* Info Colors */
    --info-500: #06b6d4;
    --info-600: #0891b2;
    --info-700: #0e7490;
    
    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, #0ea5e9, #0369a1);
    --gradient-secondary: linear-gradient(135deg, #627d98, #334e68);
    --gradient-success: linear-gradient(135deg, #22c55e, #15803d);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #b45309);
    --gradient-danger: linear-gradient(135deg, #ef4444, #b91c1c);
    --gradient-info: linear-gradient(135deg, #06b6d4, #0e7490);
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-white: #ffffff;
    
    /* Border Colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    /* Shadow Colors */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Focus Ring Colors */
    --focus-ring-primary: 0 0 0 3px rgba(98, 125, 152, 0.1);
    
    /* Color Mappings */
    --color-primary: var(--primary-500);
    --color-primary-hover: var(--primary-600);
    --color-primary-light: #f0f4f8;
    --color-primary-dark: var(--primary-700);
}

/* تخطيط عام للصفحات */
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.container-fluid {
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

/* تحسين الصف الرئيسي */
.container-fluid > .row {
    min-height: 100vh;
    margin: 0;
}

/* تحسين عمود السايد بار */
/* .col-md-2 {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 16.666667%;
    padding: 0;
    z-index: 1000;
    overflow-y: auto;
    background: #2c3e50;
} */

/* تحسين عمود المحتوى الرئيسي */
.col-md-10 {
    margin-right: 16.666667%; /* نفس عرض السايد بار */
    min-height: 100vh;
    padding: 2rem;
    background: var(--bg-secondary);
}

/* تحسين المحررات النصية */
.ql-toolbar {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.ql-container {
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: var(--shadow-sm);
}

.ql-editor {
    /* min-height: 350px; */
    font-size: 16px;
    line-height: 1.6;
    padding: 1.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.ql-editor:focus {
    outline: none;
    box-shadow: var(--focus-ring-primary);
}

/* تحسين أزرار شريط الأدوات */
.ql-toolbar .ql-formats {
    margin-left: 0.5rem;
}

.ql-toolbar button {
    border-radius: 4px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.ql-toolbar button:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.ql-toolbar button.ql-active {
    background: var(--color-primary);
    color: var(--text-white);
}


/* تحسين النماذج */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring-primary);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* تحسين الأزرار */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--gradient-success);
    color: var(--text-white);
}

/* Updated btn-success hover - cache bust v1.1 */
.btn-success:hover,
.btn-success.btn:hover,
button.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
}

.btn-warning {
    background: var(--gradient-warning);
    color: var(--text-white);
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--color-warning-hover), var(--color-warning-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: var(--gradient-danger);
    color: var(--text-white);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--color-danger-hover), var(--color-danger-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-info {
    background: var(--gradient-info);
    color: var(--text-white);
}

.btn-info:hover {
    background: linear-gradient(135deg, var(--color-info-hover), var(--color-info-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--color-secondary-hover), var(--color-secondary-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #000 !important;
}

/* تحسين البطاقات */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: 12px 12px 0 0;
    padding: 1.25rem;
    border: none;
}

.card-body {
    padding: 1.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* تحسين الجداول */
.table {
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background: var(--color-primary);
    color: var(--text-white);
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody td {
    padding: 1rem;
    border-color: var(--border-light);
    vertical-align: middle;
    color: var(--text-primary);
}

.table tbody tr:hover {
    background: var(--bg-tertiary);
}

/* تحسين التنبيهات */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: var(--color-success-light);
    color: var(--color-success-dark);
    border-left: 4px solid var(--color-success);
}

.alert-danger {
    background: var(--color-danger-light);
    color: var(--color-danger-dark);
    border-left: 4px solid var(--color-danger);
}

.alert-warning {
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
    border-left: 4px solid var(--color-warning);
}

.alert-info {
    background: var(--color-info-light);
    color: var(--color-info-dark);
    border-left: 4px solid var(--color-info);
}

.alert-primary {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-left: 4px solid var(--color-primary);
}

.alert-secondary {
    background: var(--color-secondary-light);
    color: var(--color-secondary-dark);
    border-left: 4px solid var(--color-secondary);
}

/* تحسين الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .col-md-2 {
        position: relative;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }
    
    .col-md-10 {
        margin-right: 0;
        padding: 1rem;
    }
    
    .ql-editor {
        min-height: 250px;
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .col-md-2 {
        width: 20%;
    }
    
    .col-md-10 {
        margin-right: 20%;
    }
}

/* تحسين التمرير */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-hover);
}

/* تحسين الانتقالات */
* {
    transition: all 0.3s ease;
}

/* تحسين النصوص */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* تحسين الروابط */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

/* إضافة في نهاية الملف */

/* تحسين التخطيط عند طي السايد بار */
.sidebar-collapsed .col-md-2 {
    width: 60px !important;
    flex: 0 0 60px !important;
    max-width: 60px !important;
}

.sidebar-collapsed .col-md-10 {
    margin-right: 60px !important;
    flex: 0 0 calc(100% - 60px) !important;
    max-width: calc(100% - 60px) !important;
}

/* دعم إضافي للصفحات التي تستخدم col-md-3 و col-lg-2 */
.sidebar-collapsed .col-md-3,
.sidebar-collapsed .col-lg-2 {
    width: 60px !important;
    flex: 0 0 60px !important;
    max-width: 60px !important;
}

.sidebar-collapsed .col-md-9,
.sidebar-collapsed .col-lg-10 {
    margin-right: 60px !important;
    flex: 0 0 calc(100% - 60px) !important;
    max-width: calc(100% - 60px) !important;
}

/* انتقال سلس للأعمدة */
.col-md-2, .col-md-10, .col-md-3, .col-lg-2, .col-md-9, .col-lg-10 {
    transition: all 0.3s ease !important;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 768px) {
    .sidebar-collapsed .col-md-2,
    .sidebar-collapsed .col-md-3,
    .sidebar-collapsed .col-lg-2 {
        width: 50px !important;
        flex: 0 0 50px !important;
        max-width: 50px !important;
    }
    
    .sidebar-collapsed .col-md-10,
    .sidebar-collapsed .col-md-9,
    .sidebar-collapsed .col-lg-10 {
        margin-right: 50px !important;
        flex: 0 0 calc(100% - 50px) !important;
        max-width: calc(100% - 50px) !important;
    }
}

/* تحسين مظهر المحتوى عند الطي */
.sidebar-collapsed .card {
    margin-left: 1rem;
    margin-right: 1rem;
}

.sidebar-collapsed .table-responsive {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

/* تحسين الأزرار عند الطي */
.sidebar-collapsed .btn-group {
    flex-wrap: wrap;
}

/* ===== Professional Currency Switcher ===== */
.currency-switcher-professional {
    position: relative;
    width: 280px; /* Increased width */
    font-family: 'Cairo', sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.current-currency {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 500;
}

.current-currency .currency-symbol {
    font-size: 1.1em;
    color: #333;
}

.current-currency .currency-code {
    margin: 0 10px;
}

.current-currency i {
    transition: transform 0.3s ease;
}

.currency-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    z-index: 1050; /* Ensure it's above other elements */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.currency-dropdown .dropdown-header {
    padding: 10px 15px;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.currency-dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    font-size: 0.95em;
}

.currency-dropdown li:hover {
    background-color: #f5f5f5;
}

.currency-dropdown li.active {
    background-color: #e3f2fd;
    font-weight: 500;
}

.currency-info {
    display: flex;
    align-items: center;
}

.currency-info .currency-symbol {
    font-weight: bold;
    margin-right: 8px;
    width: 20px; /* Align symbols */
    text-align: center;
}

.currency-rate {
    font-size: 0.85em;
    color: #777;
}

.default-label {
    font-size: 0.8em;
    color: #007bff;
    margin-left: 8px;
    font-weight: 500;
}

.currency-switcher-professional:hover .currency-dropdown {
    display: block;
}

/* ===== أنماط الإشعارات والتنبيهات ===== */

/* إشعار الحجز */
.booking-notification {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: none;
}

.booking-notification.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.booking-notification h5 {
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.booking-notification .notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.booking-notification .notification-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.booking-notification .label {
    font-weight: 500;
    opacity: 0.9;
}

.booking-notification .value {
    font-weight: 600;
    font-size: 1.1em;
}

.booking-notification .value.price {
    color: #ffd700;
    font-size: 1.2em;
}

/* تنبيه الخصم */
.discount-alert {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

.discount-note {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

/* إشعارات تغيير العملة */
.currency-notification {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    font-weight: 500;
}

.currency-notification .fas {
    font-size: 1.1em;
}

/* عرض السعر */
.price-display {
    background: white;
    border: 2px solid #e3e6f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.price-display.show {
    opacity: 1;
    transform: translateY(0);
}

.price-display h5 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.price-display h4 {
    color: #27ae60;
    font-weight: 700;
}

.price-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9em;
    line-height: 1.6;
}

/* معلومات الانتظار */
.waiting-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.waiting-info h6 {
    color: #856404;
    margin-bottom: 10px;
}

/* تحسين الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .booking-notification {
        padding: 15px;
        margin: 15px 0;
    }
    
    .booking-notification .notification-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }
    
    .booking-notification .value {
        margin-top: 5px;
        font-size: 1em;
    }
    
    .booking-notification .value.price {
        font-size: 1.1em;
    }
    
    .discount-alert {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .price-display {
        padding: 15px;
    }
}

/* تأثيرات الحركة */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* تحسين أزرار التواصل */
.contact-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.btn-contact {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.btn-viber {
    background: linear-gradient(135deg, #665cac 0%, #7b68ee 100%);
    color: white;
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
    color: white;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

/* ===== RTL Support - Comprehensive Fixes ===== */

/* Main RTL Layout */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* RTL Bootstrap Overrides */
[dir="rtl"] .container,
[dir="rtl"] .container-fluid {
    direction: rtl;
}

[dir="rtl"] .row {
    direction: rtl;
}

[dir="rtl"] .col,
[dir="rtl"] [class*="col-"] {
    direction: rtl;
    text-align: right;
}

/* RTL Text Alignment */
[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .text-center {
    text-align: center !important;
}

/* RTL Navigation */
[dir="rtl"] .navbar-nav {
    direction: rtl;
}

[dir="rtl"] .navbar-nav .nav-link {
    text-align: right;
}

[dir="rtl"] .navbar-brand {
    text-align: right;
}

[dir="rtl"] .navbar-brand i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* RTL Buttons */
[dir="rtl"] .btn {
    text-align: center;
}

[dir="rtl"] .btn i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* RTL Cards */
[dir="rtl"] .card {
    text-align: right;
}

[dir="rtl"] .card-body {
    text-align: right;
}

[dir="rtl"] .card-title {
    text-align: right;
}

[dir="rtl"] .card-text {
    text-align: right;
}

/* RTL Forms */
[dir="rtl"] .form-control {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .form-label {
    text-align: right;
}

[dir="rtl"] .form-check {
    text-align: right;
}

[dir="rtl"] .form-check-input {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* RTL Tables */
[dir="rtl"] .table {
    direction: rtl;
}

[dir="rtl"] .table th,
[dir="rtl"] .table td {
    text-align: right;
}

/* RTL Lists */
[dir="rtl"] ul,
[dir="rtl"] ol {
    text-align: right;
    padding-right: 0;
    padding-left: 1.5rem;
}

[dir="rtl"] li {
    text-align: right;
}

/* RTL Headings */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    text-align: right;
}

/* RTL Paragraphs */
[dir="rtl"] p {
    text-align: right;
}

/* RTL Margins and Padding */
[dir="rtl"] .me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-4 { margin-left: 1.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-5 { margin-left: 3rem !important; margin-right: 0 !important; }

[dir="rtl"] .ms-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-3 { margin-right: 1rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-4 { margin-right: 1.5rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-5 { margin-right: 3rem !important; margin-left: 0 !important; }

[dir="rtl"] .pe-1 { padding-left: 0.25rem !important; padding-right: 0 !important; }
[dir="rtl"] .pe-2 { padding-left: 0.5rem !important; padding-right: 0 !important; }
[dir="rtl"] .pe-3 { padding-left: 1rem !important; padding-right: 0 !important; }
[dir="rtl"] .pe-4 { padding-left: 1.5rem !important; padding-right: 0 !important; }
[dir="rtl"] .pe-5 { padding-left: 3rem !important; padding-right: 0 !important; }

[dir="rtl"] .ps-1 { padding-right: 0.25rem !important; padding-left: 0 !important; }
[dir="rtl"] .ps-2 { padding-right: 0.5rem !important; padding-left: 0 !important; }
[dir="rtl"] .ps-3 { padding-right: 1rem !important; padding-left: 0 !important; }
[dir="rtl"] .ps-4 { padding-right: 1.5rem !important; padding-left: 0 !important; }
[dir="rtl"] .ps-5 { padding-right: 3rem !important; padding-left: 0 !important; }

/* RTL Flexbox */
[dir="rtl"] .d-flex {
    direction: rtl;
}

[dir="rtl"] .justify-content-start {
    justify-content: flex-end !important;
}

[dir="rtl"] .justify-content-end {
    justify-content: flex-start !important;
}

[dir="rtl"] .align-items-start {
    align-items: flex-end !important;
}

[dir="rtl"] .align-items-end {
    align-items: flex-start !important;
}

/* RTL Icons */
[dir="rtl"] .fas,
[dir="rtl"] .far,
[dir="rtl"] .fab {
    direction: ltr;
}

/* RTL Hero Section */
[dir="rtl"] .hero-section {
    text-align: right;
}

[dir="rtl"] .hero-section h1,
[dir="rtl"] .hero-section p {
    text-align: right;
}

/* RTL Services Section */
[dir="rtl"] .services-section {
    text-align: right;
}

[dir="rtl"] .service-card {
    text-align: right;
}

[dir="rtl"] .service-card .card-body {
    text-align: right;
}

/* RTL Contact Section */
[dir="rtl"] .contact-section {
    text-align: right;
}

[dir="rtl"] .contact-info {
    text-align: right;
}

/* RTL Footer - Additional fixes */
[dir="rtl"] .footer-modern {
    direction: rtl;
}

[dir="rtl"] .footer-modern .container {
    direction: rtl;
}

[dir="rtl"] .footer-modern .row {
    direction: rtl;
}

/* RTL Responsive */
@media (max-width: 768px) {
    [dir="rtl"] .col,
    [dir="rtl"] [class*="col-"] {
        text-align: center;
    }
    
    [dir="rtl"] .hero-section h1,
    [dir="rtl"] .hero-section p {
        text-align: center;
    }
    
    [dir="rtl"] .service-card {
        text-align: center;
    }
}