:root {
    --main-color: #004a99;
    --accent-color: #ffd700;
    --bg-color: #f9f9f9;
    --text-color: #333;
    --header-text: white;
    --card-bg: white;
    --card-shadow: rgba(0,0,0,0.1);
    --border-color: var(--main-color);
}

[data-theme="dark"] {
    --main-color: #1a73e8;
    --accent-color: #fbbc04;
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --header-text: #e0e0e0;
    --card-bg: #1e1e1e;
    --card-shadow: rgba(0,0,0,0.5);
    --border-color: #333;
}

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

header {
    background-color: var(--main-color);
    color: var(--header-text);
    padding: 2rem;
    text-align: center;
    position: relative;
}

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

/* 로또 섹션 스타일 */
.lotto-card { 
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px; 
    box-shadow: 0 10px 20px var(--card-shadow);
    text-align: center; 
    border: 2px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.ball-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    min-height: 60px;
    flex-wrap: wrap;
}

.ball {
    width: 50px;
    height: 50px;
    line-height: 50px; 
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.lotto-btn {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.lotto-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 공 색상 분기 */
.color-1 { background: #fbc400; } /* 1-10 */
.color-2 { background: #69c8f2; } /* 11-20 */
.color-3 { background: #ff7272; } /* 21-30 */
.color-4 { background: #aaaaaa; } /* 31-40 */
.color-5 { background: #b0d840; } /* 41-45 */

/* Inquiry Form Styles */
.inquiry-section {
    margin-top: 2rem;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.form-group {
    text-align: left;
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
    box-sizing: border-box;
    transition: 0.3s;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px rgba(0, 74, 153, 0.2);
}

[data-theme="dark"] .inquiry-form input:focus,
[data-theme="dark"] .inquiry-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.4);
}
