* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;

}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 20px auto;
  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;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
  line-height: 1.6;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3e50;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.settings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

.setting-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

input,
select,
textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #fafafa;
  transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  padding: 12px 35px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(to right, #3498db, #2c3e50);
  color: white;
}

.btn-success {
  background: linear-gradient(to right, #27ae60, #2ecc71);
  color: white;
}

.btn-warning {
  background: linear-gradient(to right, #e67e22, #f39c12);
  color: white;
}

.btn-danger {
  background: linear-gradient(to right, #e74c3c, #c0392b);
  color: white;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
}

.input-container {
  margin-bottom: 25px;
}

.file-input {
  position: relative;
  width: 100%;
}

.file-input input {
  width: 100%;
  padding: 40px 20px;
  border: 2px dashed #3498db;
  border-radius: 12px;
  text-align: center;
  background: #f8fafd;
  cursor: pointer;
  font-size: 1.1rem;
  color: #555;
}

.file-input input:hover {
  background: #e8f4fe;
}

.text-input {
  display: none;
  width: 100%;
}

.text-input textarea {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 2px solid #3498db;
  border-radius: 12px;
  background: #f8fafd;
  font-size: 1rem;
  resize: vertical;
}



.results-section {
  display: none;
  margin-top: 25px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.result-card {
  background: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  transition: transform 0.3s;
}

.result-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f2f3;
}

.file-info {
  display: flex;
  flex-direction: column;
}

.file-name {
  max-width: 190px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.file-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: #f1f2f3;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #e0e0e0;
}

.preview-content {
  max-height: 150px;
  overflow: auto;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  border: 1px solid #eee;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  border-radius: 8px;
  z-index: 1000;
  display: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    bottom: 0;
  }

  10% {
    opacity: 1;
    bottom: 20px;
  }

  90% {
    opacity: 1;
    bottom: 20px;
  }

  100% {
    opacity: 0;
    bottom: 0;
  }
}

footer {
  text-align: center;
  margin-top: 25px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 25px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.footer-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.features {
  list-style-type: none;
}

.features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-text {
  line-height: 1.8;
}

.copyright {
  margin-top: 20px;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 80%;
  max-width: 1000px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px;
  background: #2c3e50;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2{
  font-size: 1rem;
  width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-body {
  padding: 20px;
  overflow: auto;
  font-family: monospace;
  white-space: pre;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.input-info {
  font-size: 0.9rem;
  color: #7f8c8d;
}
