/* Theme toggle — shared by client portal and backoffice */
.app-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-right: 0.5rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(76, 201, 240, 0.28);
  background: rgba(76, 201, 240, 0.08);
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.05s;
}

.app-theme-toggle:hover {
  background: rgba(76, 201, 240, 0.16);
  border-color: rgba(76, 201, 240, 0.45);
}

.app-theme-toggle:active {
  transform: translateY(1px);
}

.app-theme-toggle__icon {
  font-size: 0.95rem;
  line-height: 1;
}

html[data-bs-theme="light"] .app-theme-toggle__icon--dark {
  display: none;
}

html[data-bs-theme="dark"] .app-theme-toggle__icon--light {
  display: none;
}

.bo-header .app-theme-toggle {
  margin-right: 0.75rem;
}

.app-theme-toggle--floating {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1200;
  margin: 0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

html[data-bs-theme="light"] .app-theme-toggle {
  border-color: rgba(43, 43, 43, 0.14);
  background: rgba(17, 166, 242, 0.08);
  color: #1f2937;
}

html[data-bs-theme="light"] .app-theme-toggle:hover {
  background: rgba(17, 166, 242, 0.14);
  border-color: rgba(17, 166, 242, 0.35);
  color: #0d8fd4;
}
