body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    margin: 0;
}

.converter-wrapper {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    text-align: center;
    width: 90%;
    max-width: 600px;
}

h1 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.language-selection {
    position: absolute;
    top: 20px;
    right: 20px;
}

#language-select {
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.category-selection {
    margin-bottom: 30px;
}

.category-selection label {
    font-size: 1.1em;
    margin-right: 10px;
    color: #555;
}

#category-select {
    padding: 10px 15px;
    border-radius: 15px;
    border: 1px solid #ddd;
    font-size: 1em;
    background-color: #f9f9f9;
}

.converter-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.converter-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.converter-side label {
    font-size: 1em;
    color: #666;
}

input[type="number"], .output-box, select {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #ddd;
    font-size: 1.2em;
    box-sizing: border-box;
}

.output-box {
    background-color: #e9ecef;
    min-height: 54px; /* Match input height */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#swap-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

#swap-button:hover {
    background-color: #0056b3;
    transform: rotate(180deg);
}
