/* ============================================================
   CLEANAHOTEL — Staff
   Solo variables de color y estilos exclusivos de este panel.
   Los estilos de login van en login-base.css
   ============================================================ */

:root {
  --staff-green:    #004a2f;
  --staff-blue:     #012a30;
  --background:     #f9f9f9;
  --on-surface:     #1a1c1c;
  --on-surface-var: #525f71;
  --outline:        #8b716d;
  --outline-var:    #dec0bb;
  --error:          #ef4444;

  /* Tipos de tarea */
  --task-checkout:  #6b0c07;
  --task-request:   #2659a2;
  --task-partial:   #c58516;
  --task-done:      #1b5e20;

  /* Login tokens */
  --login-gradient: linear-gradient(to right, var(--staff-green), var(--staff-blue));
  --card-radius:    0;
  --btn-radius:     0;
}

/* ── Skeleton loader ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #e8e8e8 25%, #f3f3f3 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Modal bottom sheet ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 28, 28, 0.5);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay--open { opacity: 1; pointer-events: all; }

.modal-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background-color: #ffffff;
  padding: 1.25rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
  max-height: 85dvh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay--open .modal-sheet { transform: translateY(0); }

/* ── SSE connection dot ─────────────────────────────────── */
.conn-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #dec0bb;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.conn-dot--connected {
  background-color: #1b5e20;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Gradients ──────────────────────────────────────────── */
.bg-staff-gradient {
  background: linear-gradient(to right, var(--staff-green), var(--staff-blue));
}

/* ── Avatar ─────────────────────────────────────────────── */
.avatar-ring {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  border: 3px solid var(--staff-green);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.avatar-ring img { width: 100%; height: 100%; object-fit: cover; }

.avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.avatar-ring:hover .avatar-overlay { opacity: 1; }

/* ── Profile card ───────────────────────────────────────── */
.profile-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

/* ── Profile field ──────────────────────────────────────── */
.profile-field {
  width: 100%;
  padding: 0.875rem 0.75rem;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.profile-field:focus {
  border-color: var(--staff-green);
  box-shadow: 0 0 0 1px var(--staff-green);
}

.profile-field--error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}

/* ── Button spinner ─────────────────────────────────────── */
.btn-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Password section toggle ────────────────────────────── */
.pwd-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.pwd-section.open { max-height: 500px; }