
:root {
    --bg-color: #f0f2f5;
    --container-bg: #fff;
    --text-color: #333;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --primary-color: #4a90e2;
    --secondary-color: #50e3c2;
    --secondary-hover: #48d1b2;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #f0f2f5;
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.main-container {
    text-align: center;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
}

#theme-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: var(--container-bg);
    color: var(--text-color);
    cursor: pointer;
    box-shadow: var(--shadow);
    font-weight: bold;
    transition: transform 0.2s ease;
}

#theme-btn:active {
    transform: scale(0.95);
}

.lotto-machine {
    background: var(--container-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 400px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

h1 {
    color: var(--text-color);
    margin-bottom: 30px;
}

.numbers-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    min-height: 50px;
}

.number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background: var(--primary-color);
    animation: pop-in 0.5s ease-out forwards;
}

#generate-btn {
    padding: 15px 30px;
    font-size: 18px;
    color: #fff;
    background: var(--secondary-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

@keyframes pop-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .lotto-machine {
        width: 90%;
        padding: 20px;
    }

    .number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
