/* Removed @import - moved to index.html for performance */

:root {
  --primary: #26264c;
  /* Modern Blue */
  --primary-dark: #0a2c5a;
  --primary-soft: rgba(26, 115, 232, 0.1);
  --accent: #fbbc04;
  /* Google Yellow */
  --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --card-bg: #ffffff;
  --text-main: #26264c;
  --text-muted: #5f6368;
  --border-color: #dadce0;
  --success: #1e8e3e;
  --error: #d93025;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-gradient);
  min-height: 200vh;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


.d-none {
  display: none !important;
}


.search-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.6s ease-out;
}

.search-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  width: 90%;
  max-width: 800px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border-color);
  margin: 0 auto;
}

.brand-logo {
  width: 80px;
  height: 80px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.brand-logo i {
  font-size: 36px;
}

.search-title {
  font-size: 3.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.search-subtitle {
  color: var(--text-muted);
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tracking-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  font-family: inherit;
  transition: var(--transition);
  color: var(--text-main);
}
#trackBtn{
  font-size: 1.5rem;
}
.tracking-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.track-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.track-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.track-btn:active {
  transform: translateY(0);
}

.error-msg {
  color: var(--error);
  font-size: 1.3rem;
  margin-top: 1rem;
  font-weight: 400;
}

/* ============================================================
   Tracking Result Screen
   ============================================================ */
.tracking-screen {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.tracking-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: slideUp 0.5s ease-out;
}

.card-header-bar {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
}

.back-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.back-btn:hover {
  background: #eee;
}

.order-meta {
  text-align: right;
}

.order-title {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.order-code {
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #e8eaed;
  color: #3c4043;
}

.status-badge.pending {
  background: #feefc3;
  color: #af5200;
}

.status-badge.shipped {
  background: #e8f0fe;
  color: #1967d2;
}

.status-badge.enroute {
  background: #e6f4ea;
  color: #137333;
}

.status-badge.arrived {
  background: #ceead6;
  color: #0d652d;
}

.status-badge.cancelled {
  background: #fce8e6;
  color: #c5221f;
}

/* ---- Info Grid ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-label i {
  color: var(--primary);
}

.info-value {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-main);
}

/* ============================================================
   Progress Timeline
   ============================================================ */
.progress-section {
  padding: 3rem 2rem;
  background: #fafafb;
  border-top: 1px solid var(--border-color);
}

#progressbar {
  display: flex;
  list-style: none;
  width: 100%;
  margin-bottom: 3rem;
  position: relative;
  display: flex;
  justify-content: space-between;
}

#progressbar li {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Connector Line */
#progressbar li::after {
  content: '';
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 4px;
  background: #e8eaed;
  z-index: -1;
  margin-left: 17px;
}

#progressbar li:first-child::after {
  display: none;
}

#progressbar li::before {
  content: '\f111';
  font-family: 'FontAwesome';
  width: clamp(24px, 4vw, 32px);
  height: clamp(24px, 4vw, 32px);
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0px;
  color: #e8eaed;
  font-size: clamp(8px, 1.5vw, 10px);
  transition: var(--transition);
}

#progressbar li.active::before {
  content: '\f00c';
  /* Checkmark */
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-size: clamp(10px, 2vw, 14px);
}

#progressbar li.active::after {
  background: var(--primary);
}

.steps-labels {
  display: flex;
  justify-content: space-between;
}

.step-label {
  flex: 1;
  text-align: center;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  filter: grayscale(1);
  opacity: 0.5;
  transition: var(--transition);
}

.step-icon-fa {
  font-size: 35px;
  color: #bdc3c7;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  display: block;
}

.step-label.active .step-icon-fa {
  color: var(--primary);
  transform: scale(1.1);
}

.step-label.active p {
  color: var(--primary);
  font-weight: 700;
}

.step-label p {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ============================================================
   Footer Section
   ============================================================ */
.tracking-footer {
  padding: 1.5rem 2rem;
  background: white;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tracking-code-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tracking-code-value {
  font-family: monospace;
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 600;
}

/* ============================================================
   Loading / Error States
   ============================================================ */
.loading-wrapper {
  text-align: center;
  padding: 5rem 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 0.8s linear infinite;
}

.error-card {
  text-align: center;
  background: white;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.error-icon {
  font-size: 4rem;
  color: var(--error);
  margin-bottom: 1.5rem;
}

.error-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.error-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


@media (max-width: 640px) {
  .search-card {
    padding: 2.5rem 1.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .card-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .order-meta {
    text-align: left;
  }

  #progressbar li::before {
    margin: 0 auto 10px;
  }
  #progressbar li::after {
    margin-left: 12px;
    top: 12px
  }

  .step-icon {
    width: 32px;
    height: 32px;
  }

  .step-label p {
    font-size: 0.8rem;
  }
  .search-title {
    font-size: 2.5rem;
  }
  .search-subtitle {
    font-size: 1.15rem;
}
#trackBtn{
  font-size: 1.25rem;
}
.tracking-input {
    font-size: 1.15rem;
}
}