body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px 0;
    gap: 20px;
    transition: background-color 0.3s ease;
}

body.dark {
    background-color: #1a1a1a;
}

.container {
    width: 90%;
    max-width: 500px;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark .container {
    background: #2c2c2c;
    color: #f0f2f5;
}

h1, h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 30px;
}

body.dark h1, body.dark h2 {
    color: #f0f2f5;
}

.lotto-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.lotto-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #4CAF50;
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
}

#generate-btn, .contact-form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

#generate-btn:hover, .contact-form button:hover {
    background-color: #0056b3;
}

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

.contact-form label {
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body.dark .contact-form input, body.dark .contact-form textarea {
    background-color: #444;
    color: #f0f2f5;
    border-color: #555;
}

.theme-switch-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
