/* General Body Styles */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif; /* A modern, clean font */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5; /* A light, neutral background */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    transition: background-color 0.3s ease;
    position: relative; /* Needed for absolute positioning of top-right-controls */
}

/* Top Right Controls */
.top-right-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 1000;
}

/* Language Switcher */
#language-switcher {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

body.dark-mode #language-switcher {
    background-color: #333;
    border-color: #555;
    color: #f0f2f5;
}

#language-switcher:hover {
    border-color: #6a11cb;
}

/* Main container for the application */
.main-container {
    text-align: center;
    background: white;
    padding: 3rem 4rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* Main Title */
h1 {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
    transition: color 0.3s ease;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f2f5;
}

body.dark-mode .main-container {
    background: #2a2a2a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode h1 {
    color: #f0f2f5;
}

/* Theme Toggle Button */
#theme-toggle {
    /* Existing button styles */
    padding: 10px 15px; /* Slightly adjusted padding for consistency */
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border: none;
    border-radius: 20px; /* Adjusted border-radius for consistency */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Removed margin-top as it's now in a flex container */
}

#theme-toggle:hover {
    transform: translateY(-2px); /* Slightly adjusted transform */
    box-shadow: 0 6px 20px rgba(37, 117, 252, 0.4);
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333; /* Light mode label color */
}

body.dark-mode .form-group label {
    color: #f0f2f5; /* Dark mode label color */
}

form input[type="text"],
form input[type="email"],
form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    background-color: #f9f9f9;
    color: #333;
}

body.dark-mode form input[type="text"],
body.dark-mode form input[type="email"],
body.dark-mode form textarea {
    background-color: #333;
    border-color: #555;
    color: #f0f2f5;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    border-color: #6a11cb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
}

form button[type="submit"] {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 117, 252, 0.4);
}

form button[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

/* Link back to index.html */
p a {
    color: #6a11cb;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
    transition: color 0.3s ease;
}

p a:hover {
    color: #2575fc;
    text-decoration: underline;
}
