:root {
    --background-color: #f0f2f5;
    --container-background: white;
    --text-color: #333;
    --button-background: #4CAF50;
    --button-hover-background: #45a049;
    --number-background: #f0f0f0;
    --input-background: #fff;
}

[data-theme="dark"] {
    --background-color: #1a1a1a;
    --container-background: #2a2a2a;
    --text-color: #f0f2f5;
    --button-background: #007bff;
    --button-hover-background: #0056b3;
    --number-background: #3a3a3a;
    --input-background: #3a3a3a;
}

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* Allow body to grow */
    min-height: 100vh;
    margin: 0;
    padding: 2rem 0; /* Add some padding */
    background-color: var(--background-color);
    transition: background-color 0.3s;
}

.container {
    text-align: center;
    padding: 2rem;
    background-color: var(--container-background);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    max-width: 500px;
    width: 90%;
}

h1 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.theme-switch-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

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

.theme-switch input {
    display:none;
}

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

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

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

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

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

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

#generate-btn {
    background-color: var(--button-background);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#generate-btn:hover {
    background-color: var(--button-hover-background);
}

.numbers-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--number-background);
    border-radius: 50%;
    margin: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Form Styles */
.form-container {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--number-background);
}

.form-container h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form label {
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: left;
}

form input,
form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: var(--input-background);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    box-sizing: border-box; /* Add this */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--button-background);
}

form button {
    background-color: var(--button-background);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

form button:hover {
    background-color: var(--button-hover-background);
}
