/* ==========================================
   Global Reset & Base Layout
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f4f6f8;
  color: #333333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* ==========================================
   Container Card
   ========================================== */
.container {
  background-color: #ffffff;
  width: 100%;
  max-width: 500px;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
}

h1 {
  font-size: 1.8rem;
  color: #1b4332;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* ==========================================
   Form Input & Button
   ========================================== */
input#orderId {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.2rem;
  background-color: #fafafa;
}

input#orderId:focus {
  border-color: #2d6a4f;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

button {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #1b4332;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover {
  background-color: #2d6a4f;
}

button:active {
  transform: scale(0.98);
}

/* ==========================================
   Tracking Results Box
   ========================================== */
#result {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

#result p {
  color: #666666;
}

/* Order Details Card (Generated dynamically by JS) */
.track-card {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  margin-top: 1rem;
}

.track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.track-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #1b4332;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: capitalize;
}

.status-pending {
  background-color: #ef6c00;
}

.status-processing {
  background-color: #0288d1;
}

.status-completed {
  background-color: #2e7d32;
}

.status-cancelled {
  background-color: #c62828;
}

/* Order Item List */
.track-items {
  list-style: none;
  margin-top: 0.5rem;
  padding: 0;
}

.track-items li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #e0e0e0;
  color: #555555;
  font-size: 0.9rem;
}

.track-items li:last-child {
  border-bottom: none;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 480px) {
  .container {
    padding: 1.8rem 1.2rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}