/* مبدل العملات - التنسيقات */
.currency-switcher-frontend {
    position: relative;
}

.currency-switcher-frontend .dropdown-toggle {
    min-width: 140px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 500;
}

.currency-switcher-frontend .dropdown-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.currency-switcher-frontend .dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.currency-dropdown {
    min-width: 320px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0;
    overflow: hidden;
}

.currency-dropdown .dropdown-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 15px 20px;
    margin: 0;
    border-radius: 0;
}

.currency-dropdown .dropdown-divider {
    margin: 0;
    border-color: #e9ecef;
}

.currency-option {
    padding: 15px 20px;
    transition: all 0.3s ease;
    border: none;
    background: white;
}

.currency-option:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(5px);
    border-left: 4px solid #667eea;
}

.currency-option.active {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    font-weight: 600;
}

.currency-option.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #2196f3;
    float: left;
}

.currency-info {
    flex: 1;
}

.currency-symbol {
    font-weight: bold;
    color: #667eea;
    font-size: 1.1em;
    margin-left: 8px;
}

.currency-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #333;
}

.currency-name {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 2px;
}

.exchange-rate {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 3px;
    font-style: italic;
}

.currency-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-display {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.currency-display .currency-symbol {
    margin-left: 5px;
    color: white;
}

.currency-display .currency-code {
    color: white;
    font-family: inherit;
}

/* تأثيرات التحميل */
.currency-loading {
    opacity: 0.6;
    pointer-events: none;
}

.currency-loading .dropdown-toggle {
    background: #6c757d !important;
}

/* الإشعارات */
.currency-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* عرض الأسعار */
.price-display {
    font-weight: 600;
    color: #2c3e50;
}

.price-display.loading {
    opacity: 0.6;
    position: relative;
}

.price-display.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .currency-dropdown {
        min-width: 280px;
    }
    
    .currency-option {
        padding: 12px 15px;
    }
    
    .currency-switcher-frontend .dropdown-toggle {
        min-width: 120px;
        font-size: 0.9em;
    }
}

/* تحسينات إضافية */
.currency-badge {
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 10px;
}

.currency-default-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: white;
}

.currency-popular-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

/* تأثيرات الانتقال */
.currency-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تحسين إمكانية الوصول */
.currency-option:focus {
    outline: 2px solid #667eea;
    outline-offset: -2px;
}

.currency-switcher-frontend .dropdown-toggle:focus {
    outline: none;
}

/* تنسيق خاص للوضع المظلم */
@media (prefers-color-scheme: dark) {
    .currency-dropdown {
        background: #2c3e50;
        color: white;
    }
    
    .currency-option {
        background: #2c3e50;
        color: white;
    }
    
    .currency-option:hover {
        background: #34495e;
    }
    
    .currency-name {
        color: #bdc3c7;
    }
    
    .exchange-rate {
        color: #95a5a6;
    }
}