/* 다크 모드 추가 스타일 */
[data-bs-theme="dark"] body {
  background-color: #222;
  color: #e0e0e0;
}

[data-bs-theme="dark"] .card {
  background-color: #333;
  border-color: #444;
}

[data-bs-theme="dark"] .navbar-dark {
  background-color: #222 !important;
}

[data-bs-theme="dark"] .partners_link_wrap {
  background: linear-gradient(85.94deg, #6a63b5 5.66%, #5a8ec1 94.34%);
}

[data-bs-theme="dark"] strong {
  color: #ff7f50;
}

[data-bs-theme="dark"] .text_coral,
[data-bs-theme="dark"] .font_coral {
  color: #ff7f50;
}

[data-bs-theme="dark"] .dropdown-menu {
  background-color: #333;
  border-color: #444;
}

[data-bs-theme="dark"] .dropdown-item {
  color: #e0e0e0;
}

[data-bs-theme="dark"] .dropdown-item:hover {
  background-color: #444;
  color: #fff;
}

[data-bs-theme="dark"] .table {
  color: #e0e0e0;
}

[data-bs-theme="dark"] .btn-dark {
  background-color: #444;
  border-color: #555;
}

[data-bs-theme="dark"] a {
  color: #FFF;
}

[data-bs-theme="dark"] a:hover {
  color: #a3b7ff;
}


[data-bs-theme="dark"] a.nav-link,
[data-bs-theme="dark"] a.navbar-brand {
  color: var(--bs-nav-link-color);
}

[data-bs-theme="dark"] a.nav-link:hover,
[data-bs-theme="dark"] a.navbar-brand:hover {
  color: white;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #333;
  border-color: #444;
  color: #e0e0e0;
}


[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .btn-light {
  background-color: #333!important;
  color: #e0e0e0!important;
}

[data-bs-theme="dark"] .text-dark {
  color: #e0e0e0!important;
}

[data-bs-theme="dark"] .bg-warning.text-dark {
  color: #000!important;
}

[data-bs-theme="dark"] .notice_link,
[data-bs-theme="dark"] .speaker_link,
[data-bs-theme="dark"] .card__title.simply {
  color: #e0e0e0!important;
}

/* 다크모드 토글 스위치 스타일 */
.darkmode-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.darkmode-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
}

.darkmode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.darkmode-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: .4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.darkmode-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 5px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  z-index: 2;
}

input:checked + .darkmode-slider {
  background-color: #ff7f50; /* coral 색상 */
}

input:checked + .darkmode-slider:before {
  transform: translateX(28px);
}

.darkmode-icon-off,
.darkmode-icon-on {
  color: white;
  font-size: 14px;
  z-index: 1;
}

.darkmode-icon-off {
  margin-left: 4px;
}

.darkmode-icon-on {
  margin-right: 3px;
}

/* 네이버 웨일 브라우저 강제 다크모드 대응 */
@media (prefers-color-scheme: dark) {
  body.force-light {
    background-color: #eee !important;
    color: #212529 !important;
  }
  
  .force-light .navbar-dark {
    background-color: #343a40 !important;
  }
}
