body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 500px;
    position: relative;
}

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

h1 {
    color: #333;
    font-size: 1.5em;
    margin: 0;
}

#lotto-numbers {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.lotto-set {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.number-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.number-ball[data-color="yellow"] { background-color: #fbc400; }
.number-ball[data-color="blue"] { background-color: #69c8f2; }
.number-ball[data-color="red"] { background-color: #ff7272; }
.number-ball[data-color="gray"] { background-color: #aaa; }
.number-ball[data-color="green"] { background-color: #b0d840; }

#generate-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

#generate-btn:hover {
    background-color: #45a049;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
}

body.dark-mode .container {
    background-color: #1e1e1e;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode h1 {
    color: #fff;
}

body.dark-mode #generate-btn {
    background-color: #5a5a5a;
}

body.dark-mode #generate-btn:hover {
    background-color: #6a6a6a;
}

/* Theme Switch */
.theme-switch-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

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

.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:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

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

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

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