/* Define the variable */
:root {
  --skz-blue: rgb(58, 169, 227);
  --skz-green: #7fbf38;
}

/*
  background-color: var(--skz-blue);
  background-color: var(--skz-green);
*/

/*
  font-family: "Roboto", "sans-serif";
*/

html,
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
  font-size: 14px !important;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
}

table,
button {
  font-size: 14px !important;
}

#map {
  z-index: 100;
  background-color: white;
  width: 100%;
  height: calc(100% - 85px);
}

.leaflet-container {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

#session {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 5000;
  background-color: #fff;
  padding: 5px;
  border: 1px solid #999;
  text-align: left;
  line-height: 30px;
  padding-left: 10px;
}

/* LeftSidebar Styles */
.LeftSidebarORIG {
  margin: 10px auto;
  padding: 10px 20px;
  background: transparent;
  /*  border-radius: 8px; */
  max-height: calc(100vh - 85px - 22px);
  width: 500px;
  position: fixed;
  top: 75px;
  left: -500px; /* Hidden by default */
  color: black;
  overflow-y: auto; /* Enable vertical scrolling if needed */
  /*   transition: 0.5s; */
  z-index: 666; /* Ensure it is above other content */
  box-sizing: border-box;
}

.LeftSidebar {
  position: fixed;
  top: 85px; /* Adjust this to match your navbar height */
  left: -500px; /* Set to 0 to show the sidebar */
  width: 500px;

  height: calc(100vh - 85px); /* Full height minus navbar */
  overflow-y: auto;

  background: white;
  color: black;
  padding: 10px 20px;
  margin: 0; /* No auto margin, since it's fixed */

  box-sizing: border-box;
  z-index: 1002;
  /* Optional extras */
  /* border-radius: 8px; */
  /* transition: 0.5s; */
}

@media (max-width: 768px) {
  .LeftSidebar {
    width: 100vw;
    left: -500px;
  }
}

.LeftSidebar-content {
  display: none; /* Hide all content by default */
}

.LeftSidebar h2,
.LeftSidebar p {
  padding: 0 15px;
}

.LeftSidebar h5 {
  font-size: 15px;
  font-weight: bold;
  /* margin-top: 10px; */
}

.LeftSidebar-icons {
  position: fixed;
  top: 100px; /* Adjust this value to position the icon below the header */
  left: 0;
  padding-left: 10px;
  z-index: 666; /* Ensure it is above the LeftSidebar */
  /*   transition: 0.5s; */ /* Sync with LeftSidebar transition */
}

.LeftSidebar-icons ol {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.LeftSidebar-icon {
  width: 40px; /* Adjust the size as needed */
  height: 40px;
  background-color: white;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  margin-bottom: 10px; /* Space between icons */
  font-size: 20px; /* Adjust icon size */
  transition: background-color 0.3s;
}

.LeftSidebar-icon:hover {
  background-color: #ddd; /* Optional: change background color on hover */
}

.content {
  padding: 20px;
  margin-left: 50px; /* Space to avoid initial overlapping with the icon */
}

.show-LeftSidebar {
  left: 0px !important;
}

.show-content {
  display: block;
}

.hide-icons {
  left: 500px; /* Move icons to the right with the LeftSidebar */
}

/* RightSidebar Styles */
.RightSidebar {
  height: calc(100vh - 85px);
  width: 320px;
  position: fixed;
  top: 85px;
  right: -320px; /* Hidden by default */
  background-color: white;
  color: black;
  overflow-y: auto; /* Enable vertical scrolling if needed */
  /* transition: 0.5s; */
  z-index: 666; /* Ensure it is above other content */
  padding: 10px 10px;
  box-sizing: border-box;
  font-size: 13px;
}

.RightSidebar label {
  text-transform: uppercase;
}

.RightSidebar-content {
  display: none; /* Hide all content by default */
}

.RightSidebar h2,
.RightSidebar p {
  padding: 0 15px;
}

.RightSidebar-icons {
  position: fixed;
  top: 100px;
  right: 0;
  z-index: 666;
}
/*
.RightSidebar-icons ol {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
  

.RightSidebar-icon {
  width: 40px;
  height: 50px;
  background-color: #3aa9e3;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 30%;
  border-bottom-left-radius: 30%;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  cursor: pointer;
  margin-bottom: 10px; 
  font-size: 20px; 
  transition: background-color 0.3s;
}

.RightSidebar-icon.active {
  background-color: white; 
  color: black; 
}

.RightSidebar-icon:hover {
  background-color: #ddd; 
} */

.content {
  padding: 20px;
  margin-right: 50px; /* Space to avoid initial overlapping with the icon */
}

.show-RightSidebar {
  right: 0;
}

.show-content {
  display: block;
}

.hide-right-icons {
  right: 320px; /* Move icons to the right with the RightSidebar */
}

/* Base Layer Styles */
.base-layer-toggle {
  display: block;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  border: 1px solid #ccc;
  margin: 5px;
  border-radius: 5px;
}

.base-layer-toggle[data-selected="true"] {
  border: 1px solid var(--skz-green);
}

.base-layer-image {
  width: auto;
}

.base-layer-label {
  display: block;
  margin-top: 5px;
  text-transform: uppercase;
}

/* GEOMAN */
#custom-controlsV1 {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: white;
  padding: 10px;
  display: flex; /* For horizontal alignment */
  justify-content: center; /* Center the buttons horizontally */
  align-items: center; /* Center the buttons vertically */
  box-sizing: border-box; /* Include padding in height calculation */
}

#custom-controlsV1 button {
  display: inline-block;
  padding: 5px;
  margin: 0 5px; /* Horizontal spacing between buttons */
  border: none;
  background: #3aa9e3;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  box-sizing: border-box; /* Include padding in width calculation */
}

#custom-controls {
  width: 100%;
  display: block;
  position: absolute;
  top: 0px;
  z-index: 1000;
  background: white;
  /*  padding: 10px; */
}

#custom-controls button {
  display: block;
  width: 100%;
  padding: 5px;
  margin: 0 5px; /* Horizontal spacing between buttons */
  border: none;
  background: #3aa9e3;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Info Container */
.info-container {
  position: fixed;
  top: 90px;
  right: 10px;
  max-width: 300px;
  z-index: 6000;
}

.info-message {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 5px;
  color: #fff;
  animation: fadeOut 10s forwards;
}

.info-message i {
  padding: 10px;
}

.info_bg {
  background-color: #007bff;
}

.success_bg {
  background-color: #28a745;
}

.warning_bg {
  background-color: #ffc107;
}

.error_bg {
  background-color: #dc3545;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* TABLE */
.tdTable {
  border-collapse: collapse;
  border-left: 1px solid #eeeeee;
  border-right: 1px solid #eeeeee;
  border-top: solid 1px #eeeeee;
  font-size: 12px;
  padding: 2px;
  width: 100%;
}
.tdSadrzaj {
  padding: 3px;
  color: #000000;
  border-left: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  vertical-align: middle;
  width: 230px;
  /*word-wrap: normal;
  word-break: break-all;*/
}

.tdNaslov {
  padding: 3px;
  color: #939393;
  width: 120px;
  border-bottom: 1px solid #eeeeee;
  vertical-align: middle;
}

.button-container {
  margin-top: 20px;
  width: 100%;
  display: flex;
}
.button-container button {
  width: 50%;
  margin: 5px;
}

/* Loading Control */
.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: none;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Validation */
label.error {
  color: red;
  font-size: 10px;
  margin-top: 5px;
}

/*SEARCH*/
.search-results {
  display: none;
  position: absolute;
  background-color: white;
  max-height: 200px;
  overflow-y: auto;
  width: 600px;
  left: calc(50% - 300px);
  z-index: 1001;
}

.search-result-item {
  padding: 8px;
  cursor: pointer;
}

.search-result-item:hover {
  background-color: #f0f0f0;
}

#LeftSidebar .form-group {
  margin-bottom: 0;
}

#LeftSidebar input[type="text"],
#LeftSidebar input[type="password"],
#LeftSidebar input[type="date"],
#LeftSidebar input[type="datetime"],
#LeftSidebar input[type="email"],
#LeftSidebar input[type="number"],
#LeftSidebar input[type="search"],
#LeftSidebar input[type="tel"],
#LeftSidebar input[type="time"],
#LeftSidebar input[type="url"],
#LeftSidebar textarea,
#LeftSidebar select {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 14px;
  height: auto;
  margin: 0;
  outline: 0;
  padding: 3px;
  width: 100%;
  background-color: #e8eeef;
  color: black;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset;
  margin-bottom: 5px;
}

#LeftSidebar input[type="radio"],
#LeftSidebar input[type="checkbox"] {
  margin: 0 4px 8px 0;
}

#LeftSidebar select {
  padding: 6px;
  height: 32px;
  border-radius: 2px;
}

#LeftSidebar fieldset {
  margin-bottom: 30px;
  border: none;
}

#LeftSidebar legend {
  font-size: 1.4em;
  margin-bottom: 10px;
}

#LeftSidebar label {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

h5.card-title {
  margin-bottom: 0px;
}

#LeftSidebar label.light {
  font-weight: 300;
  display: inline;
}

#LeftSidebar .number {
  background-color: #5fcf80;
  color: #fff;
  height: 30px;
  width: 30px;
  display: inline-block;
  font-size: 0.8em;
  margin-right: 4px;
  line-height: 30px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 100%;
}

@media screen and (min-width: 480px) {
  #LeftSidebar form {
    max-width: 480px;
  }
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--skz-blue);
  --bs-btn-border-color: var(--skz-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--skz-blue);
  --bs-btn-hover-border-color: var(--skz-blue);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--skz-blue);
  --bs-btn-active-border-color: var(--skz-blue);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--skz-blue);
  --bs-btn-disabled-border-color: var(--skz-blue);
}

/* LEGEN */
.legend-container {
  display: block;
}
.legend-container img {
  display: block;
  margin-bottom: 5px;
}

/* TOGGLE */
.layer-control {
  display: flex;
  align-items: center;
  margin-bottom: 10px; /* Optional: space between controls */
}

.toggle-switch {
  position: relative;
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center align items vertically */
  cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-switch-background {
  position: relative;
  width: 40px; /* Adjusted width */
  height: 20px; /* Adjusted height */
  background-color: #ddd;
  border-radius: 10px; /* Adjusted for smaller size */
  box-shadow: inset 0 0 0 1px #ccc; /* Adjusted for smaller size */
  transition: background-color 0.3s ease-in-out;
  margin-right: 10px; /* Space between switch and label */
}

.toggle-switch-handle {
  position: absolute;
  top: 2.5px; /* Adjusted for smaller size */
  left: 2.5px; /* Adjusted for smaller size */
  width: 15px; /* Adjusted width */
  height: 15px; /* Adjusted height */
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.2); /* Adjusted for smaller size */
  transition: transform 0.3s ease-in-out;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-background .toggle-switch-handle {
  transform: translateX(20px); /* Adjusted for smaller size */
  box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.2), 0 0 0 1.5px var(--skz-green); /* Adjusted for smaller size */
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-background {
  background-color: var(--skz-green);
  box-shadow: inset 0 0 0 1px var(--skz-green); /* Adjusted for smaller size */
}

/* TEST */
ul {
  list-style: none;
}

.example-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 70px;
}
.example-2 .icon-content {
  margin: 0;
  position: relative;
  padding: 0.5rem;
}
.example-2 .icon-content .tooltip {
  position: absolute;
  top: 100%;
  right: 110%;
  transform: translateY(200%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}
.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}
.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}
.example-2 .icon-content a:hover {
  color: white;
}
.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover .filled {
  height: 100%;
}

.example-2 .icon-content a[data-social="blue"] .filled,
.example-2 .icon-content a[data-social="blue"] ~ .tooltip {
  background-color: var(--skz-blue);
}

.example-2 .icon-content a[data-social="black"] .filled,
.example-2 .icon-content a[data-social="black"] ~ .tooltip {
  background-color: #24262a;
}
.example-2 .icon-content a[data-social="red"] .filled,
.example-2 .icon-content a[data-social="red"] ~ .tooltip {
  background-color: #ff0000;
}

.lokacije_p-header {
  background-color: rgba(58, 169, 227, 0.2) !important;
}

.lucke_koncesije_p-header {
  background-color: rgba(251, 204, 204, 0.5) !important;
}

.lokacije_t-header {
  background-color: rgba(58, 169, 227, 0.2) !important;
}

@media screen {
  #numeric-scale {
    z-index: 655;
    background-color: rgba(255, 255, 255, 0.7);
    padding-right: 10px;
    padding-left: 10px;
    color: #000;
    font-size: 12px;
    line-height: 12px;
    position: absolute;
    bottom: 30px;
    left: 7px;
    height: auto;
    width: auto;
    transition: all ease-out 0.3s;
  }
  #numeric-scale-input,
  #wgs-cord-n-input,
  #wgs-cord-e-input,
  #htrs-cord-e-input,
  #htrs-cord-n-input {
    border: 0 solid;
    background-color: transparent;
    -moz-appearance: textfield;
    width: 75px;
  }
}

/* MODAL */
.modal-dialog.custom-width {
  max-width: 100vw !important;
  width: 100vw !important;
  margin: 0 !important;
  max-height: 100vh !important;
  height: 100vh !important;
}

.modal-body {
  max-height: calc(100vh - 120px);
  overflow-y: auto; /* Enable vertical scrolling */
  overflow-x: auto; /* Prevent horizontal scrolling */
}
#pdfContent {
  max-height: calc(100vh - 333px);
  overflow-y: auto; /* Enable vertical scrolling */
}

#map:focus-visible {
  outline: -webkit-focus-ring-color auto 0px !important;
  outline-color: transparent !important;
  outline-style: none !important;
  outline-width: 0px !important;
}

a#ember7:focus,
a#ember7:active {
  outline: none;
}

/* Styling for sub-toggle button */
.toggle-substyles-btn {
  background: none;
  border: none;
  font-size: 10px;
  cursor: pointer;
  margin-left: 10px;
  color: #666;
  transition: all 0.3s;
}

/* Hover effect for the toggle button */
.toggle-substyles-btn:hover {
  color: #333;
}

/* Sub-toggles are hidden by default */
.substyle-toggles {
  display: none;
  /*   margin-top: -10px; */
  padding-left: 13px;
  cursor: pointer;
}

.substyle-toggles label {
  font-size: 13px;
  color: #000;
  cursor: pointer;
  padding-left: 17px;
  margin-bottom: 10px;
}

.substyle-toggles .form-check-input:checked {
  background-color: var(--skz-green);
  border-color: var(--skz-green);
}

.substyle-toggles .form-check-input:focus {
  box-shadow: none;
}

/* .substyle-toggles label:hover {
  color: #000;
} */

.sidebar-close-btn {
  display: block;
  position: fixed; /* Changed from absolute to fixed */
  top: 50%;
  left: 500px; /* Position it at the edge of the open sidebar */
  transform: translateY(-50%);
  width: 30px;
  height: 60px;
  background-color: white;
  color: black;
  border: none;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  font-size: 20px;
  line-height: 60px;
  text-align: center;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease;
  opacity: 0; /* Hidden by default */
  pointer-events: none;
}

/* Show the button when sidebar is open */
.show-LeftSidebar .sidebar-close-btn {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .sidebar-close-btn {
    top: 10px;
    left: auto;
    right: 10px;
    transform: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    line-height: 30px;
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-close-btn:hover {
    left: auto;
    right: 10px;
  }

  .LeftSidebar,
  .RightSidebar {
    padding-top: 40px;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

.leaflet-grab {
  cursor: default !important;
}

.leaflet-dragging .leaflet-grab {
  cursor: grabbing !important;
}


a.document_link {
  color: var(--skz-blue);
  text-decoration: underline;
  cursor: pointer;
}


/* 3. ADD CSS for the close button (add to your style.css)*/
.feature-card {
    position: relative;
}

.feature-card .btn-close {
    font-size: 0.8rem;
    padding: 0;
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

.feature-card .btn-close:hover {
    opacity: 1;
}

.feature-card .card-header {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
}



/**
 * MapMeasurement CSS Styles
**/

.measurement-controls {
  padding: 10px 0;
}

.measurement-controls .btn-block {
  width: 100%;
  text-align: left;
}

.measurement-controls .btn i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* Measurement results section */
.measurement-results {
  margin-top: 20px;
}

.measurement-results h5 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

#measurements-list {
  max-height: 300px;
  overflow-y: auto;
}

#measurements-list .list-group-item {
  padding: 10px;
  font-size: 13px;
  border: 1px solid #ddd;
  margin-bottom: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#measurements-list .list-group-item:hover {
  background-color: #f5f5f5;
  border-color: #aaa;
}

#measurements-list .list-group-item.measurement-selected {
  background-color: #e3f2fd;
  border: 2px solid #2196f3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

#measurements-list .measurement-info {
  user-select: none;
}

#measurements-list .btn-danger {
  padding: 2px 8px;
  font-size: 12px;
  transition: all 0.2s ease;
}

#measurements-list .btn-danger:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
}

/* Measurement labels on map */
.measurement-label {
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid #333;
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* Current measurement info alert */
#current-measurement-info {
  font-size: 12px;
  padding: 10px;
  margin-bottom: 0;
}

#measurement-instructions {
  margin-bottom: 10px;
  line-height: 1.6;
}

#finish-measurement-btn,
#cancel-measurement-btn {
  font-size: 13px;
  font-weight: bold;
}

#finish-measurement-btn {
  background-color: #28a745;
  border-color: #28a745;
}

#finish-measurement-btn:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

/* Active button state */
.measurement-controls .btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.measurement-controls .btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .measurement-results {
    margin-top: 15px;
  }

  #measurements-list {
    max-height: 200px;
  }
}

/* Leaflet measurement layer styles */
.leaflet-interactive.measurement-line {
  cursor: pointer;
}

.leaflet-interactive.measurement-polygon {
  cursor: pointer;
}

/* Measurement layers when being edited */
.leaflet-interactive:hover {
  filter: brightness(1.1);
}

/* Edit mode vertex markers */
.leaflet-pm-edit-marker {
  cursor: move !important;
  border: 3px solid white !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8) !important;
}

.leaflet-pm-edit-marker:hover {
  transform: scale(1.2);
}

/* Ensure measurement tooltips are above other elements */
.leaflet-tooltip.measurement-label {
  z-index: 1000;
}

/* Make Geoman markers more visible during measurement */
.leaflet-pm-draggable {
  cursor: crosshair !important;
}

/* Highlight the first vertex marker */
.leaflet-marker-icon.marker-icon-start {
  filter: drop-shadow(0 0 8px rgba(255, 255, 0, 0.8));
}

/* Style for vertex markers during drawing */
.leaflet-pm-layers-container .leaflet-marker-icon {
  border: 3px solid white !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Hint line - make it more visible */
.leaflet-pm-hintline {
  pointer-events: none;
  stroke-dasharray: 8, 8;
  animation: dash 1s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -16;
  }
}






/* COORDINATES MODAL SPECIFIC STYLES */
/* ============================================
   MODERN GEOPORTAL-STYLE COORDINATES & SCALE
   Inspired by geoportal.dgu.hr
   ============================================ */

/* Bottom Right Container */
.coordinates-container {
  position: absolute;
  left: 5px;
  bottom: 25px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}

@media (max-width: 767px) {
  .coordinates-container {
    display: none;
  }
}

/* Scale Selection Widget */
.scale-selection-widget {
  height: 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  line-height: 16px;
  backdrop-filter: blur(4px);
  min-width: 100px;
}

/* .scale-selection-widget:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
} */

.scale-selection-widget:active {
  transform: translateY(0);
}

/* Mouse Position Widget */
.mouse-position-widget {
  height: 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  line-height: 16px;
  backdrop-filter: blur(4px);
}

/* .mouse-position-widget:hover {
  background-color: rgba(0, 0, 0, 0.6);
} */

/* Small Icon Button (Crosshairs) */
.mouse-position-widget .small-icon-btn {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  margin-right: 8px;
  color: #fff;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* .mouse-position-widget .small-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
} */

.mouse-position-widget .small-icon-btn:active {
  transform: scale(0.95);
}

/* Projection Label */
.mouse-position-widget .proj-label {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: all 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
}

/* .mouse-position-widget .proj-label:hover {
  background-color: rgba(255, 255, 255, 0.1);
} */

/* Spacer */
.mouse-position-widget .spacer {
  display: inline-block;
  width: 12px;
}

/* Coordinate Value Container */
.mouse-position-widget .coord-value {
  min-width: 148px;
  font-size: 12px;
  letter-spacing: 0.3px;
}

@media (max-width: 1023px) {
  .mouse-position-widget .coord-value {
    min-width: 128px;
  }
}

@media (max-width: 767px) {
  .mouse-position-widget .coord-value {
    min-width: 114px;
    font-size: 11px;
  }
}

/* Out of Bounds Styling */
.mouse-position-widget .out-of-bounds {
  color: #ff4d4f;
  font-weight: 500;
}

/* Coordinate Labels (E:, N:) */
.mouse-position-widget .coord-label {
  color: #fff;
  margin-right: 4px;
  font-weight: 500;
}

/* Individual Coordinate Spans */
.mouse-position-widget .coord-value span {
  margin-right: 2px;
}

.mouse-position-widget .coord-value span:last-child {
  margin-right: 0;
}

/* Animation for value changes */
@keyframes coordFlash {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.coord-value.updating {
  animation: coordFlash 0.3s ease;
}

/* Dropdown Trigger Styling */
.ant-dropdown-trigger {
  cursor: pointer;
  transition: all 0.2s ease;
}

/* .ant-dropdown-trigger:hover {
  opacity: 0.8;
} */

/* Optional: Add pulse animation to scale widget when changing */
@keyframes scalePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.scale-selection-widget.updating {
  animation: scalePulse 0.3s ease;
}

/* Loading State */
.mouse-position-widget.loading::after,
.scale-selection-widget.loading::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Accessibility - Focus States */
.small-icon-btn:focus-visible,
.proj-label:focus-visible,
.scale-selection-widget:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .coordinates-container {
    background-color: rgba(0, 0, 0, 0.9);
  }

  .scale-selection-widget,
  .mouse-position-widget {
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #fff;
  }
}

/* Print Media - Hide Controls */
@media print {
  .coordinates-container {
    display: none !important;
  }
}
/* END OF COORDINATES MODAL SPECIFIC STYLES */