* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Converter Card */
.converter-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px 15px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffa500;
    animation: pulse 2s infinite;
}

.status-indicator.online .status-dot {
    background: #4caf50;
}

.status-indicator.offline .status-dot {
    background: #f44336;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
}

.input-group input.invalid {
    border-color: #f44336;
}

/* Currency Row */
.currency-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 30px;
}

.currency-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.swap-button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.swap-button:hover {
    background: #764ba2;
    transform: rotate(180deg);
}

/* Result Section */
.result-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.result-amount {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.exchange-rate {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.last-updated {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Refresh Button */
.refresh-button {
    width: 100%;
    padding: 15px;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.refresh-button:hover {
    background: #e0e0e0;
    border-color: #667eea;
}

/* Features Section */
.features {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.features h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 20px;
}

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

.feature-card h3 {
    margin-bottom: 10px;
    color: #667eea;
}

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

/* Footer */
.footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    padding: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .converter-card {
        padding: 25px;
    }
    
    .currency-row {
        flex-direction: column;
    }
    
    .swap-button {
        width: 100%;
        transform: rotate(90deg);
    }
    
    .result-amount {
        font-size: 2rem;
    }
}