/* Theme overrides
   Define your brand colors here (optional).
   Sneat uses CSS variables; these overrides affect primary color tokens.
*/
:root {
  --bs-primary: #ff6b00;
  --bs-primary-rgb: 255, 107, 0;
  --bs-primary-text-emphasis: #7a3300;
  --bs-primary-bg-subtle: #fff0e6;
  --bs-primary-border-subtle: #ffc9a3;
  --bs-link-color: #ff6b00;
  --bs-link-color-rgb: 255, 107, 0;
  --bs-link-hover-color: #db5c00;
  --bs-link-hover-color-rgb: 219, 92, 0;
  --bs-focus-ring-color: rgba(255, 107, 0, 0.28);
}

[data-bs-theme="dark"] {
  --bs-primary: #ff6b00;
  --bs-primary-rgb: 255, 107, 0;
  --bs-primary-text-emphasis: #ffb680;
  --bs-primary-bg-subtle: #331500;
  --bs-primary-border-subtle: #994000;
  --bs-link-color: #ff8b33;
  --bs-link-hover-color: #ffae73;
  --bs-focus-ring-color: rgba(255, 107, 0, 0.36);
}

/* Example: avatar initials sizing */
.avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-weight: 600;
}


/* Optional: global loading state (used by htmx hooks) */
.is-loading body { cursor: progress; }

.global-loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2000;
}

.is-loading .global-loading-overlay {
  opacity: 1;
  pointer-events: all;
}

.global-loading-overlay__dialog {
  min-width: 12rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0.5rem 1.5rem rgba(67, 89, 113, 0.16);
  text-align: center;
}

.global-loading-overlay__spinner {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
}
