@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');
:root {
  --primary-ocean: #0077ff;
  --dark-ocean: #003399;
  --light-ocean: #00ddeb;
  --ocean-gradient: linear-gradient(135deg, #001f4d 0%, #0055cc 50%, #00ddeb 100%);
  --text-main: #333;
  --bs-body-font-family: 'Kanit', sans-serif;
}
body {
  font-family: 'Kanit', sans-serif !important;
  background-color: #f4f6f9;
  transition: background-color 0.3s, color 0.3s;
}
.blue-ocean-header {
  background: var(--ocean-gradient);
  padding: 180px 0 220px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 44, 95, 0.4);
  z-index: 1;
}
.blue-ocean-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 10px), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 10px);
  background-size: 20px 20px;
  z-index: 1;
}
.blue-ocean-header .container {
  position: relative;
  z-index: 10;
}
.text-shadow {
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.content-wrapper {
  margin-top: 40px;
  padding-bottom: 60px;
  position: relative;
  z-index: 20;
}
.filter-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}
.gradient-btn {
  background: var(--ocean-gradient);
  border: none;
  color: white;
  font-weight: 500;
  transition: transform 0.2s, background 0.3s;
}
.gradient-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0055cc 0%, #001f4d 100%);
}
.custom-table {
  border-collapse: separate;
  border-spacing: 0;
}
.card-header {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
}
.custom-table thead th {
  background: var(--dark-ocean);
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  border: none;
  padding: 15px;
}
.custom-table tbody tr {
  background: white;
  border-bottom: 1px solid #f0f0f0;
  transition: transform 0.2s, background-color 0.2s;
}
.custom-table tbody tr:hover {
  background-color: #f8fbff;
  transform: translateY(-2px); 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}
.custom-table td {
  padding: 16px;
  vertical-align: middle;
}
.doc-title {
  color: #2c3e50;
  text-decoration: none;
  display: block;
}


.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-bottom: 20px;
}
.pagination-pill {
  background: #ffffff;
  padding: 8px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
  display: inline-flex;
  align-items: center;
  gap: 15px;
}
.page-nav-btn {
  color: #9aa0a6;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.page-nav-btn:hover {
  color: var(--primary-ocean);
}
.page-nav-btn.disabled {
  color: #e0e0e0;
  pointer-events: none;
  cursor: default;
}
.page-nav-icon {
  color: #b0b8c1;
  font-size: 0.85rem;
  margin: 0 5px;
  transition: color 0.3s;
}
.page-nav-icon:hover {
  color: var(--primary-ocean);
}
.page-number-link {
  color: #6c757d;
  text-decoration: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* วงกลม */
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.page-number-link:hover {
  background-color: #f1f8ff;
  color: var(--primary-ocean);
}
.page-number-link.active {
  background: var(--primary-ocean);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.4); /* เงาเรืองแสง */
}


[data-bs-theme="dark"] body {
  background-color: #0d1117;
  color: #e0e0e0;
}
[data-bs-theme="dark"] .filter-box,
[data-bs-theme="dark"] .card {
  background-color: #161b22;
  border-color: #30363d;
  color: #e0e0e0;
  box-shadow: none;
}
[data-bs-theme="dark"] .card-header {
  background-color: #1c2128 !important;
  border-bottom-color: #30363d;
  color: #e0e0e0;
}
[data-bs-theme="dark"] .custom-table thead th {
  background-color: #21262d; 
}
[data-bs-theme="dark"] .custom-table tbody tr {
  background-color: #161b22;
  border-bottom-color: #30363d;
}
[data-bs-theme="dark"] .custom-table tbody tr:hover {
  background-color: #21262d;
}
[data-bs-theme="dark"] .doc-title {
  color: #e0e0e0;
}
[data-bs-theme="dark"] .text-muted {
  color: #8b949e !important;
}
[data-bs-theme="dark"] .form-label.text-muted {
  color: #c9d1d9 !important;
}
[data-bs-theme="dark"] .form-control, 
[data-bs-theme="dark"] .form-select {
  background-color: #0d1117;
  border-color: #30363d;
  color: #c9d1d9;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 0.25rem rgba(88, 166, 255, 0.2);
  background-color: #0d1117;
  color: #e0e0e0;
}
[data-bs-theme="dark"] .badge.bg-light {
  background-color: #21262d !important;
  color: #c9d1d9 !important;
  border-color: #30363d !important;
}

[data-bs-theme="dark"] .pagination-pill {
  background-color: #161b22;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
[data-bs-theme="dark"] .page-number-link:hover {
  background-color: #21262d;
  color: #58a6ff;
}

@media (max-width: 768px) {
  .blue-ocean-header {
    padding: 120px 0 160px 0;
  }
  .custom-table thead {
    display: none;
  }
  .custom-table tbody td {
    display: block;
    text-align: left;
    border-bottom: none;
    padding: 8px 15px;
  }
  .custom-table tbody tr {
    border: 1px solid #eee;
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 10px 0;
    display: block;
  }
  [data-bs-theme="dark"] .custom-table tbody tr {
    border-color: #30363d;
  }
  
  .pagination-pill {
    padding: 8px 15px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-nav-btn {
      display: none; 
  }
}