:root {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --container-bg: #ffffff;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --ball-bg: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --container-bg: #1e1e1e;
    --primary-color: #3700b3;
    --secondary-color: #444;
    --ball-bg: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.5rem;
}

.numbers-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.ball.placeholder {
    color: #adb5bd;
}

/* 로또 번호 색상 (일반적인 기준) */
.num-10 { background-color: #fbc400; color: white; } /* 1-10 */
.num-20 { background-color: #69c8f2; color: white; } /* 11-20 */
.num-30 { background-color: #ff7272; color: white; } /* 21-30 */
.num-40 { background-color: #aaa; color: white; }    /* 31-40 */
.num-45 { background-color: #b0d840; color: white; } /* 41-45 */

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-primary:active {
    transform: scale(0.98);
}
