.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  padding: 24px;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
}

.modal.is-open {
  display: flex;
}

.modal .modal-content {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  padding: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal .close-button {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
}

.modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.close-button {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-btn {
  width: 100%;
  justify-items: center;
}

.item-select {
  margin-right: 12px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Deixa o botão mover visível (no my-files.css ele some com opacity:0) */
#recentFilesContainer .item-col-actions {
  opacity: 1 !important;
}

/* Barra de progresso para operações em lote */
.bulk-progress {
  margin-bottom: 12px;
  padding: 10px 16px;
  background: #e8f0fe;
  border: 1px solid #c5d8fc;
  border-radius: 8px;
}

.bulk-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #1a73e8;
  font-weight: 500;
  margin-bottom: 6px;
}

.bulk-progress progress {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  border: none;
  appearance: none;
}

.bulk-progress progress::-webkit-progress-bar {
  background: #c5d8fc;
  border-radius: 4px;
}

.bulk-progress progress::-webkit-progress-value {
  background: #4285f4;
  border-radius: 4px;
}

.bulk-progress progress::-moz-progress-bar {
  background: #4285f4;
  border-radius: 4px;
}

@media (max-width: 520px) {
  .modal {
    padding: 14px;
  }

  .modal .modal-content {
    width: 100%;
    border-radius: 10px;
  }
}