* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.description {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}
.main-content {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 20px;
}

.upload-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.format-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  margin-top: 25px;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-area {
  border: 3px dashed #3498db;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s;
  background: #f8fafc;
  cursor: pointer;
  position: relative;
}

.upload-area:hover {
  background: #e3f2fd;
  border-color: #2980b9;
}

.upload-area.drag-over {
  background: #d1e7ff;
  border-color: #1e6cba;
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #3498db;
}

.upload-text {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.upload-hint {
  color: #7f8c8d;
  font-size: 1rem;
}

#fileInput {
  display: none;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.format-option {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f9f9f9;
}

.format-option:hover {
  background: #f0f7ff;
  border-color: #3498db;
}

.format-option.selected {
  background: #e3f2fd;
  border-color: #2980b9;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.format-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.file-list-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.table-container {
  overflow-x: auto;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
}

.file-table th {
  background: #f5f7fa;
  padding: 16px 15px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e0e6ed;
}

.file-table td {
  padding: 18px 15px;
  border-bottom: 1px solid #eef2f7;
  color: #4a5568;
}

.file-table tr:hover td {
  background: #f8fafc;
}

.progress-container {
  width: 100%;
  background: #e0e7ff;
  border-radius: 50px;
  height: 10px;
}

.progress-bar {
  height: 100%;
  background: #3498db;
  border-radius: 50px;
  transition: width 0.3s;
}

.status {
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
}

.status.waiting {
  background: #f0f9ff;
  color: #3498db;
}

.status.processing {
  background: #fffbeb;
  color: #f59e0b;
}

.status.completed {
  background: #f0fdf4;
  color: #10b981;
}

.status.error {
  background: #fef2f2;
  color: #ef4444;
}

.action-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  background: #3498db;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  margin-right: 8px;
}

.action-btn:hover {
  background: #2980b9;
}

.action-btn.delete {
  background: #e74c3c;
}

.action-btn.delete:hover {
  background: #c0392b;
}

.action-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}

.control-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.start-btn {
  background: #2ecc71;
  color: white;
}

.start-btn:hover {
  background: #27ae60;
}

.start-btn:disabled {
  background: #95a5a6;
}

.clear-btn {
  background: #f39c12;
  color: white;
}

.clear-btn:hover {
  background: #d35400;
}

.download-btn {
  background: #9b59b6;
  color: white;
}

.download-btn:hover {
  background: #8e44ad;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(52, 152, 219, 0.2);
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1.2rem;
  color: #2c3e50;
}

.empty-list {
  text-align: center;
  padding: 40px 0;
  color: #7f8c8d;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

.file-icon {
  font-size: 1.3rem;
  margin-right: 10px;
  vertical-align: middle;
}

.loading-time {
  font-size: 1rem;
  color: #7f8c8d;
  margin-top: 10px;
}
footer {
  text-align: center;
  margin-top: 25px;
  color: #7f8c8d;
  font-size: 0.9rem;
}

footer p{
  margin-top: 10px;
}
