/* ========================================
   REQUEST LIST
   ======================================== */
#requests-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.empty-state .empty-text {
  font-size: 18px;
  margin-bottom: 20px;
}

.empty-state .empty-btn {
  padding: 12px 32px;
  background: var(--main-accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'yekanbakh', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.empty-state .empty-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(246, 111, 6, 0.3);
}

/* ========================================
   REQUEST CARD
   ======================================== */
.request-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.request-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: default;
  gap: 12px;
}

.card-summary {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.card-summary .route {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--main-text-color);
}

.card-summary .route .origin,
.card-summary .route .destination {
  white-space: nowrap;
}

.card-summary .route .arrow {
  color: #ccc;
  font-size: 12px;
}

.card-summary .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
}

.card-summary .meta .type {
  background: #f0f0f0;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.card-summary .meta .weight {
  background: #f0f0f0;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.card-summary .meta .status {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.card-summary .receiver {
  font-size: 13px;
  color: #888;
}

/* Status colors */
.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-accepted {
  background: #cce5ff;
  color: #004085;
}

.status-transporting {
  background: #d4edda;
  color: #155724;
}

.status-delivered {
  background: #d1ecf1;
  color: #0c5460;
}

.status-received {
  background: #d4edda;
  color: #155724;
}

/* Expand Button */
.expand-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  color: #666;
}

.expand-btn:hover {
  background: #e8e8e8;
}

.expand-btn .expand-icon {
  font-family: sans-serif;
  font-size: 16px;
  transition: transform var(--transition-speed) ease;
  display: inline-block;
}

.expand-btn.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Card Body (expandable) */
.card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 16px;
}

.card-body.open {
  max-height: 800px;
  padding: 0 16px 16px 16px;
}

/* Detail Grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-item .label {
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

.detail-item .value {
  font-size: 14px;
  color: var(--main-text-color);
  word-break: break-all;
}

.detail-item .value.status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
}

.detail-item.highlight {
  background: #fff8f0;
  border-radius: 8px;
  padding: 8px 12px;
  grid-column: 1 / -1;
}

.detail-item.highlight .value.otp-code {
  font-size: 20px;
  font-weight: 700;
  color: var(--main-accent-color);
  letter-spacing: 2px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 500px) {
  .card-summary .route {
    font-size: 14px;
  }

  .card-summary .meta {
    font-size: 12px;
    gap: 6px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-item.highlight {
    grid-column: 1 / -1;
  }

  .card-header {
    padding: 12px;
  }

  .card-body.open {
    padding: 0 12px 12px 12px;
  }
}