/* ============================================================
   TRADESALA TOOLSPOT — PDF TO WORD SPECIFIC STYLES
   ============================================================ */

.tool-layout {
  display: flex;
  justify-content: center;
  /* Centers the child panel perfectly */
  margin: 0 auto !important;
  max-width: 900px;
  /* Reduced from 1600px for a tighter, focused dropzone */
  width: 100%;
}

.tool-header {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: left;
  max-width: 900px;
  margin: 0 auto 40px auto;
  /* Centers the header block and adds bottom spacing */
}

.p2w-panel {
  width: 100%;
  /* Forces the panel to respect the 900px max-width of its parent */
  padding: 40px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

/* ── DROPZONE ── */
.p2w-dropzone {
  width: 100% !important;
  box-sizing: border-box;
  border: 2px dashed var(--glass-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  padding: 60px 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.p2w-dropzone:hover,
.p2w-dropzone.drag-over {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--red);
  transform: translateY(-2px);
}

.p2w-dropzone.drag-over::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(249, 115, 22, 0.05);
  pointer-events: none;
}

.drop-icon {
  font-size: 64px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.2));
  transition: transform 0.3s ease;
}

/* ── GLASS BUTTONS ── */
.rb-btn {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text) !important;
  padding: 14px 36px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.rb-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.rb-btn-primary {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
  color: var(--red) !important;
}

.rb-btn-primary:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: var(--red) !important;
}

.p2w-dropzone h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.p2w-dropzone p {
  color: var(--text-3);
  margin-bottom: 30px;
}



/* ── QUEUE LIST ── */
.p2w-queue {
  margin-top: 40px;
  animation: fadeIn 0.5s ease both;
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--glass-border);
}

.queue-header h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
}

.queue-actions {
  display: flex;
  gap: 10px;
}

.rb-btn-small {
  padding: 8px 16px;
  font-size: 11px;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── QUEUE ITEM ── */
.queue-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.q-icon {
  font-size: 24px;
}

.q-info {
  flex: 1;
  min-width: 0;
}

.q-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.q-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.q-status {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.q-download {
  margin-left: 10px;
  z-index: 10;
}

.status-pending {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-3);
}

.status-converting {
  background: rgba(249, 115, 22, 0.1);
  color: var(--red);
  animation: pulse 1.5s infinite;
}

.status-done {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ── PROGRESS BAR (Inline) ── */
.q-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.3s ease;
}

/* ── BULK FOOTER ── */
.bulk-footer {
  margin-top: 30px;
  padding: 20px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideUp 0.4s ease both;
}

.bulk-status {
  font-weight: 600;
  color: #10b981;
}

/* ── ANIMATIONS ── */
@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .p2w-panel {
    padding: 20px;
  }

  .queue-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .bulk-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}