* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

#map {
  width: 100%;
  position: relative;
  height: 100%;
}

.leaflet-marker-icon {
  transform: rotate(0deg);
  /* Default rotation, adjust if needed */
}

#locationForm {
  margin-bottom: 1em;
  background: #f8f8f8;
  padding: 1em;
  border-radius: 8px;
  width: 320px;
}

.leaflet-top.leaflet-left {
  left: 20px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px; /* razmak med gumbi */
  z-index: 1000;
}


.leaflet-control-custom,
.leaflet-bar .leaflet-control {
  border: none !important;
  box-shadow: none !important;
}
.leaflet-control-custom:hover,
.leaflet-bar .leaflet-control:hover {
  background: #f0f0f0 !important;
}

.leaflet-control-custom:focus,
.leaflet-control-custom:active {
  outline: none !important;
}

.leaflet-control-zoom {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  background: #fff !important;
  color: #222 !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 1.5em; /* spremeni velikost znaka */
  width: 40px; /* spremeni �irino gumba */
  height: 40px; /* spremeni vi�ino gumba */
  margin: 2px 2px;
  border-radius: 8px;
  transition: background 0.2s;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
  background: #e0e0e0 !important;
}

/* Stil za stabilno lokacijo tooltip */
.stable-location-tooltip {
  background-color: #2ecc71 !important;
  border: 2px solid #27ae60 !important;
  color: rgb(49, 37, 37) !important;
  font-weight: bold !important;
  border-radius: 8px !important;
  padding: 8px 8px !important;
  opacity: 0.8 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
  top: -35px !important;
  width: 100px !important; /* Set fixed width */
  text-align: center !important;
  text-wrap: inherit !important;
}

.confarmation-tooltip {
  font-weight: bold !important;
  border-radius: 4px !important;
  padding: 8px 8px !important;
  opacity: 0.9 !important;
  top: -160px !important;
  width: 180px !important; /* Set fixed width */
  text-align: center !important;
  text-wrap: inherit !important;
}
.btn-send-location {
  margin-top: 5px;
  padding: 5px 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.btn-send-location:hover {
  background: #0056b3;
}

.stable-location-tooltip::before {
  border-top-color: #97cfaf !important;
}

.qrcode-container {
  width: 200px;
  height: 200px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin-button {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 7px;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.pin-button:hover {
  background-color: #e0e0e0;
}

#clearPin {
  background-color: #ff4d4d;
  color: white;
  font-weight: bold;
}
.btn-submit {
  background-color: #4caf50;
  color: white;
  padding: 8px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.btn-submit:hover {
  background-color: #738a6e;
}
.bottom-popup {
  top: 10px !important;
}
/* Style for the "Osvežuj zaslon" button */
#cooking {
  position: absolute;
  bottom: 1px; /* Match .leaflet-top.leaflet-right's top */
  right: 10px; /* Align with right side */
  width: 105px;
  height: 50px;
  padding: 5px 5px;
  font-size: 12px;
  background-color: #007bff; /* Blue background */
  color: white; /* White text */
  border: none;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 9999;
}

/* Hover effect */
#cooking:hover {
  background-color: #0056b3; /* Darker blue on hover */
}
.app-logo {
  position: absolute;
  left: 40px;
  top: 1px;
  width: 160px; /* Adjust size */
  height: auto;
   z-index: 10; /* Ensure it appears above other elements */
}
header {
  position: relative; /* Required for absolute child positioning */
  padding: 1px;
  font-size: 12px;
  text-align: center;
  color: #000;
  z-index: 9999;
}
.intermediate-tooltip {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  top: 5% !important;
  padding: 4px 8px;
  border-radius: 4px;
}
.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 8px 0;
}

.popup-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.popup-button:hover {
  background-color: #0056b3;
}

.popup-coords {
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}
 .scroll-to-top {
      position: absolute;
      right: 10px;
      bottom: 10px;
      z-index: 1000; /* Adjust the z-index as needed */
}
.scroll-to-footer {
      position: absolute;
      right: 10px;
      top: 10px;
      z-index: 1000; /* Adjust the z-index as needed */
}

