* {
    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;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 100%;
    overflow: hidden;
}

.container {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.converter-form {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.currency-row {
    display: flex;
    gap: 15px;
    align-items: end;
}

.currency-input {
    flex: 2;
}

.currency-select{
    flex: 1;
}

input, select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus,
 select:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    text-align: left;

}

.converter-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 18px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.converter-btn:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);

}

.loading{
    margin: 20px;
    display: none;
}

.spinner{
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    margin: 0 auto;
    animation: spin 0.7s linear infinite;
}

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

.result {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    margin-top: 30px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    display: none;
}

.error {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-top: 20px;
    display: none;
}

.info {
    margin-top: 30px;
    font-size: 14px;
    color: #670;
}