/* ===================================================================
   DARK MODE TOGGLE & ENHANCEMENTS
   =================================================================== */

/* Dark Mode Toggle Button */
.dark-mode-toggle {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(20deg);
}

.dark-mode-toggle svg {
  width: 20px;
  height: 20px;
}

/* Header Actions Layout */
.header-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  position: absolute;
  right: 0;
  top: 20px;
}

@media (max-width: 768px) {
  .header-actions {
    gap: 10px;
    top: 10px;
  }

  .dark-mode-toggle {
    padding: 6px;
  }

  .dark-mode-toggle svg {
    width: 18px;
    height: 18px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
