@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap");
:root {
  --primary-color: #ef4444; /* Red theme for PDF Compress */
  --primary-hover: #dc2626;
  --bg-color: #f4f7f6;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-comic: 'Comic Neue', 'Chalkboard SE', 'Marker Felt', sans-serif;
}

.tool-center-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.main-tool-card {
  width: 100%;
  max-width: 800px; 
}

/* Dual Icon */
.dual-icon { position: relative; width: 66px; height: 62px; margin-bottom: 14px; flex-shrink: 0;}
.dual-icon .sq { position: absolute; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.dual-icon .pos-tl { top: 0; left: 0; }
.dual-icon .pos-br { top: 22px; left: 26px; border: 2px solid #fff;}
.dual-icon.red .light { background: #fee2e2; color: #b91c1c; z-index: 1; }
.dual-icon.red .solid { background: #ef4444; color: #fff; z-index: 2; }

/* Modern Cool Dropzone (Centered) */
.drop-zone { background: linear-gradient(145deg, #f8fafc, #fef2f2); border: 2px dashed #fca5a5; border-radius: 24px; padding: 70px 20px; text-align: center; cursor: pointer; transition: all 0.3s ease; box-shadow: inset 0 0 20px rgba(255,255,255,0.8); display: flex; flex-direction: column; align-items: center; justify-content: center;}
.drop-zone:hover { border-color: var(--primary-color); background: linear-gradient(145deg, #fef2f2, #fee2e2); transform: translateY(-2px); }
.upload-icon-wrap { background: #fff; width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2); transition: 0.3s;}
.upload-icon-wrap i { font-size: 40px; color: var(--primary-color); }
.comic-text { font-family: var(--font-comic); font-size: 26px; margin-bottom: 8px; font-weight: 600; color: #991b1b; transition: 0.3s;}
.drop-zone p { color: var(--text-muted); margin-bottom: 24px; font-size: 15px; }

/* Uploaded Success State for Dropzone */
.drop-zone.uploaded { border-color: var(--success-color); background: linear-gradient(145deg, #f0fdf4, #d1fae5); pointer-events: none;}
.drop-zone.uploaded .upload-icon-wrap { box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2); }
.drop-zone.uploaded .upload-icon-wrap i { color: var(--success-color); }
.drop-zone.uploaded .comic-text { color: #064e3b; }

.upload-progress-box { margin-top: 15px; }
.upload-progress-text { font-size: 18px; font-weight: 800; color: var(--primary-color); }
.file-details { margin-top: 15px; font-size: 14px; font-weight: 700; color: var(--success-color); }

/* Buttons */
.btn { border: 1px solid var(--border-color); background: #fff; color: var(--text-main); padding: 12px 24px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; justify-content: center;}
.btn:hover { background: #f1f5f9; }
.btn.primary { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25); }
.round-btn { border-radius: 50px !important; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Settings Panel */
.settings-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 25px; background: #f8fafc; padding: 20px; border-radius: 16px; border: 1px solid #e2e8f0; justify-content: center;}
.pro-input { padding: 10px 14px; border: 1px solid #cbd5e1; font-size: 15px; outline: none; background: #fff; transition: 0.2s; }
.pro-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.round-input { border-radius: 50px; }

/* Processing Loader */
.loader-box { text-align: center; padding: 30px 0; }
.progress-circle { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.progress-circle svg { transform: rotate(-90deg); }
.circle-bg { fill: none; stroke: #e2e8f0; stroke-width: 8; }
.circle-stroke { fill: none; stroke: var(--primary-color); stroke-width: 8; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 0.1s linear; stroke-linecap: round; }
#progressPercentage { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-weight: 800; font-size: 20px; color: #0f172a; }

/* Success Box */
.file-success-badge { background-color: #f0fdf4; color: #166534; padding: 18px 24px; border-radius: 16px; font-size: 15px; font-weight: 500; border: 1px solid #bbf7d0; margin-top: 20px; line-height: 1.6;}