* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

h1 {
  margin: 0 0 10px;
  color: #1f2a5a;
}

.intro {
  margin: 0 0 28px;
  font-size: 16px;
  color: #4b5563;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  text-decoration: none;
  padding: 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dbe3f0;
  box-shadow: 0 4px 14px rgba(31, 42, 90, 0.08);
  color: inherit;
}

.card h2 {
  margin: 0 0 8px;
  color: #1f2a5a;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.45;
}

.policy {
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(31, 42, 90, 0.08);
}

.meta {
  margin: 8px 0 24px;
  font-size: 14px;
  color: #6b7280;
}

h2 {
  margin-top: 24px;
  margin-bottom: 10px;
  color: #1f2a5a;
}

ul {
  margin-top: 8px;
}

a.home-link {
  display: inline-block;
  margin-top: 28px;
  color: #1f2a5a;
  font-weight: 600;
}

/* Deletion form */
.deletion-form {
  margin-top: 20px;
}

.deletion-form label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 600;
  color: #1f2a5a;
  font-size: 14px;
}

.phone-input-group {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.country-code {
  padding: 10px 14px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 600;
  font-size: 15px;
  border-right: 1px solid #d1d5db;
  white-space: nowrap;
}

.phone-input-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 15px;
  background: transparent;
}

.deletion-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: #1f2937;
  appearance: auto;
}

.btn-submit {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 12px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #b91c1c;
}

.btn-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* Messages */
.message {
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
}

.message p {
  margin: 6px 0 0;
  font-size: 14px;
}

.message-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.message-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.message-warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

/* Admin page */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.stat-pending {
  background: #fef3c7;
  color: #92400e;
}

.stat-completed {
  background: #d1fae5;
  color: #065f46;
}

.stat-total {
  background: #e0e7ff;
  color: #3730a3;
}

.btn-refresh {
  padding: 8px 20px;
  background: #1f2a5a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-refresh:hover {
  background: #2d3a6e;
}

.loading-spinner {
  text-align: center;
  padding: 32px;
  color: #6b7280;
  font-size: 15px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 15px;
}

.table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.admin-table th {
  background: #f9fafb;
  color: #1f2a5a;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table tr:hover {
  background: #f9fafb;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.btn-action {
  padding: 5px 14px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-complete {
  background: #059669;
  color: #fff;
}

.btn-complete:hover {
  background: #047857;
}

.btn-complete:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.action-done {
  color: #6b7280;
  font-size: 13px;
  font-style: italic;
}
