:root {
    /* 라이트 모드 컬러 */
    --bg-light: linear-gradient(135deg, #74ebd5, #9face6);
    --container-bg-light: rgba(255, 255, 255, 0.6);
    --text-main-light: #333;
    --btn-bg-light: #444;
    --btn-text-light: #fff;

    /* 다크 모드 컬러 */
    --bg-dark: linear-gradient(135deg, #1e3c72, #2a5298);
    --container-bg-dark: rgba(0, 0, 0, 0.3);
    --text-main-dark: #eee;
    --btn-bg-dark: #fff;
    --btn-text-dark: #333;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg-light);
    transition: background 0.5s ease;
    color: var(--text-main-light);
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-main-dark);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--container-bg-light);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: background 0.5s ease;
    width: 90%;
    max-width: 500px;
}

body.dark-mode .container {
    background: var(--container-bg-dark);
}

h1 { margin-bottom: 20px; }

/* 번호 영역 */
#numbers {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 60px;
}

/* 로또 볼 */
.ball {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: bold;
    color: white;
}

/* 생성 버튼 */
.generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    background: #ff4757;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

body.dark-mode .generate-btn {
    background: #ffa502;
    color: #000;
}

.generate-btn:hover {
    transform: scale(1.05);
}

/* 다크 모드 토글 버튼 */
#darkModeToggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

body.dark-mode #darkModeToggle {
    background: #fff;
    color: #333;
}

/* 기존 색상 클래스 유지 */
.yellow { background: #fbc400 }
.blue   { background: #69c8f2 }
.red    { background: #ff7272 }
.gray   { background: #aaa }
.green  { background: #7bcc78 }
