/**
 * WebFreepik Bootstrap 5 Gradient Styles
 * File: gradient-styles.css
 * Version: 1.0
 */

/* ==========================================
   BOOTSTRAP 3 COMPATIBILITY
   ========================================== */

/* Add .hide class for Bootstrap 3 compatibility */
.hide {
  display: none !important;
}

/* ==========================================
   GRADIENT BUTTONS - Inspired by modern UI
   ========================================== */

.btn-gradient-primary {
  background: linear-gradient(135deg, #81bfff 0%, #3980d9 100%);
  border: none;
  color: white !important;
  font-weight: 500;
  transition: all 0.3s ease;
/*  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  border-radius: 8px;
  padding: 10px 24px;*/
}

.btn-gradient-primary:hover {
  background: linear-gradient(135deg, #3980d9 0%, #81bfff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  color: white !important;
}

.btn-gradient-success {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
  color: white !important;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
  border-radius: 8px;
  padding: 10px 24px;
}

.btn-gradient-success:hover {
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
  color: white !important;
}

.btn-gradient-warning {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  border: none;
  color: white !important;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
  border-radius: 8px;
  padding: 10px 24px;
}

.btn-gradient-warning:hover {
  background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 112, 154, 0.6);
  color: white !important;
}

.btn-gradient-info {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
  border: none;
  color: white !important;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(48, 207, 208, 0.4);
  border-radius: 8px;
  padding: 10px 24px;
}

.btn-gradient-info:hover {
  background: linear-gradient(135deg, #330867 0%, #30cfd0 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(48, 207, 208, 0.6);
  color: white !important;
}

.btn-gradient-danger {
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
  border: none;
  color: white !important;
  font-weight: 500;
  transition: all 0.3s ease;
  /*box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
  border-radius: 8px;
  padding: 10px 24px;*/
}

.btn-gradient-danger:hover {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
  color: white !important;
}

/* Download Button - Special Style */
.btn-download {
    background: linear-gradient(35deg, #74b5ff 0%, #0039a1 100%);
    border: none;
    color: white !important;
    font-weight: 600;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(93 93 93 / 40%);
    border-radius: 10px;
    padding: 25px 50px;
    text-transform: uppercase;
}

.btn-download:hover {
  background: linear-gradient(135deg, #94c7ff 0%, #2f90ff 100%);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgb(93 93 93 / 40%);
  color: white !important;
}

/* ==========================================
   TABLE GRADIENT BACKGROUND
   ========================================== */



/* Table Success Variant */
.table-gradient-success {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Table Warning Variant */
.table-gradient-warning {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Table Info Variant */
.table-gradient-info {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* ==========================================
   NAVBAR MODERN GRADIENT
   ========================================== */

.navbar-gradient {
  background: linear-gradient(135deg, #81bfff 0%, #3980d9 100%) !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: white !important;
  font-weight: 700;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 5px;
  padding: 8px 15px !important;
}

.nav-link:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-link i {
  margin-right: 6px;
}

/* ==========================================
   DROPDOWN MODERN
   ========================================== */

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 10px 0;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, #81bfff 0%, #3980d9 100%);
  color: white !important;
  transform: translateX(5px);
}

.dropdown-item i {
  margin-right: 10px;
  width: 20px;
}

/* ==========================================
   BADGES GRADIENT
   ========================================== */

.badge-gradient {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.badge-gradient-primary {
  background: linear-gradient(135deg, #81bfff 0%, #3980d9 100%);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.badge-gradient-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  box-shadow: 0 2px 8px rgba(56, 239, 125, 0.3);
}

/* ==========================================
   CARDS GRADIENT
   ========================================== */

.card-gradient {
  background: linear-gradient(135deg, #81bfff 0%, #3980d9 100%);
  border: none;
  border-radius: 15px;
  color: white;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
  overflow: hidden;
}

.card-gradient .card-header {
  background: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.card-gradient .card-body {
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================
   ALERT BOX CUSTOM
   ========================================== */

#customAlertBox {
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: none;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ==========================================
   PROGRESS BARS GRADIENT
   ========================================== */

.progress {
  height: 25px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-bar-gradient {
  background: linear-gradient(90deg, #81bfff 0%, #3980d9 100%);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
  animation: progress-animation 1.5s ease-in-out infinite;
}

@keyframes progress-animation {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ==========================================
   FORM CONTROLS MODERN
   ========================================== */

.form-control:focus,
.form-select:focus {
  border-color: #81bfff;
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.form-control,
.form-select {
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.form-control:hover,
.form-select:hover {
  border-color: #81bfff;
}

/* ==========================================
   THUMBNAIL CARDS FOR IMAGES
   ========================================== */

.thumbnail {
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: #81bfff;
}

.thumbnail.selected {
  border-color: #f5576c;
  box-shadow: 0 0 20px rgba(245, 87, 108, 0.5);
}

/* ==========================================
   LOADING SPINNER
   ========================================== */

.spinner-gradient {
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-top: 3px solid #81bfff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================
   RESPONSIVE UTILITIES
   ========================================== */

@media (max-width: 768px) {
  .btn-gradient-primary,
  .btn-gradient-success,
  .btn-gradient-warning,
  .btn-gradient-info,
  .btn-gradient-danger {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .btn-download {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .table-gradient th,
  .table-gradient td {
    padding: 10px;
    font-size: 0.85rem;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.bg-gradient-primary {
  background: linear-gradient(135deg, #81bfff 0%, #3980d9 100%);
}

.bg-gradient-success {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bg-gradient-info {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.border-radius-lg {
  border-radius: 15px;
}

.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   SITE TABS - Updated Style
   ========================================== */

/* Nav tabs container - No background gradient */
.nav-tabs {
  background: transparent !important;
  border: none;
  /*border-bottom: 2px solid #e0e0e0;*/
  padding: 2px 0;
  display: flex;
  flex-wrap: wrap;
  /*gap: 3px;*/
  overflow: hidden;
}

/* Nav item wrapper */
.nav-tabs .nav-item {
  flex: 1 1 auto;
  min-width: fit-content;
}
/* Nav link items - Default state - Reduced to 80% */
.nav-tabs .nav-link {
    background: transparent !important;
    border: 1px solid #e7e7e7 !important;
    color: #093366 !important;
    border-radius: 8px; /* 10px * 0.8 = 8px */
    margin: 0;
    padding: 8px 13px; /* 10px * 0.8 = 8px, 16px * 0.8 = 12.8px ≈ 13px */
    width: 100%;
    min-width: fit-content;
    text-align: center;
    white-space: nowrap;
    /*font-weight: 500;*/
    font-size: 1rem; /* Thêm dòng này để giảm font size */
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgb(0 0 0 / 10%) !important; /* 4px * 0.8 = 3.2px ≈ 3px, 8px * 0.8 = 6.4px ≈ 6px */
    border-radius: 3px !important; /* 4px * 0.8 = 3.2px ≈ 3px */
}

/* Nav link hover */
.nav-tabs .nav-link:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important; /* 4px * 0.8 = 3px, 12px * 0.8 = 9.6px ≈ 10px */
  background: #f8f9fa !important;
  color: #000 !important;
  transform: translateY(-2px);
  border-color: #81bfff !important;
}

/* Active nav link - Gradient background - Stronger selector */
.nav-tabs .nav-item .nav-link.active,
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-link.active:focus {
  /*background: linear-gradient(135deg, #81bfff 0%, #3980d9 100%) !important;*/
  background: linear-gradient(135deg, #00cfff 0%, #0643fb 100%) !important;
  color: white !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4) !important; /* 4px * 0.8 = 3px, 15px * 0.8 = 12px */
  padding: 8px 13px !important; /* 10px * 0.8 = 8px, 16px * 0.8 ≈ 13px */
  border-radius: 3px !important; /* 4px * 0.8 = 3px */
}




/* Site tab icons - Keep original colors */
.nav-tabs .nav-link img {
  vertical-align: middle;
  margin-right: 5px; /* 6px * 0.8 = 4.8px ≈ 5px */
  filter: none;
  max-height: 16px; /* Thêm dòng này để giảm kích thước icon */
}

/* Badge in tabs */
.nav-tabs .nav-link sup.badge {
  margin-left: 3px; /* 4px * 0.8 = 3.2px ≈ 3px */
  font-size: 0.52rem; /* 0.65rem * 0.8 = 0.52rem */
  padding: 2px 5px; /* 2px giữ nguyên, 6px * 0.8 = 4.8px ≈ 5px */
}

/* Badge color for inactive tabs */
.nav-tabs .nav-link sup.badge {
  background-color: #dc3545;
  color: white;
}

/* Badge color for active tab */
.nav-tabs .nav-link.active sup.badge {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
}


/* Card containing tabs */
.card.border-0 {
  border-radius: 10px;
  overflow: hidden;
}

/* Tab content area */
.tab-content {
  background: white;
  border-radius: 0 0 10px 10px;
}

/* Responsive: giảm khoảng cách trên mobile */
@media (max-width: 768px) {
  .nav-tabs {
    padding: 10px 0;
    gap: 6px;
  }
  
  .nav-tabs .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* ==========================================
   ALERT BOX GRADIENT - Yellow/Orange
   ========================================== */

.alert-gradient {
    background: radial-gradient(circle at top left, #fff25b00 0%, #fffbee 50%, #ffffff 100%);
    border: 1px solid #fff1d2;
    /* border-radius: 12px; */
    /* padding: 20px; */
    /* box-shadow: 4px 3px 15px rgb(253 203 110 / 30%); */
    position: relative;
    color: #000000;
}

.alert-gradient .btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.alert-gradient .btn-close:hover {
  opacity: 1;
}

.alert-gradient .description {
  color: #2d3436;
}

.alert-gradient h1 {
    color: #cb182a;
    font-family: sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgb(255 255 255 / 50%);
}

.alert-gradient p {
    color: #2d3436;
    line-height: 1.4;
    margin-bottom: 10px;
    font-family: sans-serif;
}

.alert-gradient b {
  color: #e17055;
  font-weight: 600;
}

.alert-gradient i {
  color: #d63031;
}

/* ==========================================
   VERTICAL TABS - Sidebar Style
   ========================================== */

/* Container chính cho layout vertical tabs */
.tabs-vertical-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Nav tabs vertical - Sidebar bên trái */
.nav-tabs.nav-tabs-vertical {
  flex-direction: column !important;
  width: 250px;
  min-width: 250px;
  border-radius: 10px;
  padding: 15px;
  gap: 8px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

/* Nav item trong vertical layout */
.nav-tabs.nav-tabs-vertical .nav-item {
  width: 100%;
  flex: 0 0 auto;
}

/* Nav link trong vertical layout */
.nav-tabs.nav-tabs-vertical .nav-link {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  display: flex;
  align-items: center;
}

/* Tab content area cho vertical layout */
.tabs-vertical-content {
  flex: 1;
  min-width: 0;
}

/* Responsive cho vertical tabs */
@media (max-width: 992px) {
  .tabs-vertical-layout {
    flex-direction: column;
  }
  
  .nav-tabs.nav-tabs-vertical {
    width: 100%;
    position: static;
    max-height: none;
    flex-direction: row !important;
    flex-wrap: wrap;
  }
  
  .nav-tabs.nav-tabs-vertical .nav-item {
    width: auto;
    flex: 1 1 auto;
  }
  
  .nav-tabs.nav-tabs-vertical .nav-link {
    text-align: center;
  }
}

/* Scrollbar styling cho vertical tabs */
.nav-tabs.nav-tabs-vertical::-webkit-scrollbar {
  width: 6px;
}

.nav-tabs.nav-tabs-vertical::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.nav-tabs.nav-tabs-vertical::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.nav-tabs.nav-tabs-vertical::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   CONTAINER MAX WIDTH 1200PX
   ========================================== */

/* Container max width 1200px */
/*.container,
.container-fluid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}*/

/* Main content areas */
.step1,
.step2 {
  width: 100%;              /* Cho phép co giãn toàn màn hình */
  max-width: 1400px;        /* Giới hạn tối đa 1400px */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;   /* Đảm bảo padding không làm vượt quá 1400px */
  padding-left: 20px;       /* Thêm khoảng đệm hai bên cho đẹp */
  padding-right: 20px;
}

/* Responsive - Giữ full width trên mobile */
@media (max-width: 1199px) {
  .container,
  .container-fluid,
  .step1,
  .step2 {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}



/* ==========================================
   CUSTOM BG-DANGER FOR NAV-TABS ONLY
   ========================================== */

.nav-tabs .bg-danger {
  background: transparent !important;
  color: #646464 !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 12px !important;
}



/* Simple navbar gradient change */
.navbar {
  background: linear-gradient(135deg, #81bfff 0%, #3980d9 100%) !important;
  /*box-shadow: 0 4px 15px rgba(57, 128, 217, 0.4);*/
}


/* Giới hạn chiều rộng cho các vùng flex container */
.d-flex.flex-wrap.gap-2 {
  width: 100%;
  max-width: 1200px;       /* Giới hạn giống .step1 và .step2 */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 20px;       /* Cân đối lề hai bên */
  padding-right: 20px;
}

/* Responsive - giữ full width trên mobile */
@media (max-width: 1240px) {
  .d-flex.flex-wrap.gap-2 {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}


/* Giới hạn toàn bộ nội dung dưới header */
.main-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
 /* padding-left: 20px;
  padding-right: 20px;*/
  overflow-x: hidden;
}

/* Đảm bảo mọi hàng không tràn ngang */
.main-content .row {
  margin-left: 0;
  margin-right: 0;
}

/* Giới hạn phần tag d-flex */
.tags .d-flex {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
 /* padding-left: 20px;
  padding-right: 20px;*/
  overflow-x: hidden;
}


/* GIẢI PHÁP VŨ LỰC - Bắt buộc mọi thứ phải fit */
@media (max-width: 1024px) {
  * {
    max-width: 100vw !important;
  }
  
  html,
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  [class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .container,
  .container-fluid,
  .step1,
  .step2,
  .main-content {
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}



/* Giảm chiều cao textarea mlink */
textarea.mlink {
  height: 100px !important;
  min-height: 100px !important;
  max-height: 200px !important; /* Giới hạn tối đa nếu cần */
}




/* ==========================================
   BUTTON SHOWLISTLINK STYLE
   ========================================== */

/* Button mặc định - Nền xám, chữ đen nhẹ */
.btn.btn-outline-light.showlistlink {
  background-color: #e9ecef !important;     /* Nền xám nhẹ */
  color: #495057 !important;                /* Chữ đen nhẹ */
  border: 2px solid #dee2e6 !important;     /* Border xám */
  font-weight: 500 !important;
  /*padding: 10px 20px !important;*/
  transition: all 0.3s ease !important;
}

/* Hover effect - Đậm hơn */
.btn.btn-outline-light.showlistlink:hover {
  background-color: #dee2e6 !important;     /* Nền xám đậm hơn */
  color: #212529 !important;                /* Chữ đen đậm hơn */
  border-color: #adb5bd !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Active/Click effect */
.btn.btn-outline-light.showlistlink:active {
  background-color: #ced4da !important;     /* Nền xám đậm khi click */
  color: #212529 !important;
  transform: translateY(0) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Focus effect */
.btn.btn-outline-light.showlistlink:focus {
  outline: none !important;
  box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25) !important;
  background-color: #e9ecef !important;
  color: #495057 !important;
}

/* Icon trong button */
.btn.btn-outline-light.showlistlink i {
  margin-right: 8px !important;
  color: #495057 !important;
}

.btn.btn-outline-light.showlistlink:hover i {
  color: #212529 !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .btn.btn-outline-light.showlistlink {
    padding: 8px 16px !important;
    font-size: 0.875rem !important;
  }
}

@media (max-width: 576px) {
  .btn.btn-outline-light.showlistlink {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
  }
}


/* Support both Bootstrap 3 (.warning) and Bootstrap 5 (.table-warning) */
.table > * > tr.warning > *,
.table > * > tr.table-warning > *,
.table > * > tr > *.warning,
.table > * > tr > *.table-warning {
    background-color: #fcf8e3 !important;
    color: #8a6d3b !important;
}

/* Hover state */
.table-hover > tbody > tr.warning:hover > *,
.table-hover > tbody > tr.table-warning:hover > *,
.table-hover > tbody > tr:hover > .warning,
.table-hover > tbody > tr:hover > .table-warning {
    background-color: #e9dfc9 !important;
}



/* ==========================================
   BOOTSTRAP 3 & 5 COMPATIBILITY - DANGER COLOR
   ========================================== */

/* Support both Bootstrap 3 (.danger) and Bootstrap 5 (.table-danger) */
.table > * > tr.danger > *,
.table > * > tr.table-danger > *,
.table > * > tr > *.danger,
.table > * > tr > *.table-danger {
    background-color: #f2dede !important;
    color: #a94442 !important;
}

/* Hover state */
.table-hover > tbody > tr.danger:hover > *,
.table-hover > tbody > tr.table-danger:hover > *,
.table-hover > tbody > tr:hover > .danger,
.table-hover > tbody > tr:hover > .table-danger {
    background-color: #ebcccc !important;
}

/* Striped tables */
.table-striped > tbody > tr.danger:nth-of-type(odd) > *,
.table-striped > tbody > tr.table-danger:nth-of-type(odd) > *,
.table-striped > tbody > tr:nth-of-type(odd) > .danger,
.table-striped > tbody > tr:nth-of-type(odd) > .table-danger {
    background-color: #eed9d9 !important;
}

/* Bordered tables */
.table-bordered > * > tr.danger > *,
.table-bordered > * > tr.table-danger > *,
.table-bordered > * > tr > *.danger,
.table-bordered > * > tr > *.table-danger {
    border-color: #dca7a7 !important;
}



/* ==========================================
   BOOTSTRAP 3 & 5 COMPATIBILITY - SUCCESS COLOR
   ========================================== */

/* Support both Bootstrap 3 (.success) and Bootstrap 5 (.table-success) */
.table > * > tr.success > *,
.table > * > tr.table-success > *,
.table > * > tr > *.success,
.table > * > tr > *.table-success {
    background-color: #dff0d8 !important;
    color: #3c763d !important;
}

/* Hover state */
.table-hover > tbody > tr.success:hover > *,
.table-hover > tbody > tr.table-success:hover > *,
.table-hover > tbody > tr:hover > .success,
.table-hover > tbody > tr:hover > .table-success {
    background-color: #d0e9c6 !important;
}

/* Striped tables */
.table-striped > tbody > tr.success:nth-of-type(odd) > *,
.table-striped > tbody > tr.table-success:nth-of-type(odd) > *,
.table-striped > tbody > tr:nth-of-type(odd) > .success,
.table-striped > tbody > tr:nth-of-type(odd) > .table-success {
    background-color: #d6ead1 !important;
}

/* Bordered tables */
.table-bordered > * > tr.success > *,
.table-bordered > * > tr.table-success > *,
.table-bordered > * > tr > *.success,
.table-bordered > * > tr > *.table-success {
    border-color: #c1e2b3 !important;
}






/* Đảm bảo HTML và body chiếm toàn bộ chiều cao */
html, body {
    height: 100%;
}

/* Container wrapper cho toàn bộ nội dung */
body {
    display: flex;
    flex-direction: column;
}

/* Nội dung chính tự động chiếm hết không gian còn lại */
body > *:not(.footer) {
    flex: 1 0 auto;
}

/* Footer luôn ở cuối */
.footer {
    flex-shrink: 0;
}
