:root {
    --bg-color: #f4f7f6;
    --container-bg: #ffffff;
    --text-color: #333333;
    --primary-color: #4CAF50;
    --primary-hover: #45a049;
    --secondary-bg: #e9e9e9;
    --border-color: #dddddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --bg-color: #121212;
    --container-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --primary-color: #66bb6a;
    --primary-hover: #57a05b;
    --secondary-bg: #2c2c2c;
    --border-color: #444444;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top with some margin */
    min-height: 100vh;
    background-color: var(--bg-color);
    margin: 0;
    color: var(--text-color);
    padding: 20px;
    transition: background-color 0.3s, color 0.3s;
    box-sizing: border-box;
}

.container {
    background-color: var(--container-bg);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: background-color 0.3s;
}

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

/* Theme Toggle Button */
#theme-toggle {
    /* Position handled by layout */
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
    cursor: pointer;
    font-size: 0.85em;
    color: var(--text-color);
    transition: background 0.2s;
    margin-left: auto; /* Push to right if in flex container */
}

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

/* Navigation */
nav {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

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

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

/* Tool Sections */
.tool-section {
    margin-bottom: 20px;
}

.tool-section h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tool-section p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.9;
}

/* Buttons */
button {
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 10px;
    transition: background-color 0.2s, transform 0.1s;
    font-weight: 600;
}

button:hover {
    background-color: var(--primary-hover);
}

button:active {
    transform: scale(0.98);
}

/* Lotto Section */
#lotto-numbers-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

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

/* Divider */
hr {
    margin: 40px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* Menu Result */
#menu-result {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    min-height: 1.5em;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

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

#submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* Disqus */
#disqus_thread {
    margin-top: 20px;
}