  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: row;
    background-color: #f0f2f5;
  }

  #sidebar {
    width: 320px;
    background: #ffffff;
    color: #333;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  }

  #map {
    flex: 1;
    height: 100vh;
    width: 100%;
  }

  h1 {
    font-size: 40px;
    margin: 0;
    color: #007bff;
  }
  h2 {
    font-size: 20px;
    margin: 0;
    color: #007bff;
  }

  small {
    color: #888;
    font-size: 12px;
  }

label {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px; /* zvýšený spodný rozostup */
}

  input[type="range"],
  input[type="color"],
  input[type="text"],
  textarea,
  select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    background-color: #f9f9f9;
  }

  textarea {
    font-family: monospace;
    height: 100px;
  }



.admin-tools {
  background: #f8f9fa;
  color: #444;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-top: 10px;
  font-size: 13px;
  max-width: 300px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.admin-tools code,
.admin-tools pre {
  display: block;
  background: #eef;
  padding: 6px;
  margin: 6px 0;
  border-radius: 4px;
  overflow-x: auto;
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
}



button,
.button-link {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin: 5px auto;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.2s;
}

button:hover,
.button-link:hover {
  background-color: #0056b3;
}
  
  .form-section {
  padding-bottom: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.label-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
output {
  font-family: monospace;
  font-weight: bold;
  min-width: 30px;
  text-align: right;
}


.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.checkbox-row input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}

.checkbox-row label {
  font-size: 14px;
  cursor: pointer;
  line-height: 1;           /* zruší vertikálne rozťahovanie textu */
  padding-top: 10px;         /* drobná korekcia vyrovnania */
  position: relative;
  top: 1px;                 /* ešte presnejšie zrovnanie */
}

.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.color-row label {
  flex: 1;
  font-size: 14px;
  padding-top:10px;
}

.color-row input[type="color"] {
  width: 40px;
  height: 30px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

.file-upload label {
  font-size: 14px;
  margin-bottom: 5px;
  display: block;
}

.custom-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-file input[type="file"] {
  opacity: 0;
  position: absolute;
  left: 0;
  width: 140px;
  height: 36px;
  cursor: pointer;
}

.custom-file::before {
  content: "Choose file";
  display: inline-block;
  background-color: #007bff;
  color: white;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.custom-file:hover::before {
  background-color: #0056b3;
}

#file-name {
  font-size: 13px;
  color: #555;
}
