body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: #1b1b1b;
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.upload-container {
  margin-top: 20px;
  background-color: #222;
  border: 1px solid #3c4;
  border-radius: 16px;
  padding: 10px 20px 20px 20px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 0 15px rgba(0, 255, 100, 0.05);
}

h1 {
  text-align: center;
  font-size: 1.4em;
  color: #9f9;
  margin-bottom: 12px;
  margin-top: 0;
}

/* === Textarea upravená === */
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 70px;
  margin-bottom: 12px;
  padding: 8px;
  background-color: #2a2a2a;
  border: 1px solid #3c3;
  border-radius: 8px;
  color: #ddd;
  resize: vertical;
  text-align: left;
}

textarea:focus {
  outline: none;
  border-color: #6f6;
  background-color: #303030;
}

.gps-checkbox {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bfb;
}

.upload-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.upload-controls button {
  background-color: #333;
  border: 1px solid #4f4;
  border-radius: 12px;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s, transform 0.1s;
}

.upload-controls button:hover {
  background-color: #3a3;
  transform: scale(1.05);
}

.upload-controls img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

#previewContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border: 1px solid #3c4;
  border-radius: 10px;
  overflow: hidden;
  background-color: #2a2a2a;
}

.preview-item img,
.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
}

.preview-item button img {
  width: 100%;
  height: 100%;
}

.upload-btn {
  width: 100%;
  height: 48px;
  font-size: 1em;
  background-color: #3c3;
  color: #111;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-weight: bold;
}

.upload-btn:hover {
  background-color: #5f5;
}

.upload-btn:disabled {
  background-color: #2a2a2a;
  color: #777;
  cursor: not-allowed;
}

.progress-container {
  position: relative;
  width: 100%;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #333;
  margin-top: 10px;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    #0f0 0%,
    #4f4 25%,
    #0f0 50%,
    #4f4 75%,
    #0f0 100%
  );
  background-size: 200% 100%;
  animation: moveGradient 2s linear infinite;
  width: 0%;
  transition: width 0.3s ease;
}

@keyframes moveGradient {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* === Text v progress baru – nyní bílý === */
.progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 12px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 4px #000;
}
