.container {
  position: relative;
  margin: 20px auto;
  padding: 20px;
  border-radius: 16px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  max-width: 900px;
  background: #121212; /* Ultra-dark background */
  color: #e0e0e0; /* Soft white text for readability */
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Dark gradient border (deep blue + teal green) */
.container::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  z-index: -1;
  border-radius: 20px;
  background: linear-gradient(135deg, #003366, #005544); /* Dark blue to dark green */
}

.container h1 {
  font-size: 40px;
  font-weight: 800;
  color: #222;
  background: linear-gradient(90deg, #0d6efd, #20c997);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  padding: 10px 0;
  border-bottom: 3px solid #0d6efd;
  display: inline-block;
}

input[type="file"] {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 16px;
  margin-top: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: #6a5acd;
  background: #fff;
}

input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #6a5acd, #00bcd4);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  margin-right: 15px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, #00bcd4, #6a5acd);
}

.upload-section {
  margin: 30px 0;
  text-align: center;
}

/* Styling for the file input button */
  .upload-input {
  display: inline-block;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

/* Custom file input appearance */
  .file-input {
  display: none;
}

.upload-input i {
  margin-right: 10px;
  font-size: 18px;
}

.upload-input:hover {
  background: linear-gradient(135deg, #0056b3, #0084ff);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.upload-input:active {
  transform: scale(0.98);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

textarea {
  width: 90%;
  height: 200px;
  margin-top: 20px;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}


.copy-message {
  text-align: center;
  color: #28a745;
  font-size: 16px;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.second-button {
  margin-top: 25px;
  background: linear-gradient(135deg, #6a5acd, #00bcd4);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
  text-decoration: none;
}

.second-button:hover {
  background: linear-gradient(135deg, #00bcd4, #6a5acd);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#cleanedText {
  margin-top: 20px;
  padding: 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 90%;
  max-height: 300px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100px;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-y: auto;
}


/* Custom scrollbar styling (optional) */
#cleanedText::-webkit-scrollbar {
  width: 8px;
}

#cleanedText::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

#cleanedText::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#cleanedText::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.copy-message {
    opacity: 0;
    transition: opacity 0.3s;
    color: green;
    font-weight: bold;
    margin-top: 10px;
  }

.header-section {
  margin: 30px auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.header-section h1 {
  font-size: 30px;
  font-weight: 800;
  color: #222;
  background: linear-gradient(90deg, #0d6efd, #20c997);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  padding: 10px 0;
  border-bottom: 3px solid #0d6efd;
  display: inline-block;
}

.header-section p {
  font-size: 18px;
  line-height: 1.8;
  text-align: left;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  word-spacing: 1px;
  font-weight: 400;
  font-family: "Segoe UI", Roboto, sans-serif;
}