/* ============================================================
   PRONTIO – Pacientes
   Estilos específicos da página pacientes.html
============================================================ */

/* CONTAINER PRINCIPAL */
.pacientes-main {
  max-width: 1120px;
  margin: 0 auto 2rem;
  position: relative;
}

/* CARD PRINCIPAL DA LISTA */
.pacientes-card {
  background: var(--color-panel);
  border-radius: 14px;
  padding: 1.4rem 1.6rem 1.6rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

/* CABEÇALHO DO CARD */
.pacientes-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pacientes-card-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* AÇÕES (filtro + botão novo) */
.pacientes-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* FILTRO STATUS */
.filtro-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #555;
}

.select-status {
  height: 34px;
  padding: 0 2rem 0 0.75rem;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1px solid #d3d6da;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  appearance: none;
  background-image:
    url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 24 24" fill="%236b7280" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
}

/* LISTA EM CARDS */
.lista-pacientes {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.paciente-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid #e4e6eb;
  transition: 0.15s ease;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 6px rgba(0,0,0,0.04);
}

.paciente-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.08),
    0 10px 20px rgba(0,0,0,0.06);
}

/* AVATAR DO PACIENTE */
.paciente-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0ebff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* BLOCO ESQUERDO DO CARD */
.paciente-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
}

.paciente-nome {
  font-size: 0.97rem;
  font-weight: 600;
}

.paciente-idade {
  margin-left: 0.35rem;
  font-size: 0.82rem;
  color: #70757a;
}

.paciente-sec {
  font-size: 0.78rem;
  color: var(--color-text-soft);
}

/* TAGS DO CARD */
.paciente-tags {
  display: flex;
  gap: 0.4rem;
}

/* AÇÕES DO CARD (botões) */
.paciente-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
}

/* DRAWER LATERAL */
.pacientes-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  height: 100vh;
  background: #ffffff;
  z-index: 100;
  border-left: 1px solid #e5e7eb;
  box-shadow:
    -2px 0 6px rgba(0,0,0,0.06),
    -10px 0 20px rgba(0,0,0,0.08);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: right 0.28s ease;
}

.pacientes-drawer.aberto {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.drawer-header h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
}

.drawer-subtitle {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.drawer-body {
  overflow-y: auto;
  padding-right: 5px;
}

/* BACKDROP DO DRAWER */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}
.drawer-backdrop.visivel {
  opacity: 1;
  pointer-events: auto;
}

/* FORMULÁRIO DENTRO DO DRAWER */
/* Usa .campo, .grid-2, .grid-3 de forms/utilities; aqui só complementos */

.mensagem-status {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  border-radius: 8px;
  border: 1px solid #dfe2e5;
  background: #f9fafb;
  padding: 0.5rem 0.8rem;
  color: #6b7280;
}

/* Responsivo */
@media (max-width: 768px) {
  .pacientes-drawer {
    width: 100%;
  }
}
