/* ═══════════════════════════════════════════════════════════
   VIVER COM ÉTICA – DROGARIA CRISTINA
   acompanhar.css
   Estilos exclusivos da página de acompanhamento
   Depende de: assets/css/styles.css
═══════════════════════════════════════════════════════════ */

/* ── HEADER NAV ── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}

.btn-header-link:hover {
  background: rgba(255,255,255,.22);
}

/* ── HERO DA PÁGINA ── */
.page-hero {
  text-align: center;
  padding: 32px 0 24px;
}

.page-hero-icon {
  width: 72px;
  height: 72px;
  background: var(--brand-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.page-hero-icon i {
  font-size: 30px;
  color: var(--brand-green-dark);
}

.page-hero h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-green-dark);
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── CARD DE BUSCA ── */
.search-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 28px;
}

.search-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.search-card-header i {
  font-size: 26px;
  color: var(--brand-green-dark);
}

.search-card-header strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}

.search-card-header span {
  font-size: 12px;
  color: var(--muted);
}

/* ── INPUT DE BUSCA ── */
.search-form { display: flex; flex-direction: column; gap: 10px; }

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-icon {
  color: var(--brand-gray);
  font-size: 16px;
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  color: var(--text);
  background: #fafcfb;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-transform: uppercase;
}

.search-input-wrap input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(16,196,181,.14);
  background: var(--white);
}

.search-hint {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-hint i { color: var(--brand-green); }

.search-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-red-light);
  border: 1px solid #f5b8bb;
  border-left: 4px solid var(--brand-red);
  color: var(--brand-red-dark);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

/* ── INFO CARDS ── */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.info-card-icon.green  { background: var(--brand-green-light); color: var(--brand-green-dark); }
.info-card-icon.amber  { background: #fff3e0; color: #e65100; }
.info-card-icon.blue   { background: #e3f2fd; color: #1565c0; }

.info-card strong { font-size: 14px; color: var(--text); }
.info-card span   { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── TELA RESULTADO ── */
.resultado-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--brand-green-border);
  color: var(--brand-green-dark);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}

.btn-voltar:hover { background: var(--brand-green-light); }

.protocolo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-green-light);
  border: 1.5px solid var(--brand-green-border);
  color: var(--brand-green-dark);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}

/* ── STATUS CARD ── */
.status-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 20px;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
}

.status-icon.concluido {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-icon.urgente {
  background: var(--brand-red-light);
  color: var(--brand-red);
}

.status-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.status-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-green-dark);
}

.status-value-sm {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.status-date { margin-left: auto; text-align: right; }

/* ── TIMELINE ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 44px;
  width: 2px;
  height: calc(100% - 14px);
  background: var(--border);
}

.timeline-item.done::after {
  background: var(--brand-green);
}

.tl-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-item.done .tl-dot {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--white);
}

.timeline-item.active .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.tl-content strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.tl-content span {
  font-size: 12px;
  color: var(--muted);
}

/* ── MENSAGENS ── */
.messages-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}

.messages-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: #fafcfb;
}

.messages-header i { color: var(--brand-green-dark); font-size: 18px; }
.messages-header strong { font-size: 15px; color: var(--text); }

.messages-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 80px;
}

/* mensagem do comitê */
.msg-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 80%;
}

.msg-item.comite { align-self: flex-start; }
.msg-item.denunciante { align-self: flex-end; }

.msg-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.msg-item.comite .msg-bubble {
  background: var(--brand-green-light);
  border: 1px solid var(--brand-green-border);
  color: var(--text);
  border-top-left-radius: 4px;
}

.msg-item.denunciante .msg-bubble {
  background: #f0f4ff;
  border: 1px solid #c7d4f5;
  color: var(--text);
  border-top-right-radius: 4px;
}

.msg-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.msg-item.denunciante .msg-meta {
  justify-content: flex-end;
}

.msg-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 16px 0;
}

.msg-empty i {
  display: block;
  font-size: 28px;
  color: var(--border);
  margin-bottom: 8px;
}

/* ── REPLY AREA ── */
.reply-area {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  background: #fafcfb;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-green-dark);
  margin-bottom: 12px;
}

.reply-area textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.reply-area textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(16,196,181,.14);
}

.reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.reply-hint {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.reply-hint i { color: var(--brand-green); }

.reply-success {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: var(--brand-green-light);
  border: 1px solid var(--brand-green-border);
  color: var(--brand-green-dark);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

/* ── AVISO DE ENCERRAMENTO ── */
.closed-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f0fdf4;
  border: 1.5px solid var(--brand-green-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.closed-notice i {
  font-size: 26px;
  color: var(--brand-green-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.closed-notice strong {
  display: block;
  font-size: 15px;
  color: var(--brand-green-dark);
  margin-bottom: 4px;
}

.closed-notice p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── FOOTER ── */
.page-footer {
  background: #1e293b;
  padding: 20px 24px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

.footer-lgpd {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,196,181,.15);
  border: 1px solid rgba(16,196,181,.25);
  color: #9de5e0;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.status-meta-row {
  margin: 0 24px 20px;
  padding: 10px 14px;
  background: var(--gray-light, #f4f5f5);
  border-radius: var(--radius-sm, 8px);
  font-size: 13px;
  color: var(--muted, #83878A);
}

.status-meta-row span:last-child {
  color: var(--text, #1f2937);
  font-weight: 600;
}

.status-meta-label {
  margin-right: 6px;
}

.historico-card,
.conclusao-card {
  background: var(--white);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-sm, 0 2px 12px rgba(0,0,0,.05));
  margin-bottom: 20px;
  overflow: hidden;
}

.historico-header,
.conclusao-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border, #d1d4d6);
  font-size: 15px;
}

.historico-header i,
.conclusao-header i {
  color: var(--brand-green, #10C4B5);
}

.historico-body {
  padding: 20px 24px 24px;
}

.historico-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  position: relative;
}

.historico-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--border, #d1d4d6);
}

.historico-item-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-green, #10C4B5);
  flex-shrink: 0;
  margin-top: 3px;
  box-shadow: 0 0 0 4px rgba(16,196,181,.15);
}

.historico-item-body strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text, #1f2937);
}

.historico-item-body p {
  font-size: 13px;
  color: var(--muted, #83878A);
  line-height: 1.5;
  margin-bottom: 6px;
}

.historico-item-date {
  font-size: 12px;
  color: var(--muted, #83878A);
}

.historico-empty {
  text-align: center;
  color: var(--muted, #83878A);
  font-size: 14px;
  padding: 12px 0;
}

.conclusao-card p {
  padding: 20px 24px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text, #1f2937);
  white-space: pre-wrap;
}

/* ── RESPONSIVO ── */
@media (max-width: 720px) {
  .info-cards { grid-template-columns: 1fr; }
  .search-card { padding: 20px 18px; }
  .status-card { padding: 20px 18px; }
  .messages-body { padding: 16px 18px; }
  .reply-area { padding: 16px 18px; }
  .status-date { margin-left: 0; text-align: left; }
  .msg-item { max-width: 95%; }
  .header-top { align-items: flex-start; }
  .resultado-header { flex-direction: column; align-items: flex-start; }
}