/* Reset */
* {
    margin: 0;
    padding-bottom: 3px;
    box-sizing: border-box;
    text-align: center;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #f9f9f9, #dbeafe);
    padding: 30px;
    color: #333;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
    color: #1e3a8a;
}

form {
    max-width: 450px;
    margin: auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #111827;
}

input,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 10px;
    font-size: 16px;
}

input:focus,
select:focus {
    border-color: #2563eb;
}

.exchange-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.exchange-row input {
    flex: 1;
}

.exchange-row select {
    flex: 1;
}

.exchange-row span {
    font-weight: bold;
    color: #2563eb;
}

p {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #047857;
}

button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s;
}

button:hover {
    background: #1d4ed8;
}
.result-box {
    text-align: center;
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #1e40af;
    /* dark blue */
    background: #e0f2fe;
    /* light blue background */
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}

.result-box span {
    color: #047857;
    /* green for value */
    font-size: 22px;
}