:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5a623;
    --background-color: #f0f4f8;
    --text-color: #333;
    --white-color: #fff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] {
    --primary-color: #58a6ff;
    --secondary-color: #f7b733;
    --background-color: #0d1117;
    --text-color: #c9d1d9;
    --white-color: #161b22;
}


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

.container {
    text-align: center;
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 500px;
    width: 90%;
    transition: background-color 0.3s;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

#theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

#theme-toggle-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.lotto-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#generate-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: var(--box-shadow);
}

#generate-btn:hover {
    background-color: #357ABD;
}

body[data-theme="dark"] #generate-btn:hover {
    background-color: #4092e0;
}

.history {
    margin-top: 2rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#history-list {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

#history-list li {
    background-color: #eee;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    color: #333; /* Ensure text is readable in dark mode */
}

body[data-theme="dark"] #history-list li {
    background-color: #21262d;
    color: var(--text-color);
}
