:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-color: #f0f2f5;
    --text-color: #333;
    --white: #fff;
    --border-radius: 12px;
    --shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --button-glow: 0 0 15px rgba(37, 117, 252, 0.7);
}

:root[data-theme="dark"] {
    --primary-color: #8a3ffc;
    --secondary-color: #33a1ff;
    --background-color: #121212;
    --text-color: #e0e0e0;
    --white: #1e1e1e;
    --shadow: 0 10px 20px rgba(0,0,0,0.3), 0 6px 6px rgba(0,0,0,0.4);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cg fill-rule="evenodd"%3E%3Cg fill="%239C92AC" fill-opacity="0.1"%3E%3Cpath opacity=".5" d="M96 95h4v1h-4v-1zm-7 5h1v-1h-1v1zm-7 0h1v-1h-1v1zm-7 0h1v-1h-1v1zm-7 0h1v-1h-1v1zm-7 0h1v-1h-1v1zm-7 0h1v-1h-1v1zm-7 0h1v-1h-1v1zm-7 0h1v-1h-1v1zm-7 0h1v-1h-1v1zm-7 0h1v-1h-1v1zm-7 0h1v-1h-1v1zm-7 0h1v-1h-1v1zM0 0h1v-1H0v1z"/%3E%3Cpath d="M-1 100V0h1v100h-1zM100 1V0h-1v1h1zM0 100V-1h1v101H0z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s ease;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

.container {
    position: relative;
    text-align: center;
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.theme-switcher {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    font-size: 1.5rem;
}

.theme-switcher .sun { display: none; }
:root[data-theme="dark"] .theme-switcher .sun { display: inline-block; }
:root[data-theme="dark"] .theme-switcher .moon { display: none; }


h1 {
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.lotto-numbers-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

#generate-btn {
    background-image: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-glow), 0 6px 20px rgba(0,0,0,0.25);
}

.contact-form-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
}

.contact-form-container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't increase total width */
    background-color: var(--background-color);
    color: var(--text-color);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(106, 17, 203, 0.5);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .submit-btn {
    background-image: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-top: 1.5rem;
}

.contact-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-glow), 0 6px 20px rgba(0,0,0,0.25);
}
