body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-color: #f0f0f0;
    transition: background-color 0.3s, color 0.3s;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

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

.page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 520px;
    margin-top: 2rem;
}

.container {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

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

body.dark h1 {
    color: #e0e0e0;
}

/* 로또 */
#lotto-sets {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0;
}

.lotto-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.lotto-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #888;
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}

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

.number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

body.dark .number {
    background-color: #0f3460;
    color: #e0e0e0;
}

.bonus-option {
    margin: 0.8rem 0 0;
    font-size: 0.95rem;
    color: #555;
}

body.dark .bonus-option {
    color: #ccc;
}

.bonus-option label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.number.bonus {
    background-color: #e74c3c;
    color: white;
    position: relative;
}

body.dark .number.bonus {
    background-color: #c0392b;
    color: white;
}

.bonus-label {
    font-size: 0.7rem;
    color: #e74c3c;
    font-weight: bold;
    margin: 0 0.2rem;
    align-self: center;
}

body.dark .bonus-label {
    color: #ff6b6b;
}

/* 메뉴 추천 */
.menu-result {
    margin: 1rem 0;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.menu-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
}

body.dark .menu-name {
    color: #ff6b6b;
}

.menu-desc {
    font-size: 0.95rem;
    color: #666;
}

body.dark .menu-desc {
    color: #aaa;
}

.controls {
    margin-top: 1rem;
}

button {
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background-color: #3498db;
    color: white;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2980b9;
}

body.dark button {
    background-color: #0f3460;
}

body.dark button:hover {
    background-color: #1a5276;
}

/* 제휴 문의 폼 */
.form-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.2rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #444;
}

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

.form-group input,
.form-group textarea {
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, background-color 0.3s, color 0.3s;
    background-color: #fff;
    color: #222;
    font-family: sans-serif;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
}

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

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

.form-status {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

.form-status.success {
    color: #27ae60;
}

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

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 100;
}

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