* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.converter {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.field input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
}

.field input:focus {
    border-color: #667eea;
}

.currency-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.currency-row select {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
}

.currency-row select:focus {
    border-color: #667eea;
}

.swap {
    font-size: 20px;
    color: #555;
}

button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.result {
    margin-top: 18px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background: #f4f6ff;
    padding: 12px;
    border-radius: 8px;
    min-height: 45px;
}

/* 📱 Mobile Responsive */
@media (max-width: 400px) {
    h2 {
        font-size: 20px;
    }

    .currency-row {
        flex-direction: column;
    }

    .swap {
        transform: rotate(90deg);
    }
}

.swap {
    cursor: pointer;
    font-size: 22px;
    transition: transform 0.3s ease;
}

.swap:hover {
    transform: rotate(180deg);
}
