/* ============================================================
   Scenic IT Solutions - PDF Tools Modern Dark Aesthetic CSS
   ============================================================ */

/* Privacy Badge */
.pdf-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.35);
  color: #2ecc71;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pdf-privacy-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Full Width PDF Workspace */
.pdf-workspace-card {
  background: #15151c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
}

/* PDF Upload Dropzone */
.pdf-dropzone {
  border: 2px dashed rgba(246, 139, 31, 0.4);
  border-radius: 14px;
  background: rgba(24, 24, 34, 0.6);
  padding: 45px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.pdf-dropzone:hover,
.pdf-dropzone.dragover {
  border-color: #F68B1F;
  background: rgba(246, 139, 31, 0.08);
  transform: translateY(-2px);
}

.pdf-dropzone-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 139, 31, 0.15);
  border-radius: 50%;
  color: #F68B1F;
}

.pdf-dropzone-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.pdf-dropzone-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.pdf-dropzone-subtitle {
  font-size: 13px;
  color: #9494a8;
}

.pdf-dropzone-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 22px;
  background: linear-gradient(90deg, #F68B1F, #0278a8);
  color: #ffffff;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

/* Document Info Strip */
.pdf-doc-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e1e28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 20px;
  border-radius: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.pdf-doc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-doc-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
  word-break: break-all;
}

.pdf-doc-tag {
  background: rgba(2, 120, 168, 0.2);
  color: #0099E5;
  border: 1px solid rgba(2, 120, 168, 0.3);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* Progress Bar */
.pdf-progress-wrap {
  margin: 18px 0;
  display: none;
}

.pdf-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #d1d1db;
  margin-bottom: 6px;
}

.pdf-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #232330;
  border-radius: 10px;
  overflow: hidden;
}

.pdf-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F68B1F, #2ecc71);
  transition: width 0.15s ease;
}

/* Settings Bar / Form Controls */
.pdf-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
  background: #1a1a24;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pdf-control-item label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #d1d1db;
  margin-bottom: 6px;
}

.pdf-control-item select,
.pdf-control-item input[type="text"],
.pdf-control-item input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  background: #13131b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.pdf-control-item select:focus,
.pdf-control-item input:focus {
  border-color: #F68B1F;
}

/* Page Thumbnail Cards Grid */
.pdf-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
  margin: 24px 0;
  max-height: 580px;
  overflow-y: auto;
  padding: 6px 4px;
}

.pdf-thumbnails-grid::-webkit-scrollbar {
  width: 6px;
}

.pdf-thumbnails-grid::-webkit-scrollbar-thumb {
  background: #333344;
  border-radius: 4px;
}

.pdf-page-card {
  background: #1c1c27;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.pdf-page-card:hover {
  border-color: rgba(246, 139, 31, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.pdf-page-card.selected {
  border-color: #F68B1F;
  box-shadow: 0 0 12px rgba(246, 139, 31, 0.35);
}

.pdf-thumb-preview {
  position: relative;
  background: #0d0d12;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
}

.pdf-thumb-preview canvas,
.pdf-thumb-preview img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}

.pdf-page-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.pdf-page-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #171720;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pdf-card-btn {
  background: transparent;
  border: none;
  color: #9494a8;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.pdf-card-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.pdf-card-btn.delete-btn:hover {
  color: #ff5252;
  background: rgba(255, 82, 82, 0.15);
}

/* File Reorder List (for Merge Tool) */
.pdf-merge-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  max-height: 520px;
  overflow-y: auto;
}

.pdf-merge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a1a24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 18px;
  transition: all 0.2s;
  gap: 14px;
}

.pdf-merge-item:hover {
  border-color: rgba(246, 139, 31, 0.4);
  background: #1f1f2c;
}

.pdf-merge-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.pdf-merge-handle {
  color: #6a6a7c;
  cursor: grab;
  display: flex;
  align-items: center;
}

.pdf-merge-item-title {
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-merge-item-meta {
  font-size: 12px;
  color: #9494a8;
}

.pdf-merge-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Action Trigger Bar */
.pdf-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 14px;
}

.pdf-primary-btn {
  background: linear-gradient(90deg, #F68B1F, #e67e22);
  border: none;
  color: #ffffff;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(246, 139, 31, 0.3);
}

.pdf-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 139, 31, 0.45);
}

.pdf-primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pdf-secondary-btn {
  background: #232332;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d1db;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pdf-secondary-btn:hover {
  color: #ffffff;
  background: #2a2a3c;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Status Notifications */
.pdf-status-alert {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin: 16px 0;
  display: none;
}

.pdf-status-alert.info {
  background: rgba(2, 120, 168, 0.15);
  border: 1px solid rgba(2, 120, 168, 0.3);
  color: #38bdf8;
  display: block;
}

.pdf-status-alert.success {
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #2ecc71;
  display: block;
}

.pdf-status-alert.error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pdf-workspace-card {
    padding: 18px;
  }
  .pdf-controls-grid {
    grid-template-columns: 1fr;
  }
  .pdf-thumbnails-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .pdf-action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .pdf-primary-btn, .pdf-secondary-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Batch 1 Tools: Compressor, Rotate, Protect, Watermark Styles
   ============================================================ */

/* Compressor Option Cards */
.pdf-compress-settings-card {
  background: #181824;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 25px;
}

.pdf-compress-settings-card h4 {
  color: #ffffff;
  font-size: 16px;
  margin: 0 0 18px 0;
  font-weight: 600;
}

.compress-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.compress-option-card {
  position: relative;
  background: rgba(26, 26, 38, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
}

.compress-option-card input[type="radio"] {
  position: absolute;
  top: 16px;
  right: 16px;
  accent-color: #0099E5;
  width: 18px;
  height: 18px;
}

.compress-option-card:hover {
  border-color: rgba(0, 153, 229, 0.5);
  background: rgba(0, 153, 229, 0.05);
}

.compress-option-card.active {
  border-color: #0099E5;
  background: rgba(0, 153, 229, 0.12);
  box-shadow: 0 0 15px rgba(0, 153, 229, 0.25);
}

.compress-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-right: 28px;
}

.level-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.level-tag.tag-extreme { background: rgba(231, 76, 60, 0.2); color: #ff6b6b; border: 1px solid rgba(231, 76, 60, 0.35); }
.level-tag.tag-balanced { background: rgba(0, 153, 229, 0.2); color: #38bdf8; border: 1px solid rgba(0, 153, 229, 0.35); }
.level-tag.tag-low { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.35); }

.level-savings {
  font-size: 12px;
  color: #a0a0b2;
}

.compress-card-content h5 {
  color: #ffffff;
  font-size: 15px;
  margin: 0 0 6px 0;
  font-weight: 600;
}

.compress-card-content p {
  color: #9292a4;
  font-size: 12.5px;
  line-height: 1.4;
  margin: 0;
}

.compress-action-bar {
  display: flex;
  justify-content: flex-end;
}

/* Results Stats Grid */
.pdf-results-card {
  background: radial-gradient(120% 120% at 50% 0%, rgba(0, 153, 229, 0.15) 0%, #151520 100%);
  border: 1px solid rgba(0, 153, 229, 0.35);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  margin-top: 25px;
}

.results-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(0, 153, 229, 0.2);
  border: 1px solid rgba(0, 153, 229, 0.4);
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.results-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.result-stat-box {
  background: rgba(22, 22, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 22px;
  min-width: 140px;
}

.result-stat-box.highlight {
  border-color: rgba(0, 153, 229, 0.5);
  background: rgba(0, 153, 229, 0.12);
}

.result-stat-box.savings {
  border-color: rgba(46, 204, 113, 0.5);
  background: rgba(46, 204, 113, 0.12);
}

.result-stat-box .stat-label {
  display: block;
  font-size: 12px;
  color: #9494a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.result-stat-box strong {
  font-size: 20px;
  color: #ffffff;
}

.result-stat-box.savings strong {
  color: #2ecc71;
}

.result-stat-divider {
  color: #666677;
  font-size: 20px;
}

/* Rotate Tool Thumbnails & Actions */
.pdf-global-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pdf-action-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dddddd;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdf-action-pill:hover {
  background: rgba(0, 153, 229, 0.15);
  border-color: #0099E5;
  color: #0099E5;
}

.pdf-page-card {
  background: #181824;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}

.pdf-page-card:hover {
  border-color: rgba(0, 153, 229, 0.4);
}

.pdf-page-card.page-deleted {
  opacity: 0.35;
  filter: grayscale(1);
  border-color: #e74c3c !important;
}

.page-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.page-number-badge {
  font-size: 11px;
  color: #9999aa;
  font-weight: 600;
}

.page-rotation-badge {
  font-size: 10px;
  color: #F68B1F;
  background: rgba(246, 139, 31, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  display: none;
}

.page-canvas-wrapper {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
  border-radius: 6px;
  background: #0f0f16;
}

.page-canvas-wrapper canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-card-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.btn-page-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-page-action:hover {
  background: #0099E5;
  border-color: #0099E5;
}

.btn-page-action.btn-del-page:hover {
  background: #e74c3c;
  border-color: #e74c3c;
}

/* Password Protect Card */
.pdf-protect-card {
  background: #181824;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px;
}

.password-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.pw-strength-wrapper {
  margin-top: 8px;
}

.pw-strength-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.pw-strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
}

.pw-strength-label, .pw-match-status {
  font-size: 12px;
  color: #9494a8;
}

.permissions-section {
  background: rgba(22, 22, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 24px;
}

.permissions-title {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 12px;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.perm-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bbbbcc;
  font-size: 13px;
  cursor: pointer;
}

.perm-checkbox-item input {
  accent-color: #0099E5;
  width: 16px;
  height: 16px;
}

/* Stamp & Watermark Columns */
.pdf-stamp-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.pdf-stamp-controls {
  background: #181824;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
}

.pdf-stamp-preview {
  background: #181824;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.preview-stage-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  overflow: hidden;
}

.preview-canvas-container {
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  overflow: hidden;
}

.preview-canvas-container canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stamp-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 992px) {
  .compress-options-grid {
    grid-template-columns: 1fr;
  }
  .password-form-grid {
    grid-template-columns: 1fr;
  }
  .permissions-grid {
    grid-template-columns: 1fr;
  }
  .pdf-stamp-columns {
    grid-template-columns: 1fr;
  }
}

