:root {
    --bg-color-light: #f0f0f0;
    --text-color-light: #333;
    --container-bg-light: #fff;
    --number-bg-light: #e0e0e0;

    --bg-color-dark: #121212;
    --text-color-dark: #fff;
    --container-bg-dark: #1e1e1e;
    --number-bg-dark: #333;

    --primary-color: #4CAF50;
    --primary-color-hover: #45a049;
}

body {
    font-family: sans-serif;
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
}

.container {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--container-bg-dark);
    transition: background-color 0.3s;
}

body.light-mode .container {
    background-color: var(--container-bg-light);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

h1 {
    margin: 0;
}

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

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

body.light-mode .number {
    background-color: var(--number-bg-light);
}

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

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

/* Theme Switcher Styles */
.theme-switcher {
    display: flex;
    align-items: center;
}

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

.theme-switch input {
    display: none;
}

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

.slider:before {
    background-color: #fff;
    bottom: 3px;
    content: "";
    height: 18px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 18px;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

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