body {
  font-family: 'Roboto', sans-serif;
}

.btn-primary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #204e85;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #315c8f;
  --bs-btn-active-color: #f9fbfc;
  --bs-btn-active-bg: #98aec7;
  --bs-btn-border-color: #ffffff00;
  --bs-btn-hover-border-color: #ffffff00;
  --bs-btn-active-border-color: #ffffff00;
}

/* LOGIN PAGE STYLING */

.login-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-image: url('images/login_backgroundd.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.logo-container {
  margin-bottom: 20px;
}

.login-header {
  padding-bottom: 5px;
  color: #0e58a4;
  font-size: 40px;
  font-weight: 600;
  text-align: center;
}

.login-form-container {
  width: 100%;
  max-width: 400px;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.form-control {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 12px;
}

.no-link-format {
  text-decoration: none !important;
  color: inherit !important;
  background-color: inherit !important;
}

.no-link-format:hover {
  color: inherit;
  background-color: inherit;
}

.link-bar {
  color: white;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

.btn-login-primary {
  background-color: #204e85;
  color: white;
  border-radius: 8px;
  padding: 12px;
  font-weight: 500;
}

.btn-login-primary:hover {
  background-color: #236bc4;
  color: white;
}

@media (max-height: 768px) {
  .logo-container img {
    max-height: 5rem;
  }

  .login-form-container {
    padding: 0.75rem;
  }

  .login-header {
    font-size: 2rem;
  }

  .link-bar {
    font-size: 0.75rem;
  }

  .login-page {
    padding: 1rem;
  }
}

/* END */

.nav-item {
  margin: 4px 10px !important;
}

.icon-holder {
  padding-right: 15px;
}

.sidebar-link-active {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  display: block;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.sidebar-link.account {
  padding: 15px 30px;
  transition: background-color 0.3s ease;
  border-radius: 6px;
}

.sidebar-link.account:active {
  background-color: rgba(255, 255, 255, 1);
}


.bgc-blue-grey {
  background-color: #dde4eb;
}

.bgc-gradient-blue {
  background: linear-gradient(to bottom, #204e85, #3d94fd);
}

.tile-container-styling {
  border-radius: 8px !important;
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.2),
    0 0px 12px rgba(0, 0, 0, 0.1) !important;
  padding: 2rem;
}

@media (max-width: 1439px) {
  .tile-container-styling {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 991px) {
  .tile-container-styling {
    padding: 1rem 0.5rem;
  }
}

.searchbar {
  width: 400px;
  height: 32px;
  padding-left: 7px;
  border: 1px solid #ddd;
  border-radius: 6px;  
}

.searchbar-wrapper {
  margin-right: 10px;
}

table.page-number-table {
  border: none;
  border-collapse: separate;
}

table.page-number-table td {
  background-color: lightgrey;
}

/* Optional: round corners only on first and last cells */
table.page-number-table thead tr:first-child th:first-child {
  border-top-left-radius: 6px;
}

table.page-number-table thead tr:first-child th:last-child {
  border-top-right-radius: 6px;
}

table.page-number-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
}

table.page-number-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}

table.page-number-table tr {
  background-color: transparent;
}

table.page-number-table th {
  background-color: #204e85;
  color: #ffffff;
  padding: 4px 5px;
}

@media (max-width: 768px) {
  .page-number-table {
    width: 100%;
  }
  .searchbar {
    width: 100%;
  }
}

@media (max-width: 603px) {
  .searchbar-wrapper {
    margin-right: 0px;
  }
}

table.page-number-table a {
  position: relative;       /* so the pseudo-element is positioned relative to this */
  display: inline-block;    /* so it has a box for absolute positioning to work */
  color: #72777a;
}

table.page-number-table a:hover {
  background-color: transparent;
  color: #204e85;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  padding-left: 6px;
  padding-right: 6px;
}

table.page-number-table a::before {
  content: '';
  position: absolute;
  top: -10px; bottom: -10px;
  left: -10px; right: -10px;
}

/* DataTable Styling */
.dataTables_wrapper .dataTables_scroll {
  overflow-x: auto;
}

.dataTables_scrollHeadInner {
  width: 100% !important;
}

.dataTables_scrollBody {
  overflow-x: auto;
}

table.dataTable {
  width: auto;
  min-width: 100%;
}

.fc-more-link {
  color: #000000 !important;
  font-weight: bold;
  text-decoration: underline;
}

/* DataTable Wrapper Styling */
table.dataTable {
  border-collapse: collapse;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.8rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 0px !important;
}

/* Change color of the "Show X entries" label */
.dataTables_length label {
  color: #72777a;
  font-weight: bold;
}

/* Change color of the "Search" label */
.dataTables_filter label {
  color: #72777a;
  font-weight: bold;
}


@media (max-width: 768px) {
  table.dataTable {
    border: 0.5px solid #ced4da;
    /* Slightly thinner, helps rendering */
    transform: scale(1.001);
    /* Forces re-render for better pixel snapping */
  }
}

/* Header */
table.dataTable thead {
  background-color: #495057;
  color: #686868;
}

table.dataTable thead th {
  padding: 12px 16px;
  border-bottom: 1px solid #ced4da;
  text-align: left;
  background-color: #eceff1;
}

/* Rows */
table.dataTable tbody tr {
  background-color: #fff;
  border-bottom: 1px solid #f1f1f1;
  transition: background-color 0.2s ease;
}

/* Cells */
table.dataTable tbody td {
  padding: 6px 16px;
  color: #343a40;
}

.clickable-row:hover td {
  background-color: rgb(206, 223, 255);
  cursor: pointer;
}

.clickable-row-nopointer:hover td {
  background-color: rgb(228, 238, 255);
}

/* Pagination and Search */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ced4da;
  background-color: #fff;
  margin-left: 8px;
}

/* Pagination Buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 6px 12px;
  margin: 0 2px;
  color: #495057;
  transition: background-color 0.2s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #dee2e6;
  color: #212529;
}

/* Current Page Highlight */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #204e85;
  color: #fff !important;
  border-color: #204e85;
}

/* Info Text */
.dataTables_wrapper .dataTables_info {
  padding-top: 10px;
  color: #6c757d;
}

/* Give space between search and other elements*/
.dataTables_wrapper .dataTables_filter input {
  margin-bottom: 14px;
  width: 250px;
  /* or any desired width */
}

/* Remove inner vertical borders */
table.dataTable td {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}

/* Keep only horizontal row borders */
table.dataTable tbody tr {
  border-bottom: 1px solid #f1f1f1;
}

/* Calendar Colours */

.cd-winning-green {
  color: #008800;
}

.cd-pastel-green {
  color: #66bb6a;
}

.cd-pastel-lightgreen {
  color: #8ed788;
}

.cd-brave-blue {
  color: #2b3a67;
}

.cd-blue {
  color: #204e85;
}

.cd-chatte-blue {
  color: #0c54c0;
}

.cd-arrow-blue {
  color: #2196f3;
}

.cd-pastel-blue {
  color: #a6bcf3;
}

.cd-iconic-orange {
  color: #ff9b21;
}

.cd-iconic-yellow {
  color: #efc148;
}

.cd-iconic-gray {
  color: #515565;
}

.cd-iconic-lime {
  color: #c6d48e
}

.cd-iconic-blue {
  color: #8dcffd;
}

.cd-iconic-red {
  color: #ff6d6d;
}

.container-fluid {
  padding-left: 0px;
  padding-right: 0px;
}

.map-container {
  position: relative;
  padding-bottom: 75%;
  /* 4:3 aspect ratio */
  height: 0;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .contact-row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .contact-row .col-md-6 {
    padding-left: 0px;
    padding-right: 0px;
  }
}

.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal-content {
  background-color: #fff;
  position: relative;
  margin: 15% auto;
  padding: 50px 20px 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
}

.close-button:hover {
  color: red;
}

/* Success / Error Color Variants */
.custom-modal-content.success {
  border-left: 6px solid #28a745;
  background-color: #e6f4ea;
}

.custom-modal-content.error {
  border-left: 6px solid #dc3545;
  background-color: #fceaea;
}

/* Index mobile container adjustments to adapt to the overflow issue which hasn't truly been fixed yet */

@media (max-width: 768px) {
  .overflow-fix {

    margin-left: 0px !important;
    margin-right: 0px !important;
  }

  .overflow-fix-2 {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}

.btn-backup {
  background-color: #eceff1;
}

.btn-backup:hover {
  background-color: #a2b1c9;
}


/* Styling for the allowlist/blocklist add to list form */
.addtolist-form-wrapper {
  width: 100%;
  padding: 0.5em 0;
}
.addtolist-form-container {
  background-color:#dde4eb; 
  display: inline-block; 
  border-radius: 5px; 
  min-width:320px; 
  justify-content: center;
}
.addtolist-form-heading {
  font-weight: bold;
  font-size: 1.2em;
  text-align: left;
}
.addtolist-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1em;
  margin-bottom: 0.5em;
  margin-left: 0px;
}
.addtolist-form-field {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0; /* important for flex child shrink */
}
.addtolist-form-field-inline {
  display: flex;
  align-items: center;
  gap: 0.3em;
  flex-wrap: wrap; /* allow wrapping on small */
  min-width: 0;
}
.addtolist-form-field-inline input[type="text"],
.addtolist-form-field-inline select {
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2px 6px;
  font-size: 0.9em;
}
.addtolist-form-field label {
  font-weight: bold;
  margin-bottom: 0.2em;
  font-size: 0.9em;
}
.addtolist-form-actions {
  display: flex;
  gap: 0.5em;
  align-items: center;
}
.addtolist-form-wrapper input[type="text"], select {
  padding: 2px 6px;
  font-size: 0.9em;
  border-radius: 4px;
  border: 1px solid lightgray;
}
.addtolist-form-wrapper button {
  font-size: 0.9em;
  padding: 3px 10px;
}
@media (max-width: 600px) {
  .addtolist-form-row {
      flex-direction: column;
      align-items: stretch;
  }
  .addtolist-form-field {
      width: 100%;
  }
  /* Inputs inside .addtolist-form-field-inline become full width on mobile */
  .addtolist-form-field-inline input[type="text"],
  .addtolist-form-field-inline select {
      flex-basis: 100%;
      max-width: 100%;
  }
}

.addtolist-form-wrapper .btn-secondary {
  background-color: gray;
  border: 1px solid gray;
  transition: all 0.3s ease;
}

.addtolist-form-wrapper .btn-secondary:hover {
  background-color: rgb(145, 145, 145);
}

#listTable .clickable-row:hover td {
  background-color: rgb(206, 223, 255);
  cursor: pointer;
}

#listTable tbody tr:hover td {
  background-color: rgb(206, 223, 255);
}

table.colorised-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #444444;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-radius: 8px; 
  overflow: hidden; /* <-- add this */
}

td, th {
  border: none; /* No borders on cells */
}

table.colorised-table thead {
  background-color: #f9fafb;
}

table.colorised-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: #444444;
  white-space: nowrap;
  background-color: #eceff1;
  border-bottom: 2px solid #e5e7eb;
}

table.colorised-table tbody tr:nth-child(odd) {
  background-color:#f8f8f8;
}

table.colorised-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

table.colorised-table tbody tr:hover {
  background-color:rgb(199, 223, 255);
}

table.colorised-table tbody td {
  padding: 8px 16px;
  vertical-align: middle;
  font-size: 0.8rem;
  white-space: nowrap;
}

table.colorised-table tbody td:first-child {
  font-weight: 500;
}

table.colorised-table tbody tr:last-child {
  border-bottom: none;
}

@media (max-width: 1200px) {
  table.colorised-table tbody td {
    padding: 6px 2px;
  }
  table.colorised-table thead th {
    padding: 6px 2px;
  }
  
}