
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 500px;
    width: 100%;
}

h1 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.converter-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.2rem;
    outline: none;
}

.input-group input:focus {
    border-color: #667eea;
}

.currency-row {
    display: flex;
    align-items: end;
    gap: 15px;
    margin-bottom: 25px;
}

.currency-group {
    flex: 1;
}

.currency-group label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.currency-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.currency-group select:focus {
    border-color: #667eea;
}

.swap-btn {
    background: #667eea;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 5px;
}

.swap-btn:hover {
    background: #5a67d8;
}

.convert-btn {
    width: 100%;
    padding: 15px;
    background: #667eea;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 25px;
}

.convert-btn:hover {
    background: #5a67d8;
}

.result {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.result-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.exchange-rate {
    color: #666;
    font-size: 1rem;
}

/* Mobile friendly */
@media (max-width: 480px) {
    .currency-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .swap-btn {
        align-self: center;
    }
    
    h1 {
        font-size: 2rem;
    }
}
