/* Wedding Requests — CSS */

/* Page header */
.page-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-header);
  padding: 0;
  margin: 0;
}

.icon-title {
  font-size: 28px;
  color: #e11d48;
}

.page-subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.page-result-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff5f7;
  color: #be185d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== SUMMARY CARDS ===== */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.summary-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-icon .material-icons {
  font-size: 24px;
}

.summary-icon.new { background: #fce7f3; }
.summary-icon.new .material-icons { color: #be185d; }

.summary-icon.upcoming { background: #fef3c7; }
.summary-icon.upcoming .material-icons { color: #92400e; }

.summary-icon.confirmed { background: #d1fae5; }
.summary-icon.confirmed .material-icons { color: #065f46; }

.summary-icon.total { background: #fce7f3; }
.summary-icon.total .material-icons { color: #e11d48; }

.summary-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-header);
  line-height: 1.1;
}

.summary-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== FILTERS ===== */
.filters-surface {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.filters-bar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  min-width: 140px;
}

.filter-group-grow {
  flex: 1;
  min-width: 200px;
}

.filter-actions {
  display: flex;
  align-items: flex-end;
}

/* ===== TABLE ===== */
.table-surface {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
}

.data-table-wrap {
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  background: var(--color-header);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #f7fafc;
}

.data-table tbody tr.clickable {
  cursor: pointer;
}

.text-muted {
  color: var(--color-text-secondary);
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.status-new { background: #fce7f3; color: #be185d; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-completed { background: #dbeafe; color: #1e40af; }
.status-canceled, .status-cancelled { background: #fee2e2; color: #991b1b; }
.status-contacted { background: #e0e7ff; color: #3730a3; }
.status-proposal_sent { background: #dbeafe; color: #1e40af; }
.status-site_visit { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-declined { background: #fee2e2; color: #991b1b; }

/* ===== BUTTONS ===== */
.btn-approve { background: #059669; color: #fff; border: none; font-weight: 600; }
.btn-approve:hover { background: #047857; }
.btn-decline { background: #dc2626; color: #fff; border: none; font-weight: 600; }
.btn-decline:hover { background: #b91c1c; }
.btn-danger { background: #dc2626; color: #fff; border: none; font-weight: 600; }
.btn-danger:hover { background: #b91c1c; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-height: 85vh; display: flex; flex-direction: column; width: 95%;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid #e2e8f0;
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close {
  background: none; border: none; cursor: pointer; color: #666;
  padding: 4px;
}
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 24px; border-top: 1px solid #e2e8f0; flex-wrap: wrap;
}
body.modal-open { overflow: hidden; }

/* ===== DETAIL GRID ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 16px;
}

.detail-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.detail-value {
  font-size: 14px;
  color: var(--color-text-primary);
}

.detail-value.bold {
  font-weight: 600;
}

.detail-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.detail-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 6px;
}

/* ===== NOTES ===== */
.notes-list {
  max-height: 200px;
  overflow-y: auto;
}

.note-item {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.note-meta {
  font-size: 11px;
  color: #666;
}

.note-text {
  font-size: 13px;
  margin-top: 2px;
}

.note-add-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.note-add-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid #edf2f7;
}

.pagination-info {
  font-size: 13px;
  color: #666;
}

.pagination-btns {
  display: flex;
  gap: 8px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.empty-state .material-icons {
  font-size: 40px;
  opacity: 0.3;
  display: block;
  margin: 0 auto 8px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: toast-in 0.3s ease;
}

.toast.success { background: #38a169; }
.toast.error { background: #e53e3e; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .page-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-bar {
    flex-direction: column;
  }

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