:root {
  --blue: #033f7f;
  --dark-blue: #002f61;
  --bs-border-radius: 0.3rem; /* this actually works! */
  /* Bootstrap 5.3 color variables not working (yet?)
  --bs-blue: #033f7f;
  --bs-primary: #007bff;
  --bs-indigo: #6610f2;
  --bs-red: #dc3545;
   */
}


#error_explanation{
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  border-radius: 0.25rem;
  color: #842029;
  padding: 1rem;
  margin: 1rem 0rem;
}

html {
  font-size: 90%;
}

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

/* Light mode styles */
[data-bs-theme="light"] body {
  background: aliceblue;
}

[data-bs-theme="light"] table {
  background: white;
}

[data-bs-theme="light"] .border-primary {
  border-color: var(--blue) !important;
}

[data-bs-theme="light"] .btn-primary.btn:hover {
  background-color: var(--dark-blue);
}

[data-bs-theme="light"] .dropdown-item.active,
[data-bs-theme="light"] .text-bg-primary,
[data-bs-theme="light"] .bg-primary {
  background-color: var(--blue);
}

[data-bs-theme="light"] .btn-primary,
[data-bs-theme="light"] .nav-pills .nav-link.active {
  background-color: var(--blue);
  border-color: var(--blue);
}

[data-bs-theme="light"] .btn-outline-primary.btn:hover {
  background-color: var(--blue);
  color: white;
}

[data-bs-theme="light"] a.btn-primary {
  color: white;
}

[data-bs-theme="light"] a,
[data-bs-theme="light"] .nav-link,
[data-bs-theme="light"] .btn-outline-primary {
  color: var(--blue);
}

[data-bs-theme="light"] a.dropdown-item{
  color: unset;
}

[data-bs-theme="light"] .btn-outline-primary {
  border-color: var(--blue);
  color: var(--blue);
}

[data-bs-theme="light"] .accordion-button:not(.collapsed) {
  --bs-accordion-active-bg: #dae3eb;
}
[data-bs-theme="light"] .accordion-continent {
  --bs-accordion-active-bg: papayawhip;
}
[data-bs-theme="light"] .trix-button-group {
  background-color: white;
}

/* Dark mode styles */
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-white {
  background-color: #121212 !important;
}

/* Override select2 background color so it works with Bootstrap Dark */
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: unset !important;
}

[data-bs-theme="dark"] .trix-button-group {
  background-color: #ddd;
}

button .show-when-enabled { display: initial; }
button .show-when-disabled { display: none; }

button[disabled] .show-when-enabled { display: none; }
button[disabled] .show-when-disabled { display: initial; }

table {
  font-size: 0.95em;
}

#app-logo {
    width: 350px;
    display: block;
    margin: 20px auto;
}

.navbar-dark .navbar-nav .nav-link {
  color: #ccc;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: white;
}

.navbar-dark .navbar-nav .nav-link.active {
  color: white;
}

.form-group, .field, .actions {
  /* This was removed from bs5 */
  margin-bottom: 1rem;
}

#results-section tr td:nth-child(2) {
  background-color: #007bff10;
}

#results-section th,
#results-section td {
  width: 10vw;
}

.youwind-card-1 {
  max-width: 500px;
}

.youwind-card-2 {
  max-width: 600px;
}

.youwind-width-700 {
  max-width: 700px;
}

.sidebar-sticky {
  top: 60px; /* Make up for the navbar height, because it is sticky */
  height: calc(100vh - 60px);
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
  }
}

@media print {
  #results-section{
    max-width: 100% !important;
    flex: auto;
  }
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
  color: unset !important;
}
.select2-dropdown,
.select2-results__options {
  background-color: var(--bs-body-bg) !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
  color: black !important;
}

.icon-circle-neighboring-turbine {
  border: 2px solid #666;
  border-radius: 50%;
  background: #cccccc50;
}

.icon-circle-turbine {
  border: 2px solid #222;
  border-radius: 50%;
  background: #cccccc50;
}

.icon-turbine {
  background-image: url("/assets/windmill-d0b82050.svg");
  background-position: center;
  background-size: 80%;
  background-repeat: no-repeat;
}

.icon-array-cable {
  background-image: url("/assets/ArrayCable-14f48c94.svg");
}

.icon-transformer-station {
  background-image: url("/assets/TransformerStation-927f5f6f.svg");
}

.icon-export-cable {
  background-image: url("/assets/ExportCable-3fb4a605.svg");
}

.icon-offshore-substation {
  background-image: url("/assets/OffshorePlatform3-8e2d432a.svg");
}

.icon-landing-point {
  background-image: url("/assets/landing_point-d98ddc90.svg");
  background-size: 75%;
}

.icon-buffer {
  background-image: url("/assets/buffer-7096437d.svg");
  background-size: 55%;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-vertex-edit {
  background-image: url("VertexEdit.svg");
}

.mapboxgl-ctrl-icon {
  background-position: center;
  background-repeat: no-repeat;
}

.mapboxgl-ctrl-group {
  color-scheme: only light;
  color: black;
}

.mapbox-custom-popup {
  position: absolute;
  background: white;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  min-width: 250px;
  max-width: 350px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.save-btn-container {
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
.save-btn-container > button:first-child {
  border-top-left-radius: 1px;
  border-bottom-left-radius: 1px;
}

.save-btn-container > button:last-child {
  border-top-right-radius: 1px;
  border-bottom-right-radius: 1px;
}

.draw-mode-active button {
  background-color: #CBDCEB !important;
  color: #000000 !important;
  border: 0px !important;
  border-radius: 0px !important;
}

.draw-action-btn {
  width: fit-content !important;
}

.draw-mode-active .draw-toggle-btn.active {
  background-color: #133E87 !important;
  color: #F3F3E0 !important;
}

.draw-mode-active .draw-toggle-btn.active:hover {
  background-color: #466294 !important;
}

.draw-mode-active .draw-action-btn.active {
  background-color: #608BC1 !important;
  color: #F3F3E0 !important;
}

.draw-mode-active .draw-action-btn:hover {
  cursor: default;
}

.draw-mode-active .draw-action-btn.active:hover {
  cursor: pointer;
  background-color: #85a0c2 !important;
}

.onshore_offshore_txt_loc {
  background-color: transparent;
  font-style: italic;
  border: 0;
  box-shadow: none;
}

.sidebarContent {
  display: none;
}

.draggable {
  cursor: grab;
}

/* Add the arrow-triangle icon to the select2 multi-select. By default it is only on the single-select */
.select2-container--default .select2-selection--multiple {
  padding-right: 20px;
  position: relative;
}

.select2-container--default .select2-selection--multiple:after {
  content: "\25BC"; /* Unicode character for down arrow */
  position: absolute;
  right: 10px; /* Adjust this value if needed */
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #999; /* Change this to the desired color */
}

.js-user:hover {
  cursor: pointer;
  background-color: #eef4ff !important;
}
.selected-user{
  background-color: #eef4ff !important;
  border: 1px solid #007ba7 !important;
}
.bg-westwood {
  background: #211E34;
}

.attachment__name {
  display: none;
}
.attachment__size {
  display: none;
}

.header-button-group {
  margin-right: 20px; /* Adjust the margin as needed */
}

.header-button-group:last-child {
  margin-right: 0; /* Remove margin from the last item */
}
