/* Modern Styles overriding/enhancing existing UI */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Inter:wght@400;600&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Cairo', 'Inter', sans-serif !important;
}

/* Glassmorphism Header */
header {
    background: rgba(14, 14, 14, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

/* Modern Card Styles */
.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.group:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.rounded-lg {
    border-radius: 1rem !important;
}

/* Gradients and Effects */
.bg-gradient-to-br {
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a; 
}

::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569; 
}

/* Currency Dropdown */
#currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0; /* Align right for RTL */
    margin-top: 0.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 150px;
    box-shadow: var(--glass-shadow);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#currency-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
}

.currency-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.currency-option.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

/* Button enhancements */
button, .btn {
    transition: all 0.2s ease;
}
button:active {
    transform: scale(0.95);
}
