* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  position: relative;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

header p {
  opacity: 0.9;
  font-size: 1.1rem;
}


.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 25px;
}

.upload-area {
  border: 3px dashed #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  background-color: #fafafa;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.upload-area.active {
  border-color: #3498db;
  background-color: #e3f2fd;
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: 10px;
  color: #3498db;
}

.upload-text {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #555;
}

.browse-btn {
  background: linear-gradient(135deg, #3498db, #2ecc71);
  color: white;
  border: none;
  padding: 14px 48px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.browse-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}


#fileInput {
  display: none;
}

.controls {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
}

.control-label {
  font-size: 1.1rem;
  margin-right: 15px;
  font-weight: 500;
  color: #555;
}

.format-select,
.action-btn {
  padding: 12px 35px;
  font-size: 1.1rem;
  border-radius: 10px;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.format-select {
  background: white;
  padding: 12px 18px;
  border: 2px solid #e0e0e0;
  flex: 1;
  min-width: 250px;
}

.action-btn {
  font-weight: 600;
  transition: all 0.3s ease;
}

#convertBtn {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

#clearBtn {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

#downloadBtn{
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.preview-container {
  display: none;
  text-align: center;
}

.preview-area {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.preview-box {
  flex: 1;
  min-width: 400px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.preview-header {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #3498db;
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-img {
  max-width: 100%;
  max-height: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-info {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #7f8c8d;
  text-align: left;
  padding: 0 10px;
  line-height: 1.75;
}

.info-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: #2c3e50;
  position: relative;
}

.info-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 2px;
}

.info-content {
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-top: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.info-content p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 25px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.feature-desc {
  color: #7f8c8d;
  font-size: 1.05rem;
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-top: 25px;
}

.status {
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
  font-weight: 500;
  display: none;
}

.status.success {
  background-color: #d4edda;
  color: #155724;
  display: block;
}

.status.error {
  background-color: #f8d7da;
  color: #721c24;
  display: block;
}

.status.processing {
  background-color: #cce5ff;
  color: #004085;
  display: block;
}
