
:root {
    --bg-color-light: #f0f2f5;
    --text-color-light: #333;
    --container-bg-light: #ffffff;

    --bg-color-dark: #1a1a1a;
    --text-color-dark: #f0f2f5;
    --container-bg-dark: #2a2a2a;

    --primary-color: #4a90e2;
    --secondary-color: #f5a623;
    --border-radius: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

.container {
    text-align: center;
    background-color: var(--container-bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
}

body.dark-mode .container {
    background-color: var(--container-bg-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


h1 {
    font-weight: 600;
    margin-bottom: 30px;
}

#generate-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.3s, transform 0.2s;
}

#generate-btn:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

.result-container {
    margin-top: 30px;
    font-size: 24px;
}

.lotto-number-set {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.lotto-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    text-align: center;
    margin: 0 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    animation: fadeIn 0.5s ease-in-out;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
}

#theme-label {
    margin-right: 10px;
    font-size: 14px;
}

.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: var(--primary-color);
}

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

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

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