/* --- General Component Wrapper --- */
.table-component-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 1.5rem auto;
}

/* --- Responsive Table Wrapper --- */
.modern-table-wrapper {
  overflow-x: auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- Main Table Structure --- */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  background-color: #ffffff;
  margin-block-end: 0 !important;
  margin-bottom: 0 !important;
}

/* --- Table Header --- */
.modern-table__header-cell {
  background-color: #031538;
  color: #ffffff;
  padding: 12px 15px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #031538;
  white-space: nowrap;
}

/* --- Table Body & Cells --- */
.modern-table__body-row:hover {
  background-color: #f1f3f5;
  transition: background-color 0.2s ease-in-out;
}

.modern-table__cell {
  padding: 12px 15px;
  border-bottom: 1px solid #e9ecef;
  color: #6c757d;
  font-size: 15px;
}

/* Remove border from the last row in the body */
.modern-table__body-row:last-child .modern-table__cell {
  border-bottom: none;
}

.modern-table__cell--empty {
  text-align: center;
  color: #999;
  padding: 2rem;
}

/* --- Footer & Pagination --- */
.modern-table__footer .modern-table__cell {
  border-bottom: none; /* No border needed in the footer */
  padding: 8px 15px;
  background-color: #f8f9fa;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align to the start (right in RTL) */
  gap: 10px; /* Space between label and select */
}

.pagination-label {
  font-size: 15px;
  color: #6c757d;
}

.pagination-select {
  max-width: 65px;
  padding: 5px 7px;
  font-size: 14px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background-color: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  padding-left: 2.5rem;
}

.pagination-select:hover {
  border-color: #031538;
}

.pagination-select:focus {
  outline: none;
  border-color: #031538;
  box-shadow: 0 0 0 0.2rem rgba(3, 21, 56, 0.25);
}
.modern-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background-color: #031538;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(3, 21, 56, 0.1);
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  cursor: pointer;
  outline: none;
  margin-bottom: 1.2rem;
}

.modern-btn i {
  font-size: 1.1em; /* icon size */
}

.modern-btn:hover,
.modern-btn:focus {
  background: linear-gradient(90deg, #031538 80%, #344370 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(3, 21, 56, 0.16);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}
/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .modern-table__cell {
    font-size: 14px;
    padding: 10px;
  }

  .pagination-controls {
    justify-content: center;
    width: 100%;
  }
}
