* {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

header p {
  font-size: 16px;
  opacity: 0.85;
}

.input-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.input-control {
  display: flex;
  align-items: center;
}

.input-control label{
  font-size: 16px;
  font-weight: 700;
  margin-right: 10px;
}
.input-control select {
  width: 150px;
  padding: 14px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
}

.container textarea {
  width: 100%;
  min-height: 300px;
  padding: 15px;
  line-height: 1.5;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.95rem;
  resize: vertical;
  background: white;
}

.format-info {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #7f8c8d;
  font-style: italic;
}


.buttons {
  display: flex;
  gap: 20px;
  margin-left: 30px;
}

button {
  padding: 14px 36px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#convertBtn {
  background: #3498db;
  color: white;
}

#convertBtn:hover {
  background: #2980b9;
}

#uploadBtn {
  background: #2ecc71;
  color: white;
}

#uploadBtn:hover {
  background: #27ae60;
}

#clearBtn {
  background: #e74c3c;
  color: white;
}

#clearBtn:hover {
  background: #c0392b;
}

.result-section {
  display: none;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.section-info{

}

.section-info h3{
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.section-info p{
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.result-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  background: #f1f2f3;
  border-left: 4px solid #3498db;
  transition: transform 0.3s ease;
}

.result-card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.result-card p{
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 15px;
}

.download-btn {
  display: inline-block;
  padding: 10px 20px;
  color: #3498db;
  background: #fff;
  border: 1px solid #3498db;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.download-btn:hover {
  background: #2980b9;
  color: #fff;
  border-color: #3498db;
}

footer {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
}

footer h2 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

footer p {
  line-height: 1.7;
  font-size: 1rem;
  margin-top: 10px;
}

#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  background: rgba(52, 152, 219, 0.9);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.file-input {
  display: none;
}
