/** UPLOAD **/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#pdfModal {
  z-index: 15;
}

.modal-box {
  background-color: var(--bg-general);
  border-radius: 12px;
  padding: 24px;
  width: 480px;
  max-width: 92%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #dddddd47;
}

.light-theme .modal-box {
  border-color: var(--muted);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
}

.close-modal-btn:hover {
  color: #d00;
}

#formPdfUpload {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label[for=multifilesPdf] {
  background: #f0f0f0;
  color: #333;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  border: 1px solid #ccc;
  width: fit-content;
}

label[for=multifilesPdf]:hover {
  background: #e0e0e0;
}

.inputfile {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

#selected-files-list {
  list-style-type: disc;
  margin-left: 20px;
  font-size: 14px;
  color: var(--text);
}

.confirm-upload-btn {
  background-color: #007bff;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
  width: fit-content;
}

.confirm-upload-btn:hover {
  background-color: #0056b3;
}

#upload-progress-pdf {
  height: 14px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  display: none;
}

#upload-progress-pdf .progress-bar {
  height: 100%;
  width: 0%;
  background: #007bff;
  color: white;
  font-size: 11px;
  display: flex;
  align-items: center;
  padding-left: 6px;
  border-radius: 4px;
  transition: width 0.3s ease;
}

#pdf-server-results {
  font-size: 13px;
  padding-top: 6px;
}

.modal-header,
#pdf-server-results {
  color: var(--text);
}

.file-number .fa-hourglass-half {
  font-size: .6rem;
  padding: 1px;
  animation: loading-files 1.2s infinite;
}

.feedback-upload {
  display: block;
  width: 100%;
}

.feedback-upload .fa {
  font-size: 1.5rem;
}

.mensagem-pergunta .pergunta-texto.has-attachments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.has-attachments .fa-file-pdf-o {
  margin-right: 10px;
}

div#pdf-server-results .remove {
  background-color: red;
  color: #fff;
  border-radius: 50%;
  height: 15px;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: -1px;
  width: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

div#pdf-server-results > ul {
  padding-left: 40px;
  position: relative;
  margin-top: 10px;
}

div#pdf-server-results > ul > li {
  margin-bottom: 10px;
}

@keyframes loading-files {
  0% {
    transform: rotateZ(0);
  }

  100% {
    transform: rotateZ(360deg);
  }
}