:root {
    --bg-color: #f0f2f5;
    --text-color: #333;
    --container-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #ccc;
    --sidebar-bg: #f8f9fa;
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --container-bg: #1e1e1e;
    --input-bg: #2d2d2d;
    --input-border: #444;
    --sidebar-bg: #1a1a1a;
}

body {
    font-family: sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

.page-wrapper {
    display: flex;
    min-height: 100vh;
}

.content-area {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar {
    width: 400px;
    padding: 2rem;
    background-color: var(--sidebar-bg);
    border-left: 1px solid var(--input-border);
    max-height: 100vh;
    overflow-y: auto;
}

@media (max-width: 1024px) {
    .page-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: auto;
        border-left: none;
        border-top: 1px solid var(--input-border);
        max-height: none;
    }
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

#theme-toggle {
    padding: 0.5rem 1rem;
    cursor: pointer;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
}

body.dark-mode #theme-toggle {
    background-color: #333;
    color: white;
    border-color: #444;
}

.lotto-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

#lotto-numbers {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.lotto-ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

#generate-button {
    display: block;
    margin: 0 auto 3rem auto;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#generate-button:hover {
    background-color: #45a049;
}

#contact-section {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    background-color: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

#contact-section h2 {
    text-align: center;
    margin-top: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background-color: var(--input-bg);
    color: var(--text-color);
    box-sizing: border-box;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

#submit-button {
    width: 100%;
    padding: 1rem;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submit-button:hover {
    background-color: #1976d2;
}
