body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'Poppins', 'Roboto', sans-serif;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.light-mode {
    background-color: #f0f0f0;
    color: #333;
}

.container {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    transition: background-color 0.3s;
}

body.light-mode .container {
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#themeToggle {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

#themeToggle:hover {
    background-color: #357abd;
}

h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

label {
    font-weight: 300;
    color: #ccc;
    font-size: 14px;
}

body.light-mode label {
    color: #555;
}

input {
    padding: 12px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 16px;
    background-color: #333;
    color: #e0e0e0;
    font-weight: 400;
    line-height: 1.5;
}

body.light-mode input {
    border-color: #ccc;
    background-color: #fff;
    color: #333;
}

button {
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

button:hover {
    background-color: #218838;
}

.result {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    display: none;
    line-height: 1.6;
}

body.dark-mode .result {
    background-color: #333;
}

body.light-mode .result {
    background-color: #e9ecef;
}

.result.visible {
    display: block;
}