/* ======================
   DRAG & DROP – VISUAL
====================== */

/* Container dos dois PDFs */
.drop-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

/* Área de drag & drop */
.drop-zone {
    flex: 1;
  position: relative;
  height: 180px;
  border: 2px dashed #ff8c00;
  border-radius: 16px;
  background: #fff7ec;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

/* Texto interno */
.drop-zone span {
  font-size: 15px;
  color: #555;
  line-height: 1.4;
  pointer-events: none;
}

/* Input invisível cobrindo tudo */
.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Hover */
.drop-zone:hover {
  background: #ffe9cc;
  border-color: #ff7a00;
}

/* Quando arrastando arquivo por cima */
.drop-zone.dragover {
  background: #fff0d9;
  border-color: #ff6a00;
}

/* ======================
   BASE VISUAL
====================== */

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f6f9;
  color: #333;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}
/* ======================
   CARDS
====================== */

.app-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.app-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
}


.pdf-icon {
  width: 48px;
  height: auto;
  margin-bottom: 8px;
}
.drop-zone:hover {
  background: #fff3e0;
}
.drop-zone.loaded {
      display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid #4caf50;
  background: #e8f5e9;
  padding: 30px;
}

.drop-zone.loaded span {
  color: #2e7d32;
  font-weight: 600;
  font-size: 14px;
}

button {
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.15s ease;
}

button:hover {
  filter: brightness(1.05);
}

button:active {
  transform: scale(0.97);
}
.result-lb {
  margin-bottom: 20px;
}

.result-lb h3 {
  margin-bottom: 10px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-box {
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}

.result-box.remover {
  border-left: 6px solid #d32f2f;
}

.result-box.adicionar {
  border-left: 6px solid #388e3c;
}
/* ======================
   RESULTADO EM CRUZ (LB)
====================== */

.result-cross {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  margin-top: 20px;
}

.result-lb {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.result-lb.empty {
  opacity: 0.6;
  text-align: center;
}
@media (max-width: 768px) {
  .drop-container {
    flex-direction: column;
  }
}
/* ======================
   BOTÃO VOLTAR
====================== */

.top {
  position: relative;
}

.btn-voltar {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;

  padding: 8px 14px;
  border-radius: 10px;

  background: #ff8c00;
  color: #fff;

  transition: background 0.2s ease;
}

.btn-voltar:hover {
  background: #ff7a00;
}


.remove-file {
  position: absolute;
  top: 10px;
  right: 12px;

  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;
  background: #e53935;
  color: #fff;

  font-size: 18px;
  font-weight: bold;
  line-height: 1;

  cursor: pointer;
}


.drop-zone.loaded .remove-file {
  display: flex;
}

.remove-file:hover {
  background: #c62828;
}
/* =========================
   POPUP INFORMATIVO
========================= */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-overlay.hidden {
  display: none;
}

.popup-box {
  background: #ffffff;
  width: 90%;
  max-width: 640px;
  border-radius: 14px;
  padding: 24px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: popupFadeIn 0.25s ease-out;
}

/* Botão fechar */
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #eee;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s;
}

.popup-close:hover {
  background: #ddd;
}

/* Título */
.popup-box h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

/* Conteúdo */
.popup-content p {
  font-size: 15px;
  line-height: 1.55;
  color: #444;
  margin-bottom: 12px;
}

.popup-content ul {
  padding-left: 20px;
  margin: 10px 0 14px;
}

.popup-content li {
  font-size: 15px;
  color: #444;
  margin-bottom: 6px;
}

/* Animação */
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   BOTÃO INFORMAÇÕES
========================= */

.info-btn {
  background: #ff9800;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.info-btn:hover {
  background: #fb8c00;
}
/* =========================
   TOPO – LAYOUT
========================= */

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-text h1 {
  margin: 0;
}

.top-text p {
  margin: 4px 0 0;
  color: #666;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Agrupa título + subtítulo */
.top-inner h1,
.top-inner p {
  margin: 0;
}

/* Container virtual à direita */
.top-inner .info-btn,
.top-inner .btn-voltar {
  margin-left: 8px;
}
