.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 5px 5px 5px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border: 1px solid #ddd;
}

.page-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--site-color);
    margin: 0;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(270deg, #e74c3c, var(--site-color));
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    font-size: 12px;
    transition: 0.3s ease;
}

.download-btn:hover {
    opacity: 0.9;
    transform: translate(2px);
    background: linear-gradient(270deg, var(--site-color), #e74c3c);
    color: #fff;
}

/* --- Table --- */
/* --- Table --- */
.table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    /* Enables horizontal scroll for table only */
    /* width: 100%; */
    /* max-width: 100%; */
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    /* Remove this line to prevent page overflow */
    /* min-width: 1300px; */
}

th,
td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

thead {
    background: #001a1d;
    color: #fff;
}

tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

tbody tr:nth-child(even) {
    background: #eef4f5;
}

/* Keep smooth horizontal scroll visible on small screens */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #00abc9;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #ff9800;
    font-weight: 600;
}
 .badge {
  position: relative;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
  cursor: default;
  transition: all 0.2s ease;
}

.badge i {
  font-size: 12px;
}

/* === Tooltip Base === */
.badge::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--site-color);
  color: #fff;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Tooltip arrow */
.badge::before {
  content: '';
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #222 transparent transparent transparent;
  opacity: 0;
  transition: all 0.3s ease;
}

/* Show tooltip on hover */
.badge:hover::after,
.badge:hover::before {
  opacity: 1;
  bottom: 150%;
}

/* === Badge Colors === */
.badge-allowed {
  color: #00b894;
}

.badge-not {
  color: #e74c3c;
}
.admin-col {
    background: #f1f9ff;
    color: #00abc9;
    font-weight: 600;
}

.table i {
    font-size: 12px;
    padding: 6px;
    margin-right: 5px;
    border-radius: 3px;
    transition: 0.3s;
}

.fa-pen {
    color: #007bff;
}

.fa-check {
    color: #28a745;
}

.fa-trash, .fa-xmark {
    color: #ff4500;
}

.table i:hover {
    transform: scale(1.1);
}
.pagination {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    flex-wrap: wrap;
    padding-left: 0px;
}

.pagination li {
    border: 1.5px solid var(--site-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination li a {
    display: block;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* --- Hover Effects --- */
.pagination li:hover {
    background-color: var(--site-color);
    border-color: var(--site-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(226, 132, 19, 0.25);
}

.pagination li:hover a {
    color: #fff;
}

/* --- Active Page --- */
.pagination li.active {
    background-color: var(--site-color);
    border-color: var(--site-color);
}

.pagination li.active a {
    color: #fff;
    font-weight: 600;
}

/* --- Previous & Next Buttons --- */
.pre,
.next {
    border: 1.5px solid var(--site-color);
    border-radius: 3px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fff;
}

.pre i,
.next i {
    color: var(--site-color);
    margin: 0 10px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.pre:hover,
.next:hover {
    background-color: var(--site-color);
    transform: translateX(2px);
    box-shadow: 0 3px 6px rgba(226, 132, 19, 0.25);
}

.pre:hover i,
.next:hover i {
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .pagination {
        justify-content: center;
    }

    .pagination li a {
        padding: 5px 10px;
        font-size: 12px;
    }
    .page-header h2{
        font-size: 13px;
    }
    .download-btn{
        min-width: 185px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 8px 10px;
    }
}



  .tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
  }


  .tooltip-container:hover i {
    color: #376be6;
  }

  .custom-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #00abc9;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }

  .tooltip-container:hover .custom-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #00abc9 transparent transparent transparent;
  }

  .sticky {
    position: sticky;
    left: 0;
    background:#001a1d;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    color: #fff;
  }

  .sticky td,
  .sticky th {
    background:#001a1d;
    color: #fff;
  }