/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4a5c88; /* PDFResizer Blue */
  --bg: #ffffff;
  --text: #333333;
  --text-muted: #666666;
  --border: #cccccc;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 960px; /* PDFResizer જેવી જ પહોળાઈ */
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== Header & Logo ===== */
.header {
  padding: 20px 0;
  background: white;
}
.header-inner {
  display: flex;
  align-items: center;
}
.logo {
  text-decoration: none;
  color: #222;
  font-size: 32px;
  font-weight: bold;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  background: #333;
  color: #4a5c88;
  padding: 5px 10px;
  border-radius: 3px;
  font-style: normal;
}

/* ===== PDFResizer Dark Gray Menu ===== */
.pdf-resizer-menu {
  background: #666677;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 25px;
}
.pdf-resizer-menu a {
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  font-size: 14px;
  border-right: 1px solid #777788;
}
.pdf-resizer-menu a:hover { background: #555566; }
.pdf-resizer-menu a.active { background: #333344; font-weight: bold; }

/* Hide Old Elements */
.nav, .menu-toggle, .hero { display: none; }

/* ===== Tool Section ===== */
.tool-section { padding-bottom: 40px; }

.page-title {
  font-size: 24px;
  font-weight: normal;
  color: #333;
  margin-bottom: 20px;
}

/* ===== Blue Upload Zone (Dashed Border) ===== */
.upload-zone {
  background-color: #6a7eb5;
  border: 2px dashed #ffffff;
  outline: 2px solid #6a7eb5;
  padding: 80px 20px;
  text-align: center;
  color: white;
  margin: 0 auto;
  max-width: 800px;
  cursor: pointer;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  transition: background 0.2s;
}
.upload-zone:hover { background-color: #56689a; }
.upload-icon { display: none; }
.upload-zone h2 {
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 20px;
}
.upload-zone p {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 30px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 15px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: white;
  color: #333;
}
.btn-primary:hover { background: #f0f0f0; }
.btn-primary:disabled {
  background: #e0e0e0;
  color: #888;
  cursor: not-allowed;
}

/* ===== Workspace & Toolbar ===== */
.workspace-header {
  border: 1px solid #e0e0e0;
  padding: 15px;
  background: #fdfdfd;
  margin-bottom: 20px;
}
.file-info {
  margin-bottom: 15px;
  font-size: 14px;
}
.file-name { font-weight: bold; }
.page-count { color: #666; margin-left: 10px; }

/* The Toolbar inside workspace */
.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #eee;
  padding-top: 15px;
}
.action-btn {
  padding: 10px 15px;
  background: white;
  border: 1px solid #4a5c88;
  color: #4a5c88;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
.action-btn:hover {
  background: #f0f4f8;
}
.action-btn.active-tool {
  background: #e0f0ff;
  border-color: #007bff;
}

/* Preview Area */
.preview-wrapper {
  background: #e2e2e2; /* PDFResizer Gray Background */
  border: 1px solid #ccc;
  min-height: 500px;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.preview-scroll {
  width: 100%;
  overflow: auto;
  text-align: center;
}
.page-wrapper {
  position: relative;
  background: white;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  display: inline-block;
}
.page-label { display: none; }

/* ===== Crop Box & Handles (Black & White) ===== */
.crop-box {
  position: absolute;
  border: 1px dashed #ffffff;
  box-shadow: 0 0 0 1px #000000;
  background: rgba(255, 255, 255, 0.1);
  cursor: move;
  z-index: 10;
}
.crop-box .handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: white;
  border: 1px solid black;
  z-index: 11;
}
.crop-box .handle.nw { top: -4px; left: -4px; cursor: nw-resize; }
.crop-box .handle.ne { top: -4px; right: -4px; cursor: ne-resize; }
.crop-box .handle.sw { bottom: -4px; left: -4px; cursor: sw-resize; }
.crop-box .handle.se { bottom: -4px; right: -4px; cursor: se-resize; }
.crop-box .handle.n { top: -4px; left: calc(50% - 3px); cursor: n-resize; }
.crop-box .handle.s { bottom: -4px; left: calc(50% - 3px); cursor: s-resize; }
.crop-box .handle.w { left: -4px; top: calc(50% - 3px); cursor: w-resize; }
.crop-box .handle.e { right: -4px; top: calc(50% - 3px); cursor: e-resize; }

/* Action Buttons Below Image */
.action-panel {
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin-top: 20px;
  background: #fdfdfd;
}
.action-panel p { margin-bottom: 15px; font-size: 14px; }
.big-action-btn {
  background: #4a5c88;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 3px;
  cursor: pointer;
  display: block;
  margin: 20px 0 0 auto;
}
.big-action-btn:hover { background: #3b4a6e; }

/* ===== SEO Text (Bottom Content) ===== */
.seo-content {
  max-width: 800px;
  margin: 50px 0;
  font-size: 14px;
  color: #333;
}
.seo-content h2 {
  font-weight: normal;
  font-size: 22px;
  margin-bottom: 15px;
}
.seo-content h3 {
  font-weight: normal;
  font-size: 18px;
  margin-top: 30px;
  margin-bottom: 10px;
}
.seo-content p { margin-bottom: 15px; }
.seo-content ol, .seo-content ul { padding-left: 20px; margin-bottom: 15px; }
.seo-content li { margin-bottom: 8px; }

/* Hide unwanted sections */
.how-it-works, .features, .faq-section { display: none; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid #ddd;
  background: #f5f5f5;
  padding: 20px 0;
  font-size: 13px;
  color: #666;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links a {
  color: #0056b3;
  text-decoration: none;
  margin-left: 15px;
}
.footer-links a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .upload-zone { padding: 40px 15px; }
  .pdf-resizer-menu a { padding: 10px; font-size: 12px; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}
