* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f6f9;
  color: #1f2937;
}

.header {
  background: #172554;
  color: white;
  padding: 20px 30px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 24px;
}

.header p {
  margin-top: 5px;
  font-size: 13px;
  opacity: 0.8;
}

.container {
  padding: 25px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}

.dashboard-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  border-left: 5px solid #2563eb;
}

.dashboard-card span {
  display: block;
  color: #6b7280;
  font-size: 14px;
}

.dashboard-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.dashboard-card.verified {
  border-left-color: #16a34a;
}

.dashboard-card.pending {
  border-left-color: #f59e0b;
}

.dashboard-card.changed {
  border-left-color: #dc2626;
}

.toolbar {
  background: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;

  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#searchInput {
  flex: 1;
  min-width: 300px;

  padding: 11px;

  border: 1px solid #d1d5db;
  border-radius: 6px;
}

#statusFilter,
#locationFilter {
  padding: 11px;

  border: 1px solid #d1d5db;
  border-radius: 6px;

  background: white;
}

.import-btn,
.download-btn {
  border: none;
  padding: 11px 18px;
  border-radius: 6px;

  color: white;
  background: #2563eb;

  cursor: pointer;
}

.import-btn:hover,
.download-btn:hover {
  background: #1d4ed8;
}

.table-container {
  background: white;
  border-radius: 10px;
  overflow: auto;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  min-width: 1300px;
  border-collapse: collapse;
}

th {
  background: #1e3a8a;
  color: white;

  padding: 13px 10px;

  text-align: left;
  font-size: 13px;

  white-space: nowrap;
}

td {
  padding: 11px 10px;

  border-bottom: 1px solid #e5e7eb;

  font-size: 13px;

  white-space: nowrap;
}

tr:hover {
  background: #f8fafc;
}

.status {
  font-weight: bold;
}

.status-pending {
  color: #b45309;
}

.status-verified {
  color: #15803d;
}

.status-changed {
  color: #dc2626;
}

.view-btn {
  background: #2563eb;
  color: white;

  border: none;
  padding: 7px 12px;

  border-radius: 5px;

  cursor: pointer;
}

.view-btn:hover {
  background: #1d4ed8;
}

/* Modal */

.modal {
  display: none;

  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.55);

  z-index: 1000;

  padding: 30px;

  overflow-y: auto;
}

.modal-content {
  background: white;

  max-width: 1100px;

  margin: auto;

  border-radius: 12px;

  overflow: hidden;
}

.modal-header {
  background: #172554;

  color: white;

  padding: 18px 22px;

  display: flex;

  justify-content: space-between;

  align-items: center;
}

.close-btn {
  border: none;

  background: transparent;

  color: white;

  font-size: 30px;

  cursor: pointer;
}

.details-grid {
  padding: 25px;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;
}

.field {
  display: flex;

  flex-direction: column;

  gap: 6px;
}

.field label {
  font-size: 13px;

  font-weight: bold;

  color: #4b5563;
}

.field input,
.field select {
  padding: 10px;

  border: 1px solid #d1d5db;

  border-radius: 6px;

  width: 100%;
}

.modal-footer {
  padding: 18px 25px;

  border-top: 1px solid #e5e7eb;

  text-align: right;
}

.save-btn {
  background: #16a34a;

  color: white;

  border: none;

  padding: 12px 22px;

  border-radius: 6px;

  cursor: pointer;
}

.save-btn:hover {
  background: #15803d;
}

.message {
  display: none;

  position: fixed;

  bottom: 25px;

  right: 25px;

  background: #172554;

  color: white;

  padding: 14px 20px;

  border-radius: 7px;

  z-index: 2000;
}

@media (max-width: 800px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;

    align-items: flex-start;

    gap: 15px;
  }
}
