.content{
  display:flex;
  gap:20px;
}

.left{
  width:35%;
}

.right{
  width:65%;
}

.section{
  background:#fafafa;
  padding:15px;
  border-radius:10px;
  border:1px solid #eee;
}

label{
  font-size:13px;
  font-weight:bold;
  display:block;
  margin-bottom:8px;
}

input{
  width:100%;
  padding:10px;
  border:1px solid #ccc;
  border-radius:6px;
  box-sizing:border-box;
}

.btns{
  display:flex;
  gap:10px;
  margin-top:15px;
}

.app{
  flex:1;
  padding:12px;
  border:none;
  border-radius:4px;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(135deg,#0a3d62,#07517d);
}

.app:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.page-box{
  border:1px solid #ddd;
  border-radius:6px;
  padding:6px;
  background:#fff;
  text-align:center;
}

.page-box img{
  width:100%;
  display:block;
}

.small-btn{
  margin-top:5px;
  width:100%;
  padding:6px;
  font-size:12px;
  cursor:pointer;
  border:none;
  background:#222;
  color:#fff;
  border-radius:4px;
}

.status-msg{
  grid-column:1/-1;
  text-align:center;
  color:#666;
  font-size:13px;
  padding:20px 0;
}

      #preview{
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  max-height:75vh;
  min-height: 30vh;
  overflow:auto;
  padding: 10px;
      }

@media(max-width:768px){
  .content{
    flex-direction:column;
  }

  .left,.right{
    width:100%;
    grid-template-columns:repeat(2,1fr);
  }
}