* {
  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;
}

.instructions {
  background-color: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.instructions h2 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructions ul {
  padding-left: 25px;
}

.instructions li {
  margin-bottom: 10px;
}

.tool-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.upload-section {
  flex: 1;
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-section {
  flex: 1;
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-section h2 {
  color: #2c3e50;
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drop-area {
  border: 3px dashed #3498db;
  border-radius: 12px;
  padding: 30px 10px;
  margin-bottom: 20px;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.drop-area:hover {
  background-color: #e3f2fd;
  border-color: #2980b9;
}

.drop-area.active {
  background-color: #d6eaf8;
  border-color: #1a5276;
}

.file-input {
  display: none;
}

.file-label {
  display: inline-block;
  background: linear-gradient(to right, #3498db, #2c3e50);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.file-label:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-extract {
  background: linear-gradient(to right, #27ae60, #2ecc71);
  color: white;
  box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

.btn-extract:hover {
  background: linear-gradient(to right, #219653, #27ae60);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4);
}

.btn-clear {
  background: linear-gradient(to right, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.btn-clear:hover {
  background: linear-gradient(to right, #c0392b, #e74c3c);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

.file-info {
  margin-top: 20px;
  text-align: left;
}

.file-info-item {
  display: flex;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.file-info-label {
  font-weight: 600;
  min-width: 120px;
  color: #2c3e50;
}

.supported-formats {
  margin-top: 25px;
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.format-item {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  border: 1px solid #e9ecef;
}

.results-section {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
  display: none;
}

.results-section h2 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background-color: #3498db;
  color: white;
  padding: 15px;
  text-align: left;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid #e9ecef;
}

.download-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #27ae60;
}

.file-icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.loading {
  display: none;
  text-align: center;
  padding: 20px;
}

.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.warning {
  background-color: #fff3cd;
  color: #856404;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  border-left: 4px solid #ffeeba;
  font-size: 14px;
}

footer {
  text-align: center;
  margin-top: 20px;
  color: #7f8c8d;
  font-size: 0.9rem;
}
