:root {
    /* Dark Theme (Default) */
    --bg-color: #0f0f15;
    --card-bg: #1e1e26;
    --text-primary: #ffffff;
    --text-secondary: #bbbbbb;
    --accent-gradient: linear-gradient(45deg, #ffcc00, #ff8800);
    --input-bg: #2d2d3a;
    --input-border: #444;
}

[data-theme="light"] {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-gradient: linear-gradient(45deg, #ff9900, #ff5500);
    --input-bg: #f8f9fa;
    --input-border: #dddddd;
}

* {
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Theme Toggle Slider */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.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;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider i {
    color: #f1c40f;
    font-size: 14px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    z-index: 2;
}

input:checked + .slider {
    background-color: #2c3e50;
}

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

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

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

/* Container & Sections */
.container {
    max-width: 800px;
    width: 100%;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hidden-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.active-section {
    display: block;
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Landing Styles */
.main-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Generator Styles */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

select {
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--input-border);
    font-size: 1rem;
    cursor: pointer;
}

/* Buttons */
.primary-btn {
    padding: 15px 40px;
    border-radius: 30px;
    background: var(--accent-gradient);
    color: #000;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(255, 136, 0, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 136, 0, 0.4);
}

.text-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    margin-top: 2rem;
    cursor: pointer;
    text-decoration: underline;
}

/* Ball Styles (Keep from previous but update for light mode) */
#results-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-row {
    background: rgba(128, 128, 128, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ball {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #000;
    box-shadow: inset -4px -4px 8px rgba(0,0,0,0.2), 2px 4px 8px rgba(0,0,0,0.2);
    position: relative;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

/* Lotto Specific Colors (Static) */
.powerball-main { background-color: #0055a4; color: white; }
.powerball-bonus { background-color: #ffcc00; color: #000; }
.ozlotto-ball { background-color: #ffd200; color: #000; }
.saturday-ball { background-color: #e31b23; color: white; }
.monwed-ball { background-color: #0088cc; color: white; }
.setforlife-ball { background-color: #ff66cc; color: white; }
