* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 10px;
  color: #2c3e50;
}

p {
  text-align: center;
  margin-bottom: 20px;
  color: #7f8c8d;
}

.format-selector {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.drop-zone {
  border: 3px dashed #3498db;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 30px;
  background-color: #ecf0f1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.drop-zone.active {
  background-color: #d6eaf8;
  border-color: #2980b9;
}

#file-input {
  display: none;
}

.file-input-label {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.file-input-label:hover {
  background-color: #2980b9;
}

.hidden {
  display: none;
}

.preview-container, .results {
  margin-top: 30px;
}

.thumbnails, .result-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.thumbnail, .result-item {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thumbnail img, .result-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.thumbnail .filename, .result-item .filename {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.result-item .size-info {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(46, 204, 113, 0.8);
  color: white;
  padding: 3px 6px;
  font-size: 10px;
  border-bottom-left-radius: 5px;
}

.convert-btn, .download-btn, .clear-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.convert-btn:hover, .download-btn:hover {
  background-color: #2980b9;
}

.clear-btn {
  background-color: #e74c3c;
  margin-top: 10px;
}

.clear-btn:hover {
  background-color: #c0392b;
}

.result-item .download-link {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(41, 128, 185, 0.8);
  color: white;
  padding: 3px 6px;
  font-size: 10px;
  border-bottom-right-radius: 5px;
  cursor: pointer;
}

.result-item .download-link:hover {
  background-color: rgba(41, 128, 185, 1);
}

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }
  
  .thumbnails, .result-list {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

.footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  color: #7f8c8d;
  font-size: 14px;
  border-top: 1px solid #ecf0f1;
}

.other-tools {
  max-width: 800px;
  margin: 30px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.other-tools h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
}

.other-tools ul {
  list-style: none;
}

.other-tools li {
  margin: 10px 0;
  text-align: center;
}

.other-tools a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

.other-tools a:hover {
  color: #2980b9;
}

.language-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 8px 20px;
  border: 2px solid #3498db;
  border-radius: 5px;
  background-color: transparent;
  color: #3498db;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.tab-btn:hover {
  background-color: #3498db;
  color: white;
}

.tab-btn.active {
  background-color: #3498db;
  color: white;
}

.hidden {
  display: none !important;
}

.benefits-section {
  max-width: 800px;
  margin: 30px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.benefits-section h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
}

.benefits-section h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
}

.format-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.benefit-card {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
  color: #3498db;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.benefit-card ul {
  list-style-type: none;
  padding: 0;
}

.benefit-card li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

.benefit-card li:before {
  content: "✓";
  color: #2ecc71;
  position: absolute;
  left: 0;
}

.seo-benefit {
  background-color: #e8f4fc;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.seo-benefit h3 {
  color: #3498db;
  text-align: left;
  margin-bottom: 10px;
}

.seo-benefit p {
  text-align: left;
  color: #333;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .format-benefits {
    flex-direction: column;
  }
  
  .benefit-card {
    min-width: 100%;
  }
} 