body {
  font-family: 'Noto Sans KR', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* 한국어 폰트 추가 */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #e0f2f7; /* 밝은 하늘색 배경 (태극기 파랑 연상) */
  color: #2c3e50; /* 어두운 글자색 */
  margin: 0;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease; /* 테마 전환 효과 */
}

body.dark-mode {
  background-color: #1a2a3a; /* 어두운 남색 배경 */
  color: #e0f2f7; /* 밝은 글자색 */
}

.container {
  text-align: center;
  padding: 35px;
  background-color: #ffffff;
  border-radius: 15px; /* 더 둥근 모서리 */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* 더 깊은 그림자 */
  max-width: 950px; /* 너비 확장 */
  width: 100%;
  margin: 25px auto;
  min-height: calc(100vh - 50px);
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* 테마 전환 효과 */
}

body.dark-mode .container {
  background-color: #2c3e50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h1 {
  color: #e20000; /* 강렬한 빨간색 (태극기 빨강) */
  font-size: 3.2em;
  margin-bottom: 25px;
  border-bottom: 3px solid #002D62; /* 진한 파란색 (태극기 파랑) */
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  animation: fadeIn 1s ease-out; /* 페이드인 애니메이션 */
}

body.dark-mode h1 {
  color: #ff4d4d; /* 다크모드 빨간색 */
  border-bottom-color: #4a90e2; /* 다크모드 파란색 */
}

h2 {
  color: #002D62; /* 진한 파란색 */
  font-size: 2.2em;
  margin-top: 35px;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}
h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #e20000; /* 강조 빨간색 */
}

body.dark-mode h2 {
  color: #a2d2ff; /* 다크모드 파란색 */
}
body.dark-mode h2::after {
  background-color: #ff4d4d; /* 다크모드 빨간색 */
}

#theme-toggle-button {
  padding: 12px 30px;
  font-size: 1.2em;
  cursor: pointer;
  margin: 20px auto;
  background-color: #007bff; /* 기존 파란색 유지 또는 조정 */
  color: white;
  border: none;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  align-self: flex-end;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#theme-toggle-button:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode #theme-toggle-button {
  background-color: #5a6268;
  color: #ecf0f1;
  border: 1px solid #7f8c8d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
body.dark-mode #theme-toggle-button:hover {
  background-color: #495057;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.status-section {
  background-color: #fefefe;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .status-section {
  background-color: #3d5a80; /* 다크모드 섹션 배경 */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: separate; /* border-radius 적용을 위해 */
  border-spacing: 0; /* border-collapse 대신 사용 */
  margin-top: 20px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode table {
  background-color: #4a627a;
}

th, td {
  padding: 15px 18px;
  text-align: center; /* 중앙 정렬 */
  border-bottom: 1px solid #e0e0e0;
  color: #34495e;
}

body.dark-mode th, body.dark-mode td {
  border-bottom: 1px solid #6c88a4;
  color: #ecf0f1;
}

th {
  background-color: #e9f5f9; /* 밝은 파란색 헤더 배경 */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #002D62; /* 진한 파란색 글자 */
  font-size: 1.0em;
}

body.dark-mode th {
  background-color: #3a4a5a;
  color: #a2d2ff;
}

tr:hover {
  background-color: #f0f8ff; /* 연한 파란색 호버 */
}

body.dark-mode tr:hover {
  background-color: #556c88;
}

.korean-event-row { /* 한국 경기 강조 */
  background-color: #ffe0b2 !important; /* 주황색 계열 */
  font-weight: bold;
}
body.dark-mode .korean-event-row {
  background-color: #5c4033 !important; /* 다크모드 주황색 */
}

/* Flag Icon Styles */
.fi {
  margin-right: 5px;
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,0.1); /* 국기 테두리 */
}

/* Loading Spinner */
#loading-spinner {
  font-size: 1.8em;
  color: #e20000; /* 강조 빨간색 */
  margin-top: 40px;
  text-align: center;
  font-weight: bold;
  animation: pulse 1.5s infinite ease-in-out; /* 로딩 애니메이션 */
}

body.dark-mode #loading-spinner {
  color: #ff4d4d;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}