:root {
    /* Light Mode */
    --background-color: #ffffff;
    --text-color: #2d3436;
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #d63031;
    --font-family: 'Unbounded', sans-serif;
    --btn-text: #ffffff;
    --num-1: #e1b12c; /* Darker yellow for light mode */
    --num-2: #192a56; /* Darker blue */
    --num-3: #c23616; /* Darker red */
    --num-4: #718093; /* Darker grey */
    --num-5: #44bd32; /* Green */
}

[data-theme="dark"] {
    /* Dark Mode (Original) */
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --primary-color: #ffde59;
    --secondary-color: #ff914d;
    --accent-color: #ff5757;
    --btn-text: #1a1a1a;
    --num-1: #ffde59;
    --num-2: #4d91ff;
    --num-3: #ff5757;
    --num-4: #aaaaaa;
    --num-5: #4caf50;
}


body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23n)" opacity="0.05"/%3E%3C/svg%3E');
}

[data-theme="dark"] body {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23n)" opacity="0.2"/%3E%3C/svg%3E');
}

.container {
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--secondary-color);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

[data-theme="dark"] h1 {
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--accent-color);
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.lotto-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pop-in 0.5s ease forwards;
}

@keyframes pop-in {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.actions {
    margin-top: 2rem;
}

.btn {
    font-family: var(--font-family);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease;
    margin: 0.5rem;
}

.btn-generate {
    background-color: var(--primary-color);
    color: var(--btn-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .btn-generate {
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--secondary-color);
}

.btn-copy {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

/* Suggestions Form */
.suggestions {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.suggestions h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Comments Section */
.comments {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    width: 100%;
    text-align: left;
}

.comments h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.suggestions input,
.suggestions textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.suggestions input:focus,
.suggestions textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.suggestions textarea {
    height: 100px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--secondary-color);
    color: #fff;
    width: 100%;
    margin: 0;
    font-size: 0.9rem;
}

[data-theme="dark"] .btn-submit {
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--btn-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
}
