.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.section {
  background-color: #ffffff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.section h2 {
  font-size: 22px;
  color: #212529;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f3f5;
}

.section p {
  margin-bottom: 12px;
  color: #495057;
}

.page-title-wrapper {
  background-color: #f8f9fa;
  padding: 20px 25px;
  margin: 0 auto;
  max-width: 1200px;
}

.page-title-wrapper h1 {
  font-size: 32px;
  color: #212529;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.page-title-wrapper p {
  font-size: 18px;
  color: #6c757d;
  margin: 0 0 12px 0;
}

.page-title-wrapper .page-subdesc {
  font-size: 14px;
  color: #495057;
  line-height: 1.6;
  margin: 0;
  max-width: 900px;
}

@media (max-width: 768px) {
  .page-title-wrapper h1 {
    font-size: 24px;
  }
  .page-title-wrapper p {
    font-size: 16px;
  }
}

.converter-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  margin-bottom: 20px;
}

.converter-section h2 {
  font-size: 22px;
  color: #212529;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f3f5;
}

.upload-area {
  background-color: #f8f9fa;
  border: 2px dashed #ced4da;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.upload-area:hover,
.upload-area.dragover {
  background-color: #e9ecef;
  border-color: #007bff;
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.upload-text {
  font-size: 16px;
  font-weight: 500;
  color: #212529;
  margin: 0 0 10px 0;
}

.upload-hint {
  font-size: 14px;
  color: #6c757d;
  margin: 10px 0;
}

.upload-btn {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.upload-btn:hover {
  background-color: #0069d9;
}

.upload-limit {
  font-size: 13px;
  color: #6c757d;
  margin-top: 15px;
}

.file-list {
  margin-bottom: 20px;
}

.file-item {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.file-item:last-child {
  margin-bottom: 0;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 24px;
}

.file-details {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-size: 14px;
  font-weight: 500;
  color: #212529;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 12px;
  color: #6c757d;
}

.file-remove {
  background-color: #dc3545;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.file-remove:hover {
  background-color: #c82333;
}

.options-section {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.option-group {
  flex: 1;
  min-width: 200px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #495057;
}

.option-label span:first-child {
  min-width: 70px;
}

.option-label input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #ced4da;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.option-label input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
}

.option-label input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  border: none;
}

.option-label #qualityValue {
  min-width: 50px;
  text-align: right;
  font-weight: 600;
  color: #212529;
}

.option-label select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background: #ffffff;
  color: #495057;
  font-size: 14px;
  cursor: pointer;
}

.action-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.convert-btn {
  background-color: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.convert-btn:hover:not(:disabled) {
  background-color: #0069d9;
}

.convert-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #007bff;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-container span {
  font-size: 14px;
  color: #495057;
}

.results-container {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f3f5;
}

.results-container h3 {
  font-size: 18px;
  color: #212529;
  margin-bottom: 15px;
}

.results-list {
  margin-bottom: 15px;
}

.result-item {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
}

.result-item:last-child {
  margin-bottom: 0;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.result-filename {
  font-size: 14px;
  font-weight: 500;
  color: #212529;
}

.result-download {
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.result-download:hover {
  background-color: #0069d9;
}

.result-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-label {
  font-size: 13px;
  color: #6c757d;
}

.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

.stat-saved {
  color: #28a745;
  font-weight: 700;
}

.results-summary {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  padding: 12px 15px;
  margin-bottom: 15px;
}

.results-summary p {
  font-size: 14px;
  color: #155724;
  margin: 0;
}

.results-summary span {
  font-weight: 600;
}

#totalSaved {
  color: #28a745;
}

.download-all-btn {
  background-color: #28a745;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.download-all-btn:hover {
  background-color: #218838;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  color: #212529;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
}

.container .section h3 {
  font-size: 18px;
  color: #212529;
  margin: 20px 0 12px 0;
}

.container .section ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.container .section ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: #495057;
}

.container .section code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  color: #e74c3c;
}

@media (max-width: 768px) {
  .converter-section {
    padding: 15px;
  }

  .upload-area {
    padding: 25px 15px;
    min-height: 150px;
  }

  .upload-icon {
    font-size: 32px;
  }

  .upload-text {
    font-size: 15px;
  }

  .options-section {
    flex-direction: column;
    gap: 15px;
  }

  .option-label {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .option-label span:first-child {
    min-width: auto;
  }

  .result-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .result-download {
    width: 100%;
  }

  .result-stats {
    gap: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .upload-btn,
  .convert-btn,
  .download-all-btn {
    width: 100%;
    margin: 0 0 8px 0;
  }
}

.privacy-badge {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  padding: 12px 15px;
  margin-top: 15px;
  font-size: 14px;
  color: #155724;
  font-weight: 500;
}

.privacy-badge strong {
  color: #0d47a1;
}

.container .section pre {
  background-color: #2d2d2d;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  overflow-x: auto;
}

.container .section pre code {
  background: none;
  color: #e0e0e0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  line-height: 1.6;
  padding: 0;
}

.container .section ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.container .section ol li {
  list-style: decimal;
  margin-bottom: 8px;
  color: #495057;
}

@media (max-width: 576px) {
  .file-item {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .file-remove {
    width: 100%;
  }

  .privacy-badge {
    font-size: 13px;
    padding: 10px 12px;
  }
}