/* Define the variable */
:root {
  --pgz-blue: rgb(58, 169, 227);
  --pgz-green: #7fbf38;
}

/*
  background-color: var(--pgz-blue);
  background-color: var(--pgz-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(--pgz-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(--pgz-blue);
  --bs-btn-border-color: var(--pgz-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--pgz-blue);
  --bs-btn-hover-border-color: var(--pgz-blue);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--pgz-blue);
  --bs-btn-active-border-color: var(--pgz-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(--pgz-blue);
  --bs-btn-disabled-border-color: var(--pgz-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(--pgz-green); /* Adjusted for smaller size */
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-background {
  background-color: var(--pgz-green);
  box-shadow: inset 0 0 0 1px var(--pgz-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(--pgz-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(--pgz-green);
  border-color: var(--pgz-green);
}

.substyle-toggles .form-check-input:focus {
  box-shadow: none;
}

/* .substyle-toggles label:hover {
  color: #000;
} */

/* Mobile Sidebar Close Buttons */
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: var(--pgz-blue);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  z-index: 2000;
}

@media (max-width: 768px) {
  .sidebar-close-btn {
    display: block;
  }

  /* Add padding to the top of sidebars on mobile to make room for the close button */
  .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;
}
