body.dark-mode {
  --text-color: #eee;
  --accent-color: #ff5555;
}

/* General dark mode overrides */
body.dark-mode #ohmegle-container,
body.dark-mode .text-chat,
body.dark-mode .input-container,
body.dark-mode #chatInput,
body.dark-mode .messages,
body.dark-mode .control-container button,
body.dark-mode #sendMessageBtn {
  background-color: #222 !important;
  color: #eee !important;
  border-color: #444 !important;
}

body.dark-mode .control-container button:hover,
body.dark-mode #sendMessageBtn:hover {
  background-color: #444 !important;
}

body.dark-mode #statusOutput {
  background-color: #333 !important;
  border-color: #555 !important;
  color: #ddd !important;
}

body.dark-mode video {
  background-color: #000 !important;
}

/* Fix hardcoded black text in dark mode */
body.dark-mode .elementor-nav-menu--main .elementor-item.elementor-item-active,
body.dark-mode .elementor-heading-title,
body.dark-mode .elementor-icon-list-text {
  color: #eee !important;
}

body.dark-mode div.elementor-menu-toggle,
.elementor-menu-toggle,
div.elementor-menu-toggle svg {
  color: #eee !important;
  fill: #eee !important;
}

/* Toggle switch styling */
.dark-toggle {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
}

.dark-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  background-color: #ccc;
  border-radius: 34px;
  cursor: pointer;
  transition: background-color 0.3s;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-sizing: border-box;
}

.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  background-color: #fff;
  border-radius: 50%;
  bottom: 3px;
  left: 3px;
  transition: transform 0.3s;
  z-index: 2;
}

input:checked + .slider {
  background-color: #4fa4ff;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

/* Icon styles */
.slider .icon {
  z-index: 1;
  font-size: 14px;
  pointer-events: none;
  color: #fff;
}

.sun {
  order: 1;
}

.moon {
  order: 2;
}
