/* ==========================================================================
   KOBBY ENTREPRENEURSHIP FUND - APPLICATION TRACKER STYLES
   ========================================================================== */

.track-page {
  background: #F8FAFC;
  padding: 40px 0 90px;
}

.track-hero {
  text-align: center;
  margin-bottom: 36px;
}

.track-hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: 12px;
}

.track-hero p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 620px;
  margin: 0 auto;
}

/* Search Card */
.search-card {
  background: var(--pure-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--royal-blue) 0%, var(--primary-red) 100%);
}

.search-form-flex {
  display: flex;
  gap: 12px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.search-control {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep-blue);
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.search-control:focus {
  outline: none;
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 4px rgba(19, 62, 124, 0.15);
}

.search-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 10px;
  text-align: center;
}

/* Results Section */
.track-result-card {
  background: var(--pure-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
  display: none;
}

.track-result-header {
  background: linear-gradient(135deg, var(--deep-blue) 0%, #0F3057 100%);
  color: var(--pure-white);
  padding: 30px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.applicant-meta h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.applicant-meta p {
  font-size: 0.9rem;
  color: #CBD5E1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.status-pill.submitted {
  background: #E0F2FE;
  color: #0369A1;
}

.status-pill.under_review {
  background: #FEF3C7;
  color: #B45309;
}

.status-pill.field_verification {
  background: #EDE9FE;
  color: #6D28D9;
}

.status-pill.approved {
  background: #DCFCE7;
  color: #15803D;
}

.status-pill.disbursed {
  background: #D1FAE5;
  color: #065F46;
}

.status-pill.rejected {
  background: #FEE2E2;
  color: #B91C1C;
}

/* Visual 5-Stage Timeline */
.timeline-section {
  padding: 40px 36px 30px;
  border-bottom: 1px solid var(--gray-200);
}

.timeline-track {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 20px 0 10px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--gray-200);
  z-index: 0;
}

.timeline-progress-bar {
  position: absolute;
  top: 20px;
  left: 30px;
  height: 4px;
  background: var(--success);
  z-index: 0;
  transition: width 0.6s ease;
  width: 0%;
}

.timeline-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
}

.node-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pure-white);
  border: 3px solid var(--gray-300);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 10px;
  transition: var(--transition);
}

.timeline-node.done .node-icon {
  background: var(--success);
  border-color: var(--success);
  color: var(--pure-white);
}

.timeline-node.current .node-icon {
  background: var(--royal-blue);
  border-color: var(--royal-blue);
  color: var(--pure-white);
  box-shadow: 0 0 0 6px rgba(19, 62, 124, 0.18);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(19, 62, 124, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(19, 62, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 62, 124, 0); }
}

.node-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-500);
  line-height: 1.3;
}

.timeline-node.current .node-title {
  color: var(--deep-blue);
}

.timeline-node.done .node-title {
  color: var(--gray-800);
}

/* Details Grid */
.details-section {
  padding: 36px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.detail-item {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-blue);
}

.detail-val.red {
  color: var(--primary-red);
}

/* Secretariat Note Box */
.secretariat-note-box {
  background: #FFFBEB;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 30px;
}

.secretariat-note-box h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #92400E;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.secretariat-note-box p {
  font-size: 0.9rem;
  color: #78350F;
  line-height: 1.55;
}

/* Empty State / Not Found */
.not-found-card {
  text-align: center;
  padding: 48px 20px;
  background: var(--pure-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  max-width: 600px;
  margin: 0 auto;
  display: none;
}

.not-found-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FEF2F2;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.not-found-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: 8px;
}

.not-found-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .search-form-flex {
    flex-direction: column;
  }
  .timeline-track {
    flex-direction: column;
    gap: 20px;
  }
  .timeline-track::before, .timeline-progress-bar {
    display: none;
  }
  .timeline-node {
    flex-direction: row;
    width: 100%;
    text-align: left;
    gap: 14px;
  }
  .node-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .timeline-section, .details-section {
    padding: 24px 18px;
  }
}
