/* Základné resetovanie */
* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #f0f2f5;
  user-select: none;
}

#app {
  display: flex;
  height: 100vh;
}

#sidebar {
  width: 260px;
  background: #1e1e2f;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
}

#sidebar h2 {
  margin-top: 0;
  font-weight: 600;
  font-size: 1.5rem;
}

#sidebar label {
  font-size: 0.9rem;
}

#sidebar input[type="color"],
#sidebar input[type="range"],
#sidebar input[type="number"],
#sidebar input[type="text"] {
  width: 100%;
  margin-top: 5px;
}

button {
  cursor: pointer;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  background-color: #2a2a40;
  color: white;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #444466;
}

button.active {
  background-color: #00bfff;
  color: white;
}

.hidden {
  display: none !important;
}


.icons {
  margin-top: 10px;
}

.icons p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin-bottom: 15px;
  font-weight: 400;
  align-items: center;
  
}

.icons i.draggable {
  font-size: 30px;
  margin-right: 10px;
  margin-bottom: 15px;
  cursor: grab;
  color: #ddd;
  transition: color 0.3s ease;
  user-select: none;
  font-size: 30px !important;
  color: white;               /* farba výplne ikony */
  -webkit-text-stroke: 1.5px black;  /* čierny obrys */
  text-stroke: 1.5px black;            /* štandard, ale nie všade podporované */
}

.icons i.draggable:hover {
  color: #00bfff;
}

/* Hlavný obsah - mapa */
#mapContainer {
  flex: 1;
  position: relative;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#mapArea {
  position: relative;
width: 1280px;  /* nastav na pevný rozmer, podľa tvojej potreby */
  height: 720px;
  background: #ffffff;
  border: 0.5px dashed rgb(0, 0, 0); /* viditeľná hranica */
  box-sizing: border-box; /* aby okraj neovplyvnil veľkosť */
  overflow: hidden;
}

#dateRangeInput {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
text-align: center;
  padding: 15px 15px;
  font-size: 22px;
  border: 2px #FFFFFF;
  border-radius: 8px;
  font-weight: 900;
 
  background: #FFFFFF;
  min-width: 515px;
  z-index: 500;
}

#mapCopyrightText {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: bold;
  color: #ffffff;
text-shadow:
    0 0 3px black,
    0 0 3px black,
    0 0 3px black,
    0 0 3px black;

  z-index: 1000;
}

#editableFooter {
  position: absolute;
  top: 95%;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  height: 30px;
  width: 97.5%;
  color: rgb(0, 0, 0);
  padding: 10px 10px;
  font-size: 12.9px;
  text-align: center;
  user-select: text;
  cursor: text;
  font-style: italic;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  border-radius: 6px;
  z-index: 450;
}


#drawCanvas {
  position: absolute;
  opacity: 0.7;
  top: 0;
  left: 0;
  z-index: 5; /* pod obrázkom */
}

#mapImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
  user-select: none;
  pointer-events: none;
  z-index: 10; /* Pod kreslením */
}




/* Ikony na mape - teraz sivé */
.draggable-icon {
  position: absolute;
  font-size: 50px;
  cursor: move;
  user-select: none;
  color: #000000;
  z-index: 20;
  -webkit-text-stroke: 1.5px black;
  text-stroke: 1.5px black;
  text-shadow:
     -1px -1px 0 black,
      1px -1px 0 black,
     -1px  1px 0 black,
      1px  1px 0 black;
}

.draggable-icon img,
img.draggable-icon {
  width: 40px;
  height: 40px;
}

.icons .icon-with-color {
  display: flex;
  flex-direction: row; /* horizontálne vedľa seba */
  align-items: center; /* vertikálne vycentrovanie */
  margin-bottom: 20px;
  gap: 8px; /* medzera medzi ikonou a color pickerom */
}

.icons i {
  font-size: 30px !important; /* alebo akákoľvek veľkosť ikony */
  margin-bottom: 5px;
  
}

.icon-color-picker {
  width: 30px !important;
  height: 30px !important;
  border-radius: 20%;
  cursor: pointer;
  border: none;
  padding: 0;
}


.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}



/* Legenda vpravo hore */
#legend {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #FFFFFF;
  color: rgb(0, 0, 0);
  padding: 10px 15px;
  border-radius: 8px;
  width: 280px;
  cursor: default; /* kurzor už nebude "ruky" */
  user-select: none;
  z-index: 30;
}


.legend-text-span {
  color: #000 !important;
}
 

.legend-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.legend-row input[type="color"] {
  width: 30px;
  height: 30px;
  border: none;
  margin-right: 10px;
  padding: 0;
  cursor: pointer;
}

.legend-row input.legend-text {
  flex: 1;
  border: none;
  background: transparent;
  color: rgb(0, 0, 0);
  font-size: 0.9rem;
  padding: 4px 6px;
}

.legend-row button.remove-row {
  background: transparent;
  color: #ff4d4d;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  border: none;
  margin-left: 8px;
  padding: 0;
}

#addLegendRow {
  width: 100%;
  margin-top: 8px;
  font-weight: 600;
  background-color: #007bff;
  border-radius: 4px;
}

.legend-icons {
  margin-top: 10px;
  font-size: 0.9rem;
}

.legend-icons i {
  margin-right: 5px;
  color: #00bfff;
}

#legendTime {
  display: none;
  margin-top: 8px;
  font-size: 0.8rem;
  opacity: 0.8;
}
.legend-color-box {
  display: none;
  width: 15px;
  height: 25px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 3px;
}

.legend-text-span {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #000;
  vertical-align: middle;
}


/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px 25px;
  border-radius: 8px;
  width: 320px;
  text-align: center;
  user-select: text;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.modal-content label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.modal-content input[type="color"],
.modal-content input[type="number"] {
  width: 100%;
  padding: 6px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.modal-content button {
  width: 48%;
  margin: 0 1%;
  font-weight: 600;
}

.modal-content button#iconConfirmBtn {
  background-color: #00bfff;
  color: white;
}

.modal-content button#iconCancelBtn {
  background-color: #bbb;
  color: #333;
}
.color-block {
  display: none; /* štvorčeky sú skryté normálne */
  width: 50px;
  height: 30px;
  border: 1px solid #ffffff;
  vertical-align: middle;
  margin-right: 8px;
}

.logo-label {
  font-weight: 600;
  margin: 10px 0 5px 0;
  text-align: left; 
  color: #ddd;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
}

.logo-icon {
  width: 200px !important;
  height: 200px !important;
  object-fit: contain;
}

#iconPanel {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #444466;
  background-color: #2a2a40;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Ak chceš pekný scrollbar (iba v moderných prehliadačoch) */
#iconPanel::-webkit-scrollbar {
  width: 8px;
}

#iconPanel::-webkit-scrollbar-thumb {
  background-color: #7a7a9b;
  border-radius: 4px;
}

#iconPanel::-webkit-scrollbar-track {
  background: #e1e8f0;
  border-radius: 4px;
}
#dodatok {
  position: absolute;
  bottom: 25px;
  right: 15px;
  width: 650px;
  height: 190px;
  padding: 10px 16px;

  background-color: #ffffff;  /* <--- Toto pridaj pre biele pozadie */
  color: rgb(0, 0, 0);

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.4;

  border-radius: 8px;
  border: none;

  cursor: text;
  z-index: 400;
  user-select: text;
  outline: none;

  resize: both;
  overflow: auto;
}

#dodatok h4, #dodatok h5 {
  margin: 0 0 8px 0;
  font-weight: normal;
}
#dodatok h4 {
  font-weight: 600;
  font-size: 16px;
}

.legend-title {
  font-size: 18px;
  font-weight: bold;
  color: rgb(0, 0, 0); /* alebo iná farba podľa pozadia */
  margin-bottom: 10px;

}

.draggable-text {
  position: absolute;
  padding: 5px 10px;
  border: 1px solid black;
  background-color: white;
  font-size: 16px;
  min-width: 100px;
  min-height: 30px;
  z-index: 5000;
  resize: both;
  overflow: auto;
  cursor: text;
  user-select: text;
}


#fontList li.font-option:hover {
  background-color: #444466;
}

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 300px;
  text-align: center;
}
.modal-buttons button {
  margin: 5px;
  padding: 8px 15px;
  cursor: pointer;
}















