/* General Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light text */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Converter Container */
.converter-container {
    background-color: #1e1e1e; /* Slightly lighter dark shade for the card */
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h1 {
    color: #ffffff; /* White heading */
    margin-bottom: 25px;
    font-size: 1.8em;
}

/* Input Fields and Labels */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #a0a0a0; /* Grey for labels */
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px;
    background-color: #2c2c2c; /* Dark input background */
    border: 1px solid #444;
    border-radius: 8px;
    box-sizing: border-box; 
    font-size: 1em;
    color: #e0e0e0; /* Light text for input */
}

input:focus {
    border-color: #03dac6; /* Teal accent color for focus */
    outline: none;
    box-shadow: 0 0 5px rgba(3, 218, 198, 0.3);
}

/* Convert Button */
button {
    width: 100%;
    padding: 12px;
    background-color: #03dac6; /* Teal accent color */
    color: #121212; /* Dark text on button */
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

button:hover {
    background-color: #01bfa5; /* Slightly darker teal on hover */
}

button:active {
    transform: scale(0.98); /* Click effect */
}

/* Result Display */
#result {
    margin-top: 25px;
    padding: 15px;
    background-color: #2c2c2c; /* Dark background for result */
    border-radius: 8px;
    min-height: 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    word-wrap: break-word; 
    border: 1px solid #444;
}

/* Error Message Styling */
#result.error {
    color: #cf6679; /* Material Design dark theme error color */
    background-color: rgba(207, 102, 121, 0.1);
    border-color: rgba(207, 102, 121, 0.3);
}
