:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --text-color: #2d3436;
    --toggle-bg: #ccc;
    --toggle-circle: #fff;
}

[data-theme="dark"] {
    --bg-gradient: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #f1f2f6;
    --toggle-bg: #6c5ce7;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
    transition: all 0.5s ease;
}

/* Theme Switcher */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
    gap: 10px;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input { display: none; }

.slider {
    background-color: var(--toggle-bg);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: var(--toggle-circle);
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
}

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

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    width: 95%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.subtitle { margin-bottom: 2rem; opacity: 0.8; }

#lotto-display-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2rem;
}

.lotto-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.lotto-row:last-child { border-bottom: none; }

.lotto-ball {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 2px solid rgba(255,255,255,0.2);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.button-group { display: flex; gap: 10px; justify-content: center; }

button {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

#generate-btn { background-color: #00b894; color: white; }
#generate-btn:hover { background-color: #00cec9; transform: translateY(-2px); }

.secondary-btn {
    background-color: rgba(255,255,255,0.2);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

@media (max-width: 480px) {
    .lotto-ball { width: 35px; height: 35px; font-size: 0.9rem; }
    .glass-container { padding: 1.5rem 0.5rem; }
    .lotto-row { gap: 5px; }
}
