:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #f2f2f2;
    --text-color: #333;
    --container-bg-color: white;
    --result-bg-color: #f9f9f9;
}

body.dark-mode {
    --primary-color: #9b59b6;
    --secondary-color: #27ae60;
    --background-color: #2c3e50;
    --text-color: #ecf0f1;
    --container-bg-color: #34495e;
    --result-bg-color: #4a627a;
}

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

.container {
    background-color: var(--container-bg-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .container {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

h1 {
    color: var(--primary-color);
}

.winning-numbers {
    margin-bottom: 1rem;
}

#winning-numbers-container,
#user-inputs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.number-input,
.winning-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid var(--primary-color);
}

.winning-number {
    background-color: var(--primary-color);
    color: white;
}

.number-input {
    text-align: center;
    background-color: var(--container-bg-color); /* Ensure input background changes with theme */
    color: var(--text-color); /* Ensure input text color changes with theme */
}

#check-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

#check-button:hover {
    background-color: #27ae60;
}

/* Style for theme toggle button */
#theme-toggle {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s;
}

#theme-toggle:hover {
    background-color: var(--secondary-color);
}

/* Styles for result-display Web Component in main.js, overriding its internal styles for theme */
result-display::shadow .result {
    background-color: var(--result-bg-color) !important;
    color: var(--text-color) !important;
    border-color: var(--secondary-color) !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
result-display::shadow h3 {
    color: var(--secondary-color) !important;
    transition: color 0.3s ease;
}

