.authentication {
  background: #f0f0f0;
}

.authentication .authentication-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url(https://images.squarespace-cdn.com/content/v1/6346993…/b5506a5a-3291-4146-a35b-7f2be5c7ae69/inacoustic-Road-Traffic-Noise-Survey-Devon.jpg)
    center center;
  background-size: cover;
}

.authentication .authentication-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #3c77baa3;
  /* Adjust the color and opacity */
  z-index: 1;
}

.authentication .authentication-cover > * {
  position: relative;
  z-index: 2;
  /* Ensures content appears above the overlay */
}

.page {
  justify-content: normal !important;
  min-height: 100% !important;
}

.table thead tr th {
  font-size: 1rem !important;
  background-color: #f6f6f6;
  color: #212529;
}

.card .card-header .card-title {
  font-size: 1.2rem;
}

.card {
  background: #ffffff !important;
  border: 1px solid #bababa !important;
  border-radius: 8px;
}

.header-background {
  background: #f6f6f6;
  border-bottom: 1px solid #bababa !important;
  border-radius: 8px 8px 0px 0px !important;
}
/* 
.header-border-top {
  border-top: 1px solid #bababa !important;
} */

.text-end-right {
  text-align: right !important;
}

.main-content {
  padding: 30px 0px !important;
  background-color: #f5f9ff !important;
}

a[href^="mailto:"] {
  color: rgb(var(--primary-rgb)) !important;
}

.card-full {
  max-width: 100rem;
  margin: auto auto !important;
}

.tab-content .tab-pane {
  border: 0px !important;
}

.swal2-container .swal2-icon.swal2-warning {
  border-color: #ffffff;
  color: #ffffff;
}

.swal2-popup.swal2-modal.swal2-icon-warning .swal2-html-container {
  color: #ffffff !important;
}

.swal2-popup.swal2-modal.swal2-icon-warning.swal2-show {
  background: #f00606;
  color: #ffffff !important;
}

.swal2-container .swal2-styled.swal2-confirm,
.swal2-container .swal2-styled.swal2-cancel,
.swal2-container .swal2-html-container {
  font-size: 1.1rem !important;
}

.swal2-container .swal2-title {
  font-size: 1.5rem !important;
}

.badge {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.app-header {
  z-index: 99999 !important;
}

.modal {
z-index: 999999999 !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* Ensure backdrop is below modal but not blocking the page */
.modal-backdrop {
  z-index: 9998 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Ensure body is interactive when modal is closed */
body {
  overflow: auto !important;
}

/* Prevent modal from disabling page interaction */
body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* #main-content.blurred {
  filter: blur(5px);
  transition: filter 0.3s ease;
} */

.modal-xl-custom {
  max-width: 1000px;
}

.modal-header {
  background: #3c77ba;
}

.modal-header .modal-title {
  color: #ffffff !important;
}

.modal-content {
  border: 0px !important;
}

/* Optional: improve result hover + layout */
.list-group-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

mark {
  background-color: #ffe69c;
  padding: 0 2px;
}

.list-group-item:hover {
  background: #3c77ba;
  color: #ffffff;
}

.detail-panel-header {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  background: #8e8e8e;
}

.detail-panel-body {
  padding: 1rem;
}

#search-modal-dialog {
  transition: all 0.3s ease;
  margin: auto;
}

/* Default size */
.modal-xl-custom {
  max-width: 1000px;
}

/* Docked to left */
#search-modal-dialog.docked-left {
  max-width: 30vw !important;
  margin-left: 5vw;
  margin-right: auto;
}

/* Slide-out panel stays the same */
.detail-panel {
  position: fixed;
  top: 0px;
  right: -100%;
  width: 60vw;
  max-width: 100%;
  height: 100vh;
  background: #f5f9ff !important;
  background-size: cover;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10500;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.detail-panel.open {
  right: 0;
}

body.noscroll {
  overflow: hidden !important;
}

/* Base styling */
.placeholder-box,
.dashboard-widget {
  background: #ffffff !important;
  border: 1px solid #bababa !important;
  border-radius: 8px;
  min-height: 150px;
  padding: 1rem;
  transition: background-color 0.3s ease, border 0.3s ease;
  position: relative;
}

/* Keep hover style subtle for whole widget */
.dashboard-widget:hover {
  /* background-color: #f1f1f1; */
}

/* Border only shows when drag button is hovered */
.drag-widget-btn:hover ~ .widget-content,
.drag-widget-btn:hover ~ *:not(.remove-widget-btn):not(.drag-widget-btn) {
  border: 2px dotted #bbb;
}

/* Controls: hidden until hover */
.drag-widget-btn,
.remove-widget-btn {
  display: none;
  z-index: 10;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  line-height: 1;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Top left drag handle */
.drag-widget-btn {
  top: 0.25rem;
  left: 0.25rem;
}

/* Top right remove button */
.remove-widget-btn {
  top: 0.25rem;
  right: 0.25rem;
}

/* Show buttons only when widget is hovered */
.dashboard-widget:hover .drag-widget-btn,
.dashboard-widget:hover .remove-widget-btn {
  display: inline-block;
}

/* Optional: pointer cursor for buttons */
.drag-widget-btn:hover,
.remove-widget-btn:hover {
  cursor: pointer;
}

.revisions {
  list-style: none;
  margin: 0px 0px;
  padding: 0px;
}

.table th,
.table td {
  padding: 8px 8px !important;
}

.toast .btn {
  font-size: 0.85rem;
}
.toast .toast-header {
  font-weight: 600;
}

.toast .toast-header {
  background-color: #484848 !important;
  padding: 0.8rem 0.8rem;
  font-size: 1.2rem;
  color: #ffffff !important;
}

.toast .toast-body {
  font-size: 1rem;
}

#toast-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  animation: slideIn 0.4s ease forwards;
  opacity: 0;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bg-secondary-transparent {
  background-color: #f5f9ff !important;
  color: #3d77bb !important;
}
