/* Currency Converter Styles */

/* Main Currency Converter Page */
.currency-converter-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.currency-card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.currency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.currency-card .card-header {
    background: linear-gradient(45deg, #808280, #666766);
    color: white;
    border: none;
    padding: 20px;
}

.currency-card .card-body {
    padding: 30px;
}

/* Form Elements */
.currency-input {
    font-size: 1.25rem;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.currency-input:focus {
    border-color: #454745;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.currency-select {
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 15px;
    font-weight: 500;
}

.convert-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.convert-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Result Display */
.conversion-result {
    background: linear-gradient(135deg, #e8f5e8, #f1f8f1);
    border: none;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    border-left: 5px solid #4CAF50;
}

.result-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e7d32;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Quick Convert Buttons */
.quick-convert-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.quick-convert {
    background: white;
    border: 2px solid #4CAF50;
    color: #808080;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quick-convert:hover {
    background: #3b3c3b;
    color: white;
    transform: scale(1.05);
}

/* Rates Card */
.rates-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    border: none;
}

.rates-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    backdrop-filter: blur(10px);
}

.current-rate {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* History */
.history-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #4CAF50;
    transition: background 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Widget Styles */
.currency-widget .dropdown-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.currency-widget .dropdown-toggle:hover,
.currency-widget .dropdown-toggle:focus {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.currency-widget .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 320px;
    background: white;
}

.currency-widget .dropdown-header {
    color: #333;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.currency-widget .form-control,
.currency-widget .form-select {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.currency-widget .form-control:focus,
.currency-widget .form-select:focus {
    border-color: #4b4d4b;
    box-shadow: 0 0 0 0.15rem rgba(76, 175, 80, 0.25);
}

.currency-widget .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.currency-widget .btn-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-1px);
}

.currency-widget .btn-outline-secondary {
    border: 2px solid #6c757d;
    border-radius: 8px;
    padding: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.currency-widget .btn-outline-secondary:hover {
    background: #6c757d;
    transform: translateY(-1px);
}

/* Info Cards */
.info-feature {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.info-feature:hover {
    transform: translateY(-5px);
}

.info-feature .feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.info-feature h6 {
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}

.info-feature p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .currency-widget .dropdown-menu {
        min-width: 280px;
        left: auto !important;
        right: 0 !important;
        transform: translateX(0) !important;
    }
    
    .result-amount {
        font-size: 2rem;
    }
    
    .currency-card .card-body {
        padding: 20px;
    }
    
    .quick-convert-group {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .currency-widget .dropdown-toggle {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .currency-widget .dropdown-menu {
        min-width: 260px;
        padding: 15px;
    }
    
    .currency-input {
        font-size: 1rem;
        padding: 12px;
    }
    
    .result-amount {
        font-size: 1.8rem;
    }
}

/* Dynamic input highlighting for main page */
.form-control.converting {
    background: linear-gradient(45deg, #fff3cd, #ffffff);
    border-color: #ffc107;
    animation: pulse-yellow 1s infinite;
}

@keyframes pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

/* Success animation for conversions */
.form-control.converted {
    background: linear-gradient(45deg, #d4edda, #ffffff);
    border-color: #28a745;
    animation: pulse-green 0.6s ease-out;
}

@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(40, 167, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

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

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Success Animation */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.conversion-result.animate {
    animation: slideInUp 0.5s ease-out;
}

/* Chart Styles (for future rate charts) */
.rate-chart {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

/* Notification Styles */
.currency-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.currency-notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.currency-notification.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.currency-notification.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}