.admin-panel {
  background: #fff;
  border: 1px solid #edf0f6;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-search-box {
  flex: 1;
  min-width: 260px;
}

.admin-search-box input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d9dfeb;
  border-radius: 14px;
  background: #f9fafc;
  color: #111827;
  outline: none;
  transition: 0.2s ease;
}

.admin-search-box input:focus {
  border-color: #111827;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #edf0f6;
  border-radius: 16px;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
  background: #fff;
}

.admin-table thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 14px;
  border-bottom: 1px solid #e9edf5;
  text-align: left;
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 16px 14px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
  color: #111827;
  font-size: 14px;
  line-height: 1.5;
}

.admin-table tbody tr:hover {
  background: #fcfcfd;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid #d7dbe7;
  background: #fff;
  color: #111827;
}

.admin-btn-sm:hover {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.empty-admin-box {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 15px;
  border: 1px dashed #d9dee8;
  border-radius: 16px;
  background: #fafbfc;
}

.user-detail-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

.admin-card {
  background: #fff;
  border: 1px solid #edf0f6;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.admin-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #111827;
}

.admin-card p {
  margin: 0 0 12px;
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
}

.admin-card p strong {
  color: #111827;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-confirmed {
  background: #dcfce7;
  color: #166534;
}

.status-shipping {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-completed {
  background: #e0e7ff;
  color: #4338ca;
}

.status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 1100px) {
  .user-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-panel {
    padding: 14px;
  }

  .admin-card {
    padding: 16px;
  }
}