/* Common CSS for buttons across all pages */
.right-side-buttons {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  z-index: 1000;
}

/* Common Button Styles */
.right-side-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  border: none;
  cursor: pointer;
}

.right-side-button:hover {
  transform: scale(1.1);
}

/* Crisis Button */
.quick-help-button {
  background-color: var(--error);
}

.quick-help-button:hover {
  background-color: #D32F2F; /* Darker error color */
}

/* Theme Toggle Button */
.theme-toggle-button {
  background-color: var(--primary);
}

.theme-toggle-button:hover {
  background-color: var(--primary-dark);
}

/* Music Play Button */
.music-play-button {
  background-color: var(--secondary);
}

.music-play-button.active {
  background-color: var(--secondary-dark);
  box-shadow: 0 0 10px var(--secondary);
}

.music-play-button:hover {
  background-color: var(--secondary-dark);
}

/* Info Button */
.info-button {
  background-color: var(--info);
}

.info-button:hover {
  background-color: #0288D1; /* Darker info color */
}

/* Focus Theme Overrides */
body.focus-theme .quick-help-button {
  background-color: #C62828; /* Darker error color for dark theme */
}

body.focus-theme .theme-toggle-button {
  background-color: #00838F; /* Darker primary color for dark theme */
}

body.focus-theme .music-play-button {
  background-color: #558B2F; /* Darker secondary color for dark theme */
}

body.focus-theme .music-play-button.active {
  background-color: #33691E; /* Even darker secondary color for active state */
  box-shadow: 0 0 10px #558B2F;
}

body.focus-theme .info-button {
  background-color: #0277BD; /* Darker info color for dark theme */
}

/* Dark Mode Contrast Fixes */
body.focus-theme .checklist-item,
body.focus-theme .resource-card,
body.focus-theme .technique-card,
body.focus-theme .exercise-card,
body.focus-theme .contact-card,
body.focus-theme .transition-card,
body.focus-theme .mood-option,
body.focus-theme .applet-card,
body.focus-theme .daily-ripple-card,
body.focus-theme .mood-suggestions {
  background-color: var(--bg-off-dark);
  color: var(--text-light);
}

body.focus-theme .resource-icon-large {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

body.focus-theme .print-button,
body.focus-theme .resource-action-button,
body.focus-theme .technique-action-button {
  background-color: var(--neutral-700);
  color: var(--text-light);
}

body.focus-theme .print-button:hover,
body.focus-theme .resource-action-button:hover,
body.focus-theme .technique-action-button:hover {
  background-color: var(--neutral-600);
}

/* Hide old theme toggle on resource pages */
.theme-toggle {
  display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .right-side-buttons {
    gap: var(--spacing-sm);
  }
  
  .right-side-button {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}
