.dark-mode-toggle {
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 30px;
  border: none;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--field-borders);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.dark-mode-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-color);
}

.dark-mode-toggle:active {
  transform: scale(0.95);
}

body:not(.user-is-tabbing) .dark-mode-toggle:focus {
  outline: none;
}

.dark-mode-toggle .moon,
.dark-mode-toggle .sun {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.3s ease;
}

body .dark-mode-toggle .moon {
  display: none;
}

body .dark-mode-toggle .sun {
  display: inline-block;
}

body.dark .dark-mode-toggle .moon {
  display: inline-block;
}

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

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast::before {
  content: "✓";
  font-weight: bold;
  font-size: 1rem;
}

.toast.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.toast.error::before {
  content: "✕";
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.page-action-btn.copy-btn:hover {
  background: #f0fdf4;
  color: #10b981;
  border-color: #10b981;
}

@media (max-width: 768px) {
  .dark-mode-toggle {
    right: 16px;
    top: 16px;
    width: 44px;
    height: 44px;
  }

  .dark-mode-toggle .moon,
  .dark-mode-toggle .sun {
    font-size: 20px;
  }

  #toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
}