body {
    background-color: #000080; /* Dark Blue */
    color: white;
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 3em; /* Larger title */
}

main {
    width: 100%;
    max-width: 600px; /* Limit width for better readability */
    background-color: #000066; /* Slightly lighter blue for main content area */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.converter {
    margin-bottom: 30px;
}

.converter h2 {
    margin-top: 0;
    border-bottom: 1px solid white;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
}

input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

button {
    padding: 12px 20px;
    background-color: #4CAF50; /* Green */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.output-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #00004d; /* Even darker blue for output */
    border-radius: 4px;
}

.output-container p {
    margin: 0 0 10px 0;
    font-weight: bold;
}

.result-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f0f0f0; /* Light background for result itself */
    color: #333; /* Dark text for result */
    padding: 10px;
    border-radius: 4px;
    word-break: break-all; /* Ensure long strings wrap */
}

.result-display span {
    flex-grow: 1;
    font-family: monospace; /* Monospace for better readability of codes */
    font-size: 1.1em;
}

.copy-button {
    padding: 5px 10px;
    font-size: 0.9em;
    background-color: #007bff; /* Blue */
}

.copy-button:hover {
    background-color: #0056b3;
}

hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px 0;
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    font-size: 17px;
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s, bottom 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Slide up */
} 