.elementor-33975 .elementor-element.elementor-element-7b7590d{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-33975 .elementor-element.elementor-element-b3280ba > .elementor-widget-container{padding:0px 0px 0px 0px;}@media(min-width:768px){.elementor-33975 .elementor-element.elementor-element-7b7590d{--content-width:1180px;}}/* Start custom CSS for html, class: .elementor-element-b3280ba */* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* UPLOAD SECTION */
.neucademytoolpdfmerger-upload {
  width: 100%;
}

.upload-box {
  background: #E9FFF7;
  border-radius: 8px;
}

.upload-inner {
  border: 2px dashed #18cb96;
  border-radius: 8px;
  padding-top: 25px;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.upload-inner button {
  background: #E9FFF7;
  color: #6B6B6B;;
  border: none;
  border-radius: 6px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
}

.upload-inner {
  position: relative;
  cursor: pointer;
}

.upload-inner input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}


/* ORGANIZE SECTION */
.neucademytoolpdfmerger-organize {
  display: none;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}

.topbar-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.topbar-icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f7;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.finish-btn {
  background: #0b5cff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.finish-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* GRID (Desktop Default) */
.file-grid {
    padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
}

/* FILE CARD (Desktop Default) */
.file-card {
  width: 160px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: grab;
}

.file-card:active {
  cursor: grabbing;
}

.file-card.dragging {
  opacity: .4;
  border: 2px solid #0b5cff;
}

/* ACTIONS (Desktop Default) */
.file-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
  border: 1px solid #e3e6ef;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 12;
}

.file-card:hover .file-actions {
  opacity: 1;
  pointer-events: auto;
}

.file-action-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #e3e6ef;
  background: #f8f9fc;
  cursor: pointer;
}

/* PREVIEW */
.preview-clip {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f9fafb;
}

.preview-inner {
  max-width: 100%;
  max-height: 100%;
  transition: transform .25s ease;
  transform-origin: center center;
}

/* BADGE */
.file-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 11;
  pointer-events: none;
}

/* NAME */
.file-name {
  margin-top: 6px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #374151;
}

/* MOBILE & TABLET STYLES */
@media (max-width: 850px) {
  .canvas { padding: 12px; }
  .file-grid { flex-direction: column; gap: 8px; }

  .file-card {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 8px;
    height: 80px;
    gap: 12px;
  }

  .file-action-btn[title="Preview"] { display: none !important; }

  .drag-handle {
    display: flex !important;
    align-items: center;
    color: #9ca3af;
    padding: 0 4px;
    cursor: grab;
  }

  .preview-clip {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0;
    border-radius: 4px;
  }

  .file-badge {
    bottom: auto !important;
    top: 2px !important;
    left: 2px !important;
    font-size: 8px !important;
    padding: 1px 4px;
  }

  .file-name {
    flex: 1;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .file-actions {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: none !important;
    gap: 4px;
  }

  .file-action-btn {
    width: 32px;
    height: 32px;
    background: #fff;
  }

  .add-card {
    width: 100% !important;
    height: 60px !important;
  }

  #mobile-merge-success { display: flex !important; }
  #desktop-merge-preview { display: none !important; }
}

/* Hide grip on desktop */
.drag-handle { display: none; }

/* ADD CARD */
.add-card {
  width: 160px;
  height: 250px;
  border: 2px dashed #8fb2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b5cff;
  font-weight: 700;
  border-radius: 6px;
  background: #f7faff;
  cursor: pointer;
  flex-shrink: 0;
}

/* SUBMENU */
.add-menu {
  position: absolute;
  top: 36px;
  left: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  z-index: 1000;
  padding: 6px;
}

.add-menu button {
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  border-radius: 6px;
}

.add-menu button i { color: #0b5cff; }
.add-menu button:hover { background: #eef4ff; }

/* PREVIEW MODAL */
.preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.preview-content {
  background: #fff;
  width: 90%;
  max-width: 720px;
  height: 70vh;
  border-radius: 8px;
  position: relative;
  padding: 14px;
}

.preview-content iframe,
.preview-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
}

.preview-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fa-spin { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }/* End custom CSS */