* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main {
  margin-top: 60px;
  overflow: hidden;
  flex: 1;
  padding: 40px 20px;
}

.converter-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.drop-zone {
  background: #fff;
  border: 3px dashed var(--primary-color);
  border-radius: 12px;
  padding: 60px 20px;
  margin: 20px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.drop-zone.dragover {
  border-color: var(--secondary-color);
  background-color: #f0f8ff;
}

.drop-zone-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.drop-zone-text {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.drop-zone-subtext {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.file-input-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.file-input-btn:hover {
  background: var(--secondary-color);
}

#fileInput {
  display: none;
}

.settings-panel {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-light);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.setting-item {
  text-align: left;
}

.setting-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.setting-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
}

.quality-slider {
  width: 100%;
  margin-top: 8px;
}

.quality-value {
  font-weight: 700;
  color: var(--primary-color);
}

.zip-option {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
}

.zip-option.visible {
  display: block;
}

.zip-option.hidden {
  display: none;
}

.zip-checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zip-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.zip-label {
  font-weight: 600;
  color: #333;
  cursor: pointer;
  font-size: 14px;
}

.zip-description {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  margin-left: 28px;
}

.file-list {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-light);
  display: none;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--bg-light);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-preview {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.file-details {
  text-align: left;
}

.file-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.file-size {
  font-size: 12px;
  color: var(--text-muted);
}

.file-actions {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-success {
  background: var(--success-color);
  color: #fff;
}

.btn-success:hover:not(:disabled) {
  background: var(--success-hover);
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  background: #545b62;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-small:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-convert {
  background: var(--success-color);
  color: #fff;
}

.btn-convert:hover:not(:disabled) {
  background: var(--success-hover);
}

.btn-remove {
  background: var(--danger-color);
  color: #fff;
}

.btn-remove:hover {
  background: var(--danger-hover);
}

.btn-download {
  background: var(--primary-color);
  color: #fff;
}

.btn-download:hover {
  background: var(--primary-hover);
}

.conversion-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.status-converting {
  color: var(--warning-color);
}

.status-completed {
  color: var(--success-color);
}

.status-error {
  color: var(--danger-color);
}

.progress-container {
  display: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  padding: 30px;
  text-align: center;
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 5px;
}

.status-text {
  color: #666;
  font-size: 16px;
  margin-bottom: 10px;
}

.batch-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0;
  border: 1px solid #f5c6cb;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Supported formats styling */
.supported-formats {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 15px;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 28px;
  }

  .page-subtitle {
    font-size: 18px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .file-actions {
    align-self: stretch;
    justify-content: space-between;
  }

  .batch-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .custom-size-inputs {
    flex-direction: column;
  }
}
