.content-wrapper {
  padding: 10px;
}

.card {
  overflow-x: auto;
}

.table {
  min-width: 600px;
}

.table th,
.table td {
  font-size: 14px;
  padding: 8px;
}

.profile-image-detail {
  width: 40px !important;
  height: 40px !important;
}

.card-tools .input-group {
  width: 100% !important;
  max-width: 250px;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.pagination li {
  margin: 0 5px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 12px;
  text-decoration: none;
  color: #333;
  border: 1px solid #e9d2a5;
  border-radius: 4px;
  font-size: 14px;
}

.pagination a.active-page {
  background-color: #e9d2a5;
  color: #000;
  font-weight: bold;
}

.pagination a:hover:not(.active-page) {
  background-color: #f4e8c1;
}

.pagination .prev-btn,
.pagination .next-btn {
  background-color: #e9d2a5;
  color: #000;
}

.table-loading {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.table-loading::after {
  content: 'Loading...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: #000;
  z-index: 10;
}

.status-btn {
  width: 100px;
  margin: 2px 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.status-btn.enable-btn {
  background-color: #28a745 !important;
  color: #fff !important;
  border: 1px solid #28a745 !important;
}

.status-btn.enable-btn:hover {
  background-color: #218838 !important;
  color: #fff !important;
}

.status-btn.disable-btn {
  background-color: #dc3545 !important;
  color: #fff !important;
  border: 1px solid #dc3545 !important;
}

.status-btn.disable-btn:hover {
  background-color: #c82333 !important;
  color: #fff !important;
}

.btn-secondary {
  width: 100px;
  margin: 2px 0;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.modal-dialog {
  max-width: 90%;
}

@media (max-width: 576px) {
  .content-header h1 {
    font-size: 1.5rem;
  }

  .breadcrumb {
    font-size: 0.9rem;
  }

  .card-tools .input-group {
    max-width: 100%;
  }

  .status-btn,
  .btn-secondary {
    width: 80px;
    font-size: 0.8rem;
  }

  .modal-body {
    font-size: 0.9rem;
  }

  .modal-footer .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .pagination {
    justify-content: center;
  }

  .table th,
  .table td {
    font-size: 12px;
    padding: 6px;
  }

  .quote-text {
    font-style: italic;
    max-height: 100px;
    overflow: hidden;
    line-height: 1.5;
  }

  .modal-header {
    border-bottom: 1px solid #dee2e6;
  }

  .custom-file-label::after {
    content: "Browse";
  }

  .btn-group .btn {
    margin-right: 2px;
  }

  .table th {
    white-space: nowrap;
  }

  .table-wrapper {
    position: relative;
  }

  .table-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .table-loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #000;
    z-index: 10;
  }

  #quotesTableBody {
    transition: opacity 0.2s ease-in-out;
  }

  .loading-overlay {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
  }

  .loading-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #007bff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    to {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }

  .toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 200px;
  }

  /* Pagination styles */
  #pagination {
    display: none;
    justify-content: flex-end;
    margin-top: 15px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    min-height: 40px;
  }

  #pagination.pagination {
    display: flex !important;
  }

  .content-wrapper #pagination ul.pagination {
    display: flex;
    justify-content: flex-end;
    margin: 15px 0 0 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
  }

  .content-wrapper #pagination ul.pagination li {
    margin: 0 3px;
  }

  .content-wrapper #pagination ul.pagination a,
  .content-wrapper #pagination ul.pagination span {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e9d2a5;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .content-wrapper #pagination ul.pagination a.active-page {
    background-color: #e9d2a5;
    color: #000;
    font-weight: bold;
  }

  .content-wrapper #pagination ul.pagination a:hover:not(.active-page) {
    background-color: #f4e8c1;
  }

  .content-wrapper #pagination ul.pagination .prev-btn,
  .content-wrapper #pagination ul.pagination .next-btn {
    background-color: #e9d2a5;
    color: #000;
  }

  .content-wrapper #pagination .page-item .page-link {
    color: #333;
    border: 1px solid #e9d2a5;
    background: white;
  }

  .content-wrapper #pagination .page-item.active .page-link {
    background-color: #e9d2a5;
    color: #000;
    border-color: #e9d2a5;
  }

  .content-wrapper #pagination .page-item .page-link:hover {
    background-color: #f4e8c1;
  }



  .table-container.table-loading {
    opacity: 0.5;
    pointer-events: none;
  }

  .form-loading {
    opacity: 0.5;
    pointer-events: none;
  }

}

@media (max-width: 576px) {
  .search-container {
    max-width: 100%;
  }

  .content-header h1 {
    font-size: 1.5rem;
  }

  .table-responsive {
    overflow-x: auto;
  }
}

@media (max-width: 576px) {
  .content-wrapper #pagination ul.pagination {
    justify-content: center;
  }

  .content-wrapper #pagination ul.pagination a,
  .content-wrapper #pagination ul.pagination span {
    padding: 5px 10px;
    font-size: 13px;
  }
}

.search-container {
  max-width: 300px;
  margin-left: auto;
  margin-bottom: 1rem;
}

.success-message {
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
}

.success-message.error {
  background-color: #f8d7da;
  color: #721c24;
}

.success-message.success {
  background-color: #d4edda;
  color: #155724;
}

.custom-btn {
  background-color: #f4e8c1 !important;
  border-color: #f4e8c1 !important;
  color: black !important;
  transition: all 0.2s ease;
}

.custom-btn:hover,
.custom-btn:focus,
.custom-btn:active {
  background-color: #f4e8c1 !important;
  border-color: #f4e8c1 !important;
  color: black !important;
  box-shadow: none !important; /* Removes Bootstrap hover glow */
}

.no-hover {
  background-color: #f4e8c1 !important; /* or any color you prefer */
  border-color: #f4e8c1 !important;
  color: black !important;
}

.no-hover:hover,
.no-hover:focus,
.no-hover:active,
.no-hover:not(:disabled):not(.disabled).active,
.show > .no-hover.dropdown-toggle {
  background-color: #f4e8c1 !important;
  border-color: #f4e8c1 !important;
  color: black !important;
  box-shadow: none !important;
}

.custom-modal-header {
  background-color: #f4e8c1 !important;
  color: black !important;
}

.custom-modal-header .modal-title,
.custom-modal-header .close {
  color: black !important;
}

.custom-alert {
  border: none !important;
  background-color: #f4e8c1 !important; /* Optional: to match your modal theme */
  color: black !important;
}

.custom-alert .alert-link {
  color: black !important;
  font-weight: 600;
  text-decoration: underline;
}

.custom-alert .alert-link:hover {
  text-decoration: none;
}

.custom-edit-btn {
  background-color: #f4e8c1 !important; /* New background color */
  border-color: #f4e8c1 !important;     /* Match border with background */
  color: black !important;              /* Icon color */
}

.custom-edit-btn:hover,
.custom-edit-btn:focus,
.custom-edit-btn:active {
  background-color: #f4e8c1 !important; /* Keep same color on hover/focus */
  border-color: #f4e8c1 !important;
  color: black !important;
  box-shadow: none !important;          /* Remove Bootstrap hover shadow */
}

.modal-backdrop.show{
  z-index: revert-layer;
}

.input-group-append .btn, .input-group-prepend .btn,
.main-header{
  z-index: 0 !important;
}

.card-tools .input-group.searchmanage-width{
  width: 300px !important;
  max-width: 100% !important;
}

.input-group.search-column-width {
  width: 300px !important;  /* fixed width */
  max-width: 100% !important; /* responsive limit */
}