/* ========== Global Styles ========== */
.parcel-search-app {
  max-width: 1200px;
  margin: 40px auto;
  padding: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
}

.parcel-search-app h2 {
  font-size: 1.9rem;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  margin-bottom: 24px;
  text-transform: capitalize;
}

/* ========== Search Controls ========== */
.search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.search-controls select,
.search-controls input {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #fff;
  min-width: 220px;
}

.search-controls select:focus,
.search-controls input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.parcel-search-btn {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.parcel-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ========== Results Table ========== */
.parcel-results {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.parcel-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.parcel-table th {
  background: #f1f5f9;
  color: #475569;
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e2e8f0;
}

.parcel-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  vertical-align: middle;
}

.parcel-table tr:last-child td {
  border-bottom: none;
}

.parcel-table tr:hover td {
  background-color: #f8fafc;
}

/* ========== Feedback ========== */
.loading {
  padding: 40px;
  text-align: center;
  color: #2563eb;
  font-weight: 500;
}

.error {
  color: #dc2626;
  text-align: center;
  padding: 20px;
}

.no-results {
  color: #64748b;
  text-align: center;
  padding: 40px;
  font-style: italic;
}

.examples {
  background: #f8fafc;
  border-left: 4px solid #3b82f6;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.examples h4 {
  margin: 0 0 8px 0;
  color: #1e293b;
}

.examples ul {
  margin: 0;
  padding-left: 20px;
}

/* ========== Mobile Responsive ========== */
@media (max-width: 1024px) {
  .parcel-table thead {
    display: none;
  }

  .parcel-table,
  .parcel-table tbody,
  .parcel-table tr,
  .parcel-table td {
    display: block;
    width: 100%;
  }

  .parcel-table tr {
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
  }

  .parcel-table td {
    border: none;
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    text-align: right;
  }

  .parcel-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    margin-right: 10px;
    text-align: left;
  }
}