body {
  background-color: #2B2A33;
  color: white;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  position: relative;
  min-height: 100vh;
}

form {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

input[type="file"] {
  margin-right: 10px;
}

button {
  background-color: #d2ace8;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 6px;
}

button:hover {
  background-color: #ab80d1;
}

.upload-item {
  margin: 10px 0;
  padding: 10px;
  background-color: #2B2A33;
  border-radius: 6px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

.drop-zone {
  width: 100%;
  height: 200px;
  border: 2px dashed #d2ace8;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.4s ease-in;
  background-color: rgba(210, 172, 232, 0.05);
  margin-bottom: 20px;
}

.drop-zone:hover {
  background-color: rgba(210, 172, 232, 0.1);
  border-color: #ab80d1;
  transition: background-color 0.2s ease-out;
}

.drop-zone.drag-over {
  background-color: rgba(210, 172, 232, 0.15);
  border-color: #ab80d1;
  transform: scale(1.02);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #d2ace8;
}

.drop-zone-content svg {
  margin-bottom: 15px;
  stroke: #d2ace8;
}

.drop-zone-content p {
  margin: 0;
  font-size: 1.1em;
}

.progress-container {
  background-color: grey;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-top: 5px;
}

.progress-bar {
  position: absolute;
  width: 0;
  height: 100%;
  background-color: #d2ace8;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 20px;
  color: white;
}

.uploaded-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space between header and button */
  width: 100%;
}

.uploaded-files-header h1 {
  margin-right: 10px;
}

.bulk-delete {
  margin: 0;
  padding: 12px 24px;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  background-color: #ff6c6c;
  color: white;
}

.bulk-delete:hover {
  background-color: #fca0a0;
}

#result {
margin-top: 20px;
}

#uploadProgress {
margin-top: 20px;
display: flex;
flex-direction: column-reverse;  /* New uploads appear at the top */
}

#fileList {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style-type: none;
  width: 100%;
}

#fileList li {
  background-color: #3f2f52;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 3em; 
  max-height: 3em; 
  overflow: hidden;
  transition: background-color 0.8s ease-in;
}

#fileList li:hover {
  background-color: #784e9c; 
  border-color: #ab80d1;
  transition: background-color 0.1s ease-out;
}

#fileList li label {
  flex-grow: 1;
  margin-right: 20px;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Style links and other elements within the list items */
#fileList li a {
  color: #d2ace8;
  text-decoration: none;
}

#fileList li a:hover {
  color: #ab80d1;
}

#fileList li .file-size {
  color: #ccc;
  font-size: 1em;
  min-width: 80px;
  text-align: right;
}
ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  margin: 5px 0;
  display: flex;
  align-items: center;
}

.delete-btn {
  margin-left: 10px;
  color: red;
  cursor: pointer;
}

.copy-link-icon {
  margin-left: 10px;
  cursor: pointer;
  color: #4CAF50;
  font-size: 18px;
}

.copy-link-icon:hover {
  color: #45a049;
}

.filename {
  font-weight: bold;
  margin-bottom: 5px;
}

.upload-stats {
  font-size: 0.9em;
  color: #ccc;
}

.clear-history {
  background-color: #666;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.clear-history:hover {
  background-color: #777;
}

.upload-time {
  font-size: 0.8em;
  color: #888;
  margin-top: 5px;
}

.checkbox-label {
  margin-left: 5px;
}
