/* Estilos gerais para o layout */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0f172a;
  color: #fff;
}

/* Estilo do cabeçalho (Topo) */
.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1e293b;
  padding: 16px;
  border-bottom: 1px solid #334155;
}

.app-info h1 {
  margin: 0;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

.package {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: #9ca3af;
  word-break: break-all;
}

.open-btn {
  background-color: #38bdf8;
  color: #0f172a;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
}

.open-btn:active {
  transform: scale(0.97);
}

.preview-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.preview-box {
  background-color: #1e293b;
  border-radius: 10px;
  border: 1px solid #334155;
  width: 360px;
  min-height: 640px;
  max-width: 95vw;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  padding: 16px;
  color: #fff;
  overflow-y: auto;
  word-break: break-word;
}

/* Adaptação para telas grandes (Desktop) */
@media (min-width: 768px) {
  .preview-box {
    width: 60vw; /* Para telas maiores, o preview fica mais largo */
    height: 70vh;
  }
}

/* Adaptação para telas pequenas (Mobile / Celular) */
@media (max-width: 767px) {
  .preview-box {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: auto;
  }

  .topo {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .open-btn {
    width: 100%; /* Botão ocupa toda a largura da tela no celular */
  }
}
