/* ===============================
   Receitas (UI mais profissional)
   =============================== */

/* ====== Header azul (igual Perfil) ====== */
/* Aplica no primeiro h3 de cada card dessa página */
#rxHome > h3,
#rxDetail h3,
#rxAdd h3 {
  display: block;
  width: 100%;
  background: #0b7285;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 14px;
  padding: 12px 14px;

  /* “encaixa” na borda do card */
  margin: -16px -16px 14px;
}

/* Ajustes finos para os cards (se a sua .card já tiver padding, isso fica perfeito) */
#rxHome,
#rxDetail,
#rxAdd {
  border-radius: 14px;
}

/* ====== Barra de busca + ações ====== */
#rxHome .row {
  align-items: center;
}

#rxSearch {
  height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.16);
  background: #fff;
  outline: none;
}

#rxSearch:focus {
  border-color: rgba(14,165,233,.65);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

/* Botões (fica mais “padrão app”) */
#rxHome button,
#rxDetail button,
#rxAdd button {
  height: 40px;
  border-radius: 12px;
  font-weight: 800;
}

/* Contador (mais discreto) */
#rxCount {
  margin-top: 10px;
  color: #64748b;
  font-weight: 700;
}

/* ====== Lista de Receitas ====== */
.rx-list {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;

  max-height: 420px;
  overflow: auto;
  padding: 4px;
}

/* Scrollbar (Chrome/Edge) */
.rx-list::-webkit-scrollbar {
  width: 10px;
}
.rx-list::-webkit-scrollbar-track {
  background: transparent;
}
.rx-list::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, .18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.rx-list::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, .28);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Item individual */
.rx-item {
  padding: 12px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;

  border-radius: 10px;
  margin: 4px;
  background: #fff;

  display: flex;
  align-items: center;
  gap: 10px;

  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}

.rx-item:hover {
  background: #f8fafc;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

.rx-item:active {
  transform: scale(.995);
}

/* Para título ficar mais “clean” */
.rx-item {
  color: #0f172a;
  font-weight: 700;
}

/* Tags dentro da receita (se você usar futuramente) */
.rx-item .tag {
  display: inline-block;
  padding: 2px 8px;
  background: #f1f5f9;
  border-radius: 999px;
  margin-right: 6px;
  font-size: 12px;
}

/* ====== Detalhe da receita ====== */
#rxDetail .tag {
  background: rgba(14,165,233,.10);
  border: 1px solid rgba(14,165,233,.25);
  color: #075985;
  font-weight: 900;
}

#rxText {
  width: 100%;
  min-height: 320px;
  resize: vertical;

  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  outline: none;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
}

#rxText:focus {
  border-color: rgba(14,165,233,.65);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

/* Área de botões do detalhe */
#rxDetail .row {
  align-items: center;
}

/* Mensagens discretas */
#rxMsg, #rxDetailMsg, #rxAddMsg {
  color: #64748b;
  font-weight: 600;
}

/* ====== Admin Add ====== */
#rxAdd .label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
}

#rxAdd input,
#rxAdd textarea {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.16);
  outline: none;
}

#rxAdd input:focus,
#rxAdd textarea:focus {
  border-color: rgba(14,165,233,.65);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

/* ===== Botão Utilizar na lista ===== */
.rx-item .rx-item-title {
  flex: 1;
  min-width: 0;
}

.rx-item .rx-use-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}