* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ed9cdf 0%, #e861cd 100%); 
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
    max-width: 400px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #e861cd;
    margin-bottom: 10px;
    font-size: 26px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px; 
    font-size: 14px;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
    font-size: 13px;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: #e861cd;
}

.currency-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.currency-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.swap-btn {
    background: #e861cd;
    color: white;
    border: none;
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s; 
    margin-bottom: 5px;
}

.swap-btn:hover {
    background: #e54ad0;
}

.convert-btn {
    width: 100%;
    padding: 12px;
    background: #e861cd;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s; 
    margin-top: 10px;
}

.convert-btn:hover {
    opacity: 0.9;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background: #eef1f8;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.result.show {
    display: block;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.result-amount {
    font-size: 28px;
    color: #e861cd;
    font-weight: bold;
    margin-bottom: 5px;
}

.result-text {
    color: #555;
    font-size: 13px;
}

.loading {
    text-align: center;
    color: #e861cd;
    margin-top: 10px;
    display: none;
}

.error {
    background: #fcdbdc;
    color: #c0392b;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    display: none;
}

@media (max-width: 600px) {
    body {
        padding: 10px; 
    }

    .container {
        padding: 20px; 
    }

    h1 {
        font-size: 22px;
    }
    
    .swap-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    input, select {
        padding: 8px;
        font-size: 14px;
    }

    .convert-btn {
        padding: 10px;
        font-size: 15px;
    }
    
    .result-amount {
        font-size: 24px;
    }
}