
body {
    font-family: sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1rem;
}

h1 {
    color: #6a1b9a; /* Purple */
    margin: 0;
    font-size: 1.8rem;
}

.lang-switcher button {
    background: none;
    border: 1px solid #6a1b9a;
    color: #6a1b9a;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.lang-switcher button.active,
.lang-switcher button:hover {
    background-color: #6a1b9a;
    color: #fff;
}

.converter {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#inputValue {
    flex-grow: 1;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#inputUnit {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-size: 1rem;
}

#convertBtn {
    background-color: #8e24aa; /* Lighter Purple */
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#convertBtn:hover {
    background-color: #6a1b9a; /* Darker Purple */
}

.result {
    margin-top: 1rem;
}

#resultTable {
    width: 100%;
    border-collapse: collapse;
}

#resultTable th,
#resultTable td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

#resultTable th {
    background-color: #f9f9f9;
    color: #6a1b9a;
    font-weight: bold;
}

#resultTable tbody tr:nth-child(even) {
    background-color: #f9f2ff; /* Very light purple */
}
