/* ===== SUIVI.CSS — Page de suivi de demande ===== */

.suivi-page { background: var(--light-bg); min-height: calc(100vh - 68px); padding: 60px 0 80px; }

.suivi-search-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
}
.suivi-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(26,60,110,.3);
}
.suivi-search-card h2 { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.suivi-search-card p { color: var(--muted); font-size: .92rem; margin-bottom: 32px; }

.search-input-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.search-input-wrap input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}
.search-input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,60,110,.1); }
.search-input-wrap button {
  padding: 14px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.search-input-wrap button:hover { background: var(--primary-dark); }
.search-hint { color: var(--muted); font-size: .8rem; }

/* Result card */
.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
  display: none;
  animation: slideUp .4s ease both;
}
.result-card.show { display: block; }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.result-header {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.result-header.status-pending { background: rgba(245,158,11,.08); border-bottom: 3px solid #f59e0b; }
.result-header.status-review  { background: rgba(59,130,246,.08);  border-bottom: 3px solid #3b82f6; }
.result-header.status-approved{ background: rgba(34,197,94,.08);   border-bottom: 3px solid var(--success); }
.result-ref { font-size: 1.2rem; font-weight: 900; color: var(--primary); letter-spacing: 2px; }
.status-badge {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.badge-pending  { background: rgba(245,158,11,.15); color: #b45309; }
.badge-review   { background: rgba(59,130,246,.15);  color: #1d4ed8; }
.badge-approved { background: rgba(34,197,94,.15);   color: #15803d; }

.result-body { padding: 28px 32px; }
.result-timeline { list-style: none; }
.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px; top: 32px;
  width: 2px;
  bottom: 0;
  background: var(--border);
}
.timeline-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
  z-index: 1;
}
.dot-done    { background: var(--success); color: var(--white); }
.dot-active  { background: var(--primary); color: var(--white); box-shadow: 0 0 0 4px rgba(26,60,110,.15); }
.dot-pending { background: var(--border); color: var(--muted); }
.timeline-content h6 { font-weight: 700; font-size: .9rem; color: var(--text); margin-bottom: 2px; }
.timeline-content p  { font-size: .82rem; color: var(--muted); margin: 0; }
.timeline-content .time { font-size: .75rem; color: var(--muted); margin-top: 3px; }

.not-found-msg {
  display: none;
  text-align: center;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.not-found-msg.show { display: block; }
.not-found-msg .icon { font-size: 3rem; margin-bottom: 12px; }
.not-found-msg h4 { color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.not-found-msg p { color: var(--muted); font-size: .9rem; }

@media (max-width: 600px) {
  .suivi-search-card { padding: 28px 20px; }
  .search-input-wrap { flex-direction: column; }
}

/* Dedicated tracking layout */
.tracking-main { background: #f5f8fb; min-height: 55vh; }
.tracking-main .track-box { background: #fff; border: 1px solid #dce5ed; border-radius: 14px; padding: 32px; max-width: 720px; margin: 0 auto; box-shadow: 0 10px 30px rgba(11,37,69,.05); }
.track-box label { display: block; color: #0b2545; font-weight: 700; margin-bottom: 10px; }
.track-box label i { color: #d59418; }
.track-input { display: flex; gap: 10px; }
.track-input input { min-width: 0; flex: 1; border: 1px solid #d9e3eb; border-radius: 8px; padding: 13px; font: inherit; text-transform: uppercase; }
.track-input input:focus { outline: 2px solid rgba(245,184,65,.33); border-color: #d59418; }
.track-box small { display: block; color: #708094; margin-top: 12px; }
.track-result { max-width: 720px; margin: 24px auto; }
.tracking-main .result-card { display: block; max-width: none; box-shadow: none; border: 1px solid #dce5ed; padding: 28px; }
.result-card h2 { color: #0b2545; font: 800 1.35rem Manrope, sans-serif; }
.result-status { display: inline-block; background: #fff5d9; color: #946600; border-radius: 20px; padding: 6px 12px; font-size: .83rem; font-weight: 700; }
.result-meta { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 20px; }
.result-meta div { background: #f5f8fb; padding: 13px; border-radius: 8px; }
.result-meta small, .result-meta strong { display: block; }
.result-meta small { color: #708094; }
.result-meta strong { color: #0b2545; margin-top: 3px; }
.track-error { color: #b33a3a; background: #fff0f0; border-radius: 8px; padding: 14px; }
@media (max-width: 600px) { .track-input { display: block; } .track-input .btn { width: 100%; margin-top: 10px; } .result-meta { grid-template-columns: 1fr; } }
