:root {
    --bg-color-light: #f0f0f0;
    --container-bg-light: white;
    --text-color-light: #333;
    --bg-color-dark: #2c2c2c;
    --container-bg-dark: #3a3a3a;
    --text-color-dark: #f0f0f0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color-light);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

.lotto-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    min-height: 80px;
}

.lotto-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: pop-in 0.5s ease-out forwards;
}

#generate-btn {
    background: linear-gradient(45deg, #FF6B6B, #FFA500);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

#generate-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.5);
}

#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--container-bg-light);
    border: 1px solid var(--text-color-light);
    color: var(--text-color-light);
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

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