
:root {
    color-scheme: light dark;
    --bg: #f0f0f0;
    --card: #ffffff;
    --text: #333333;
    --muted: #6b7280;
    --ball: #4caf50;
    --button: #007bff;
    --button-hover: #0056b3;
    --button-text: #ffffff;
    --toggle-bg: #e5e7eb;
    --toggle-text: #111827;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --card: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --ball: #22c55e;
    --button: #38bdf8;
    --button-hover: #0ea5e9;
    --button-text: #0b1220;
    --toggle-bg: #1f2937;
    --toggle-text: #e5e7eb;
    --shadow: 0 12px 30px rgba(0,0,0,0.45);
}

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

.container {
    text-align: center;
    background-color: var(--card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    min-width: 280px;
}

h1 {
    margin: 0;
    color: var(--text);
    font-size: 1.8rem;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#theme-toggle {
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
    color: var(--toggle-text);
    background-color: var(--toggle-bg);
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#theme-toggle:hover {
    border-color: rgba(0,0,0,0.15);
}

.numbers-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--ball);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

#generate-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: var(--button-text);
    background-color: var(--button);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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