:root {
  --dmp-bg-light: #ffffff;
  --dmp-text-light: #333333;
  --dmp-bg-dark: #1a1a1a;
  --dmp-text-dark: #ffffff;
  --dmp-accent-color: #2271b1;
  --dmp-switch-size: 50px;
  --dmp-apply-dark: true;
}

/* Dark mode styles */
body.dmp-dark-mode {
  background-color: var(--dmp-bg-dark) !important;
  color: var(--dmp-text-dark) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dmp-dark-mode *[data-dmp-apply-dark="true"] {
  background-color: var(--dmp-bg-dark) !important;
  color: var(--dmp-text-dark) !important;
}

/* Switch button styles */
#dmp-switch-container {
  position: fixed;
  z-index: 9999;
  margin: 20px;
}

.dmp-switch-bottom-right {
  bottom: 0;
  right: 0;
}

.dmp-switch-bottom-left {
  bottom: 0;
  left: 0;
}

.dmp-switch-top-right {
  top: 0;
  right: 0;
}

.dmp-switch-top-left {
  top: 0;
  left: 0;
}

#dmp-mode-switch {
  width: var(--dmp-switch-size);
  height: var(--dmp-switch-size);
  border-radius: 50%;
  border: none;
  background: var(--dmp-accent-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#dmp-mode-switch:hover {
  transform: scale(1.1);
}

.dmp-moon-icon {
  display: none;
}

body.dmp-dark-mode .dmp-sun-icon {
  display: none;
}

body.dmp-dark-mode .dmp-moon-icon {
  display: block;
}

/* Responsive design */
@media (max-width: 768px) {
  :root {
    --dmp-switch-size: 45px;
  }
  
  #dmp-switch-container {
    margin: 15px;
  }
}

@media (max-width: 480px) {
  :root {
    --dmp-switch-size: 40px;
  }
  
  #dmp-switch-container {
    margin: 10px;
  }
}

/* Common element overrides */
body.dmp-dark-mode img {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

body.dmp-dark-mode img:hover {
  opacity: 1;
}

/* Exclude elements that shouldn't have dark mode */
*[data-dmp-exclude="true"],
*[style*="--dmp-apply-dark: false"] {
  background-color: inherit !important;
  color: inherit !important;
}