:root {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --nav-bg: #ffffff;
    --container-bg: #ffffff;
    --number-bg: #e9ecef;
    --number-text: #212529;
    --btn-bg: #28a745;
    --btn-hover: #218838;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --primary-color: #007bff;
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #f8f9fa;
    --nav-bg: #1e1e1e;
    --container-bg: #1e1e1e;
    --number-bg: #2d2d2d;
    --number-text: #f8f9fa;
    --shadow-color: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--nav-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Container */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.section {
    background-color: var(--container-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 2rem;
    text-align: center;
}

h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.subtitle { font-size: 1.1rem; color: #6c757d; margin-bottom: 2rem; }

/* Lotto Numbers */
.lotto-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 2rem 0;
}

.number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--number-bg);
    color: var(--number-text);
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.number:hover { transform: scale(1.1); }

/* Buttons */
#generate-btn, .submit-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background-color: var(--btn-bg);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
}

#generate-btn:hover, .submit-btn:hover {
    background-color: var(--btn-hover);
}

#generate-btn:active { transform: scale(0.98); }

/* Theme Toggle */
#theme-btn {
    padding: 0.5rem 1rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Info Section */
.info-section { text-align: left; }
.info-section h2 { border-left: 5px solid var(--primary-color); padding-left: 15px; }

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
}

.divider { border: 0; border-top: 1px solid var(--shadow-color); margin: 3rem 0; }

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--nav-bg);
    margin-top: 4rem;
}

.footer-links a { color: var(--primary-color); text-decoration: none; }
