/* Reset a základní styly */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.5;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header h1 {
  color: #2c5282;
  margin-bottom: 0.5rem;
}

/* Kroky */
.step {
  display: none;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.step.active {
  display: block;
}

.step h2 {
  color: #2c5282;
  margin-bottom: 1.5rem;
}

/* Upload kontejner - opraveno pro mobilní zařízení */
.upload-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  border: 2px dashed #007bff;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  min-height: 120px;
}

.upload-btn:hover {
  border-color: #0056b3;
  background: #e7f1ff;
}

/* Seznam souborů */
.file-list {
  margin-bottom: 1rem;
  max-height: 300px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

.file-info {
  flex: 1;
  display: flex;
  align-items: center;
}

.file-name {
  font-size: 0.9rem;
  color: #495057;
  word-break: break-word;
}

.remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
}

/* Tlačítka - opraveno pro disabled stav v Chrome */
.btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.convert-btn {
  background: #007bff;
  color: white;
}

/* Důležité: explicitní styly pro disabled stav v Chrome */
.convert-btn:disabled {
  background-color: #6c757d !important;
  color: #fff !important;
  cursor: not-allowed;
  opacity: 0.65;
}

.convert-btn:hover:not(:disabled) {
  background: #0056b3;
}

.reset-btn {
  background: #28a745;
  color: white;
}

.reset-btn:hover {
  background: #218838;
}

/* Progress */
.progress-container {
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Download odkazy */
.download-links {
  margin: 1rem 0;
}

.download-link {
  display: block;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  text-decoration: none;
  color: #155724;
  font-weight: 500;
  transition: all 0.2s;
}

.download-link:hover {
  background: #c3e6cb;
  transform: translateX(5px);
}

.mobile-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #856404;
}

/* Responzivní design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .step {
    padding: 1rem;
  }
  
  .upload-btn {
    padding: 1.5rem 0.5rem;
  }
}
