/* Add styles here */
:root {
  --bg-color: #f0f2f5;
  --container-bg: #ffffff;
  --text-primary: #1a73e8;
  --text-secondary: #5f6368;
  --game-row-bg: #f8f9fa;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --ball-shadow: rgba(0,0,0,0.2);
}

[data-theme='dark'] {
  --bg-color: #1a1a1a;
  --container-bg: #2d2d2d;
  --text-primary: #8ab4f8;
  --text-secondary: #bdc1c6;
  --game-row-bg: #3d3d3d;
  --shadow-color: rgba(0, 0, 0, 0.4);
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  transition: background-color 0.3s ease;
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

#theme-btn {
  background: var(--container-bg);
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px var(--shadow-color);
  transition: all 0.3s ease;
}

.container {
  background-color: var(--container-bg);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px var(--shadow-color);
  text-align: center;
  width: 90%;
  max-width: 500px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

h1 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.lotto-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* 결과가 없을 때 컨테이너 높이 유지 (선택사항) */
.lotto-container:empty {
  min-height: 0;
}

.lotto-game {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: var(--game-row-bg);
  border-radius: 1rem;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.lotto-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: white;
  font-size: 1.1rem;
  text-shadow: 1px 1px 2px var(--ball-shadow);
}

/* 로또 번호대별 색상 */
.ball.color-1 { background: linear-gradient(135deg, #fbc400, #f8a500); } /* 1-10 */
.ball.color-2 { background: linear-gradient(135deg, #69c8f2, #29abe2); } /* 11-20 */
.ball.color-3 { background: linear-gradient(135deg, #ff7272, #ff4d4d); } /* 21-30 */
.ball.color-4 { background: linear-gradient(135deg, #aaa, #888); }       /* 31-40 */
.ball.color-5 { background: linear-gradient(135deg, #b0d840, #96b82d); } /* 41-45 */

#generate-btn {
  background-color: var(--text-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

#generate-btn:hover {
  filter: brightness(1.1);
}

#generate-btn:active {
  transform: scale(0.98);
}
