:root {
    --bg-color: #1a1a1a;
    --text-color: #fff;
    --card-bg: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-color: rgba(255, 255, 255, 0.1);
    --dot-color: rgba(255, 255, 255, 0.05);
    --h1-shadow: rgba(255, 255, 255, 0.3);
    --label-color: #4CAF50;
}

body.light-theme {
    --bg-color: #f0f2f5;
    --text-color: #333;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --glow-color: rgba(0, 0, 0, 0.05);
    --dot-color: rgba(0, 0, 0, 0.05);
    --h1-shadow: rgba(0, 0, 0, 0.1);
    --label-color: #2e7d32;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#app {
    position: relative;
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    background-color: var(--card-bg);
    box-shadow: 0 10px 30px var(--shadow-color), 0 0 80px var(--glow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 90%;
    max-width: 600px;
}

h1 {
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 0 10px var(--h1-shadow);
}

#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#theme-toggle:hover {
    transform: rotate(30deg);
}

.display-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.set-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    background-color: var(--glow-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.set-wrapper:hover {
    transform: translateX(10px);
    background-color: rgba(76, 175, 80, 0.1);
}

.set-label {
    font-size: 1.2em;
    font-weight: 900;
    color: var(--label-color);
    width: 40px;
    text-align: left;
    flex-shrink: 0;
}

#generate-button {
    background-color: #4CAF50;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#generate-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

#generate-button:active {
    transform: translateY(0);
}

lotto-display {
    flex-grow: 1;
}
