
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    margin: 0;
    padding: 60px 20px 40px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    gap: 40px;
}

body.dark {
    background-color: #1a1a2e;
}

.container {
    text-align: center;
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark .container {
    background-color: #16213e;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

h1 {
    color: #333;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

body.dark h1 {
    color: #e0e0e0;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    z-index: 100;
}

.theme-toggle:hover {
    background-color: rgba(0,0,0,0.05);
}

body.dark .theme-toggle {
    border-color: #555;
    color: #e0e0e0;
}

body.dark .theme-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.generate-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.generate-btn:hover {
    background-color: #0056b3;
}

lotto-ball {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

lotto-ball:hover {
    transform: scale(1.1);
}

/* Contact Form */
.form-container {
    width: 100%;
    max-width: 480px;
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark .form-container {
    background-color: #16213e;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.form-container h2 {
    color: #333;
    margin: 0 0 24px;
    font-size: 22px;
    transition: color 0.3s ease;
}

body.dark .form-container h2 {
    color: #e0e0e0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease;
}

body.dark .form-group label {
    color: #aaa;
}

.form-group input,
.form-group textarea {
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fafafa;
    color: #333;
    transition: border-color 0.2s ease, background-color 0.3s ease, color 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

body.dark .form-group input,
body.dark .form-group textarea {
    background-color: #0f3460;
    border-color: #334;
    color: #e0e0e0;
}

body.dark .form-group input::placeholder,
body.dark .form-group textarea::placeholder {
    color: #667;
}

.submit-btn {
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.submit-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.form-status {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
    color: #28a745;
}

.form-status.error {
    color: #dc3545;
}
