/* =========================
   GENERAL WRAPPER
========================= */
.table-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  font-family: Arial, sans-serif;
}

/* =========================
   TOOLBAR (HELP TEXT + CONTROLS)
========================= */
.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

.toolbar-help {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  max-width: 420px;
}

.toolbar-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* =========================
   SEARCH (COMMAND BAR STYLE)
========================= */
.search-section {
  display: flex;
  align-items: center;
  gap: 12px;

  background: #8b1c1c;
  padding: 14px;
  border-radius: 12px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* LEFT LABEL */
.search-label {
  color: white;
  font-weight: 600;
  font-size: 14px;

  width: 260px;
  flex-shrink: 0; /* 🔥 prevents squishing */
  line-height: 1.3;
}

/* RIGHT SIDE WRAPPER (FIXED) */
.search-input-wrapper {
  flex: 1;
  min-width: 0; /* 🔥 critical fix for overflow issues */
}

/* INPUT */
.search-input-wrapper input {
  width: 100%;
  padding: 12px 14px;

  border-radius: 10px;
  border: none;
  outline: none;

  font-size: 14px;
  box-sizing: border-box; /* 🔥 prevents overflow expansion */
}

/* FOCUS */
.search-input-wrapper input:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
}

/* =========================
   HEADER
========================= */
.main-header {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
}

.highlight {
  color: #8b1c1c;
}

.contact {
  text-align: center;
  font-size: 20px;
  margin: 5px 0;
}

.description {
  text-align: center;
  font-size: 14px;
  margin: 10px 0 20px 0;
}

/* =========================
   BUTTONS
========================= */
.button-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.btn {
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  border: none;
}

.red-btn {
  background-color: #8b1c1c;
  color: white;
}

.white-btn {
  background-color: white;
  color: black;
  border: 1px solid #8b1c1c;
}

/* =========================
   TABLE
========================= */
.table-container {
  width: 90%;
  margin: 0 auto 20px auto;
  font-family: Arial, sans-serif;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1.5fr 3fr 0.5fr 1.5fr;
  background-color: #8b0000;
  color: white;
  padding: 15px;
  font-weight: bold;
}

.table-body .table-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 3fr 0.5fr 1.5fr;
  padding: 15px;
  text-transform: uppercase;
}

.table-body .table-row:nth-child(even) {
  background-color: #f2f2f2;
}

/* =========================
   SKELETON LOADER
========================= */
.table-row.skeleton span {
  display: block;
  height: 14px;
  width: 100%;
  background: #e0e0e0;
  border-radius: 4px;
  animation: pulse 1.2s infinite ease-in-out;
}

.table-row.skeleton span:nth-child(1) { width: 60%; }
.table-row.skeleton span:nth-child(2) { width: 80%; }
.table-row.skeleton span:nth-child(3) { width: 90%; }
.table-row.skeleton span:nth-child(4) { width: 40%; }
.table-row.skeleton span:nth-child(5) { width: 70%; }

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* =========================
   PAGINATION
========================= */
.pagination-wrapper {
  width: 90%;
  margin: 30px auto;
  padding: 10px 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  background: transparent;
}

.pagination-info {
  font-size: 15px;
  color: #666;
  text-align: center;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.page-btn {
  background: transparent;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}

.page-btn:hover {
  color: #000;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-numbers button {
  background: transparent;
  border: none;
  font-size: 15px;
  color: #666;
  cursor: pointer;
}

.page-numbers button:hover {
  color: #000;
}

.page-numbers button.active-page {
  color: #000;
  font-weight: 600;
}

.page-numbers span {
  color: #999;
  padding: 0 4px;
}