* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 32px;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #2c3e50;
}

.converter {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

label {
    font-size: 14px;
    font-weight: 500;
    color: #7f8c8d;
    margin-bottom: 8px;
    align-self: flex-start;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
    background-color: #fff;
}

.exchange-rate {
    font-size: 14px;
    color: #95a5a6;
    margin-top: 16px;
}

#rate-display {
    font-weight: 500;
    color: #27ae60;
}

@media (max-width: 480px) {
    .converter {
        flex-direction: column;
        gap: 16px;
    }
    
    .container {
        padding: 24px;
    }
    
    h1 {
        font-size: 20px;
        margin-bottom: 24px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.5s ease-out;
}

.input-group {
    animation: fadeIn 0.5s ease-out 0.1s both;
}

.input-group:last-child {
    animation-delay: 0.2s;
}