/* استایل‌های سفارشی برای صفحه شاخص‌های اقتصادی */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

.currency-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
}

.currency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    font-weight: bold;
    padding: 1rem 1.25rem;
}

.currency-badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    font-weight: bold;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-value {
    font-weight: bold;
    font-size: 1.1rem;
}

/* استایل‌های جدید برای آپدیت و ترند */
.update-btn {
    padding: 6px 8px;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.update-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.trend-section {
    text-align: center;
}

.trend-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.trend-up {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

.trend-down {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.trend-stable {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* استایل‌های جدید برای بخش جزئیات */
.gdp-trend-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* استایل‌های جدید برای trend-indicator-large در بخش جزئیات */
.trend-indicator-large.trend-up {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.trend-indicator-large.trend-down {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.trend-indicator-large.trend-stable {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.trend-indicator-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.trend-indicator-large i {
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.trend-indicator-large span {
    font-weight: bold;
    font-size: 1.1rem;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 10px 10px;
    min-height: 400px;
    background: #f8f9fa;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background-color: #f8f9fa;
    border-bottom: 3px solid var(--accent-color);
    color: var(--accent-color);
}

.nav-tabs .nav-link:hover {
    border-bottom: 3px solid #dee2e6;
}

.indicator-card {
    border: none;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.indicator-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.indicator-card .card-body {
    padding: 1.5rem;
}

.indicator-card .display-6 {
    font-weight: 700;
    margin: 10px 0;
}

.abbreviation {
    font-size: 0.7rem;
    color: #6c757d;
    margin-left: 5px;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-weight: bold;
}

.positive {
    color: var(--success-color);
    font-weight: bold;
}

.negative {
    color: var(--danger-color);
    font-weight: bold;
}

.stable {
    color: var(--warning-color);
    font-weight: bold;
}

.neutral {
    color: #6c757d;
    font-weight: bold;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .currency-card {
        margin-bottom: 15px;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .trend-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .update-btn {
        width: 28px;
        height: 28px;
    }
    
    .gdp-trend-main {
        padding: 15px;
    }
    
    .trend-indicator-large i {
        font-size: 2rem;
    }
    
    .indicator-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 15px;
    }
    
    .stat-item {
        padding: 8px 0;
    }
    
    .tab-content {
        padding: 15px !important;
    }
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* استایل برای toast */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
}

/* بهبود ظاهر کلی */
body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

.card-header h5 {
    font-weight: 700;
}

.stat-item span:first-child {
    color: #495057;
    font-size: 0.9rem;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* استایل‌های خاص برای تب‌ها */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-item {
    margin-bottom: -2px;
}

.tab-content {
    background: white;
}