:root {
    --bg-color: #f0f0f0;
    --container-bg: #fff;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --button-bg: #4CAF50;
    --button-text: white;
    --lotto-bg: #f0f0f0;
    --lotto-text: #333;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --container-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --button-bg: #45a049;
    --button-text: #fff;
    --lotto-bg: #333;
    --lotto-text: #fff;
}

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

.container {
    background-color: var(--container-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--shadow-color);
    text-align: center;
    transition: background-color 0.3s, box-shadow 0.3s;
    position: relative;
}

h1 {
    color: var(--text-color);
    margin-top: 0;
}

.input-section {
    margin-bottom: 20px;
}

button {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.result-section {
    margin-top: 30px;
}

.lotto-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--lotto-bg);
    margin: 5px;
    font-size: 18px;
    font-weight: bold;
    color: var(--lotto-text);
    transition: background-color 0.3s, color 0.3s;
}

#bonus-container {
    margin-top: 20px;
}

#bonus-container p {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Toggle Switch Styles */
.theme-switch-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
}

.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;
    border-radius: 34px;
}

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

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

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