/* Základní styl a odsazení */
body {
  font-family: Arial, sans-serif;
  padding: 20px;
  margin: 0;
  background-color: #f9f9f9;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 10px;
}

.description {
  text-align: center;
  margin-bottom: 20px;
  color: #555;
}

.header {
  display: flex;
  align-items: center; /* vertikální vycentrování loga a H1 */
  justify-content: center;
  gap: 15px; /* mezera mezi logem a nadpisem */
  margin-bottom: 15px;
}

.logo {
  width: 60px; /* malá ikonka */
  height: auto; /* zachování poměru stran */
}

/* Drop area */
#dropArea {
  border: 2px dashed #aaa;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #666;
  margin-bottom: 10px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

#dropArea.hover {
  border-color: #777;
  background-color: #f0f0f0;
}

#dropArea input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Slider */
input[type="range"] {
  width: 100%;
  margin: 10px 0 20px 0;
}

/* Tlačítka */
.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background-color: #007bff;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}

/* Tabulka */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f0f0f0;
}

/* --- Moderní jazykový přepínač --- */
#langSwitcher {
  position: fixed;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 200, 200, 0.5);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 9999;
  color: #333;
  transition: 0.2s ease;
}

#langSwitcher:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 600px) {
  .buttons {
    flex-direction: column;
  }
  .description {
    font-size: 1rem;
  }
  .header {
    flex-direction: column;
  }
  .logo {
    width: 50px;
  }
  #langSwitcher {
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 0.78rem;
  }
}
