:root {
    --bg-color: #f0f0f0;
    --card-bg-color: #fff;
    --text-color: #000;
    --dot-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --card-bg-color: #2a2a2a;
    --text-color: #fff;
    --dot-color: rgba(255, 255, 255, 0.1);
}


body {
    font-family: sans-serif;
    display: grid;
    place-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    transition: background-color 0.3s, color 0.3s;
}

.lotto-card {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.15);
    text-align: center;
    transition: background-color 0.3s;
}

.numbers {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.generate-button {
    background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 172, 254, 0.4);
    transition: all 0.2s ease-in-out;
}

.generate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(79, 172, 254, 0.5);
}

.generate-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(79, 172, 254, 0.4);
}

/* Theme Switcher */
.theme-switch-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
}

.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: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%;
}
