/* modal.css */

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal janela */
.modal-janela {
  background: #1c1c1c;
  color: #fff;
  border-radius: 12px;
  width: 400px;
  max-width: 80%;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
}

/* Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5em;
}

.modal-fechar {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
}

/* Breadcrumb */
.modal-breadcrumb {
  margin: 10px 0;
  font-size: 0.9em;
}

.modal-breadcrumb span {
  cursor: pointer;
  color: #00d0ff;
}

.modal-breadcrumb span:hover {
  text-decoration: underline;
}

/* Lista de pastas */
.modal-pastas {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 10px;
  border: 1px solid #444;
  padding: 8px;
  border-radius: 6px;
  background: #2a2a2a;
}

.modal-pastas div {
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.modal-pastas div:hover {
  background: #444;
}

/* Footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-footer button {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.btn-cancelar {
  background: #555;
  color: #fff;
}

.btn-cancelar:hover { background: #777; }

.btn-mover {
  background: #00c853;
  color: #fff;
}

.btn-mover:hover { background: #00e676; }

/* Confirmação dentro do modal */
.modal-confirmacao {
  background: #222;
  color: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.modal-confirmacao button {
  width: 100%;
  background: #00c853;
  font-size: 1em;
  padding: 8px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
}

.modal-confirmacao button:hover { background: #00e676; }

.modal-final {
  all: unset;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  display: flex;       /* deixa os filhos em linha */
  gap: 10px;           /* espaço entre os botões */
  justify-content: flex-start; /* alinha à esquerda, use center ou space-between se quiser */
}

.modal-final #btnSim {
  width: 100%;
  background: #00c853;
  font-size: 1em;
  padding: 8px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
}

.modal-final #btnNao {
  width: 100%;
  background: #555;
  font-size: 1em;
  padding: 8px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
}
