/* Global Dark Mode Styles */
html.dark-mode { background-color: #1a1a2e; }
html.dark-mode body { background-color: #1a1a2e; color: #e0e0e0; }
html.dark-mode .bg-gray-4, html.dark-mode .bg-default { background-color: #16213e !important; }
html.dark-mode .box-categories-content { background-color: #1a1a2e; }
html.dark-mode .box-icon-classic { background-color: #0f3460; border-color: #0f3460; }
html.dark-mode .box-icon-classic-title, html.dark-mode h3, html.dark-mode h5, html.dark-mode p { color: #e0e0e0; }
html.dark-mode .footer-corporate { background-color: #0f0f23; }
html.dark-mode a:not(.button) { color: #4fc3f7; }
html.dark-mode .rd-navbar { background-color: #1a1a2e; }
html.dark-mode .rd-nav-link { color: #e0e0e0 !important; }
html.dark-mode .thumbnail-mary-figure { background-color: #16213e; }
html.dark-mode .owl-carousel .owl-nav button { color: #e0e0e0 !important; }
html.dark-mode .owl-dots .owl-dot span { background-color: #4fc3f7; }

/* Dark Mode Toggle in Header */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(0,0,0,0.1);
  border-radius: 20px;
  margin-left: 15px;
}
.theme-switch-wrapper span {
  font-size: 14px;
  color: #333;
}
html.dark-mode .theme-switch-wrapper span {
  color: #e0e0e0;
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 26px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #01b3a7;
}
input:checked + .slider:before {
  transform: translateX(24px);
}
.theme-icon {
  font-size: 16px;
}
