.elementor-3875 .elementor-element.elementor-element-69a50a0{--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;}.elementor-3875 .elementor-element.elementor-element-461ad1e{--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;}.elementor-3875 .elementor-element.elementor-element-0d949ae{--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;}.elementor-3875 .elementor-element.elementor-element-78608d8{--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;}.elementor-3875 .elementor-element.elementor-element-e501385{--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;}.elementor-3875 .elementor-element.elementor-element-140657c{--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;}/* Start custom CSS for html, class: .elementor-element-1a2ade8 *//* --- CRITICAL FIX: File Input Overlay CSS --- */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block; /* Makes it wrap the button */
    margin-top: 1rem;
}

.file-input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Make it invisible */
    cursor: pointer;
    z-index: 10; /* Ensure it is on top of the button */
}:root {
    --primary-brand: #3b82f6;
    --border-color: #dee2e6;
    --background-light: #f8f9fa;
    --secondary-gray: #6c757d;
}

.hidden { display: none !important; }
.full-width { width: 100%; }
.divider { height: 1px; background: var(--border-color); margin: 1.5rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; color: white; background: var(--primary-brand); border: none; border-radius: 4px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background 0.2s ease; }
.btn-secondary { background: var(--secondary-gray); }

/* Page Header */
.page-header { text-align: left; margin: 2rem auto 3rem auto; max-width: 800px; }
.page-header h2 { font-size: 2.8rem; font-weight: 700; line-height: 1.2; color: #1a1a1a; margin-bottom: 1rem; }
.page-header p { font-size: 1.15rem; color: var(--secondary-gray); line-height: 1.6; margin: 0; }

/* Drop Zone */
.drop-zone { 
    border: 2px dashed var(--border-color); 
    border-radius: 8px; 
    padding: 3rem; 
    text-align: center; 
    cursor: pointer; 
    transition: background 0.2s;
}
.drop-zone:hover { background: #f0f7ff; border-color: var(--primary-brand); }

/* Workspace Layout */
.workspace { 
    display: flex; 
    gap: 2rem; 
    align-items: flex-start; 
    height: 85vh; 
    min-height: 600px;
}

/* Sidebar */
.controls-panel { 
    flex: 0 0 320px; 
    background: white; 
    padding: 1.5rem; 
    border-radius: 8px; 
    border: 1px solid var(--border-color);
    height: 100%; 
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Preview Panel */
.preview-panel { 
    flex: 1; 
    background: var(--background-light); 
    border-radius: 8px; 
    border: 1px solid var(--border-color);
    height: 100%; 
    overflow: auto; 
    position: relative;
    padding: 2rem;
}

/* Visual Position Selector */
.visual-pos-container { background: #f0f4f8; padding: 20px; border-radius: 8px; display: flex; justify-content: center; border: 1px solid var(--border-color); }
.visual-page { width: 120px; height: 160px; background: white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); position: relative; border: 1px solid #e2e8f0; }
.page-lines { padding: 30px 15px; opacity: 0.3; }
.line { height: 4px; background: #cbd5e1; margin-bottom: 8px; border-radius: 2px; }
.pos-dot { width: 18px; height: 18px; background: white; border: 2px solid #94a3b8; border-radius: 50%; position: absolute; cursor: pointer; transition: all 0.2s ease; padding: 0; }
.pos-dot:hover { transform: scale(1.2); border-color: var(--primary-brand); }
.pos-dot.active { background: var(--primary-brand); border-color: var(--primary-brand); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2); }
.pos-dot.top { top: 8px; } .pos-dot.bottom { bottom: 8px; } .pos-dot.left { left: 8px; } .pos-dot.right { right: 8px; }
.pos-dot.center { left: 50%; transform: translateX(-50%); } .pos-dot.center:hover { transform: translateX(-50%) scale(1.2); }

/* PDF Container */
.canvas-wrapper { display: flex; justify-content: center; min-width: 100%; }
.pdf-container { position: relative; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); line-height: 0; background: white; }
#pdfCanvas { display: block; }
.number-overlay { position: absolute; color: #000; pointer-events: none; line-height: 1; font-family: Helvetica, sans-serif; white-space: nowrap; background: rgba(59, 130, 246, 0.1); border: 1px dashed var(--primary-brand); padding: 2px; }

/* Loader */
#loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.95); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 5000; }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid var(--primary-brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Inputs & Labels */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; color: #1a1a1a; }
.form-input { width: 100%; padding: 0.6rem; border: 1px solid var(--border-color); border-radius: 6px; }
input[type="range"] { width: 100%; cursor: pointer; }
.action-buttons { display: flex; gap: 10px; margin-top: 1rem; }

/* Mobile */
@media (max-width: 800px) {
    .workspace { flex-direction: column; height: auto; }
    .controls-panel { width: 100%; height: auto; flex: none; order: -1; }
    .preview-panel { height: 500px; }
    .action-buttons { flex-direction: column; }
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-1e2ca0d *//* --- Tools Section --- */
.tools-section {
  position: relative;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f9fb 100%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 0 60px rgba(230,57,70,0.05);
  margin: 2rem auto;
  max-width: 1200px;
  box-sizing: border-box;
}

/* Section Heading */
.tools-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e63946;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: sans-serif; /* Ensuring generic font fallback */
  
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: fadeSlideFloat 0.8s ease forwards;
  animation-delay: 0.2s;
}

/* --- Tools Grid --- */
.tools-grid {
  display: grid;
  gap: 1.5rem;
  /* Using auto-fit ensures cards stretch to fill rows symmetrically */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 0 0.5rem;
  perspective: 1000px;
}

/* --- Tool Card --- */
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255,255,255,0.95);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  position: relative;
  text-decoration: none; /* Removes underline from links */
  
  /* Auto height to fit content */
  height: 100%;
  min-height: 220px;
  box-sizing: border-box;
  overflow: hidden;

  /* Animation */
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: fadeSlideFloat 0.6s ease forwards;
  /* Animation delay is now handled by JS for perfect staggering */
}

/* Keyframes: Fade + Slide + Scale */
@keyframes fadeSlideFloat {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hover Effects */
.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-6px) rotateX(2deg);
  border-color: #e63946;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15), 0 0 25px rgba(230,57,70,0.2);
  outline: none;
}

/* Glossy Overlay */
.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}
.tool-card:hover::before { opacity: 1; }

/* Gradient Border */
.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(270deg, #e63946, #d62828, #f77f00, #e63946, #d62828);
  background-size: 600% 600%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.tool-card:hover::after {
  opacity: 1;
  animation: gradientFlow 3s linear infinite;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Icon */
.tool-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
  transition: transform 0.4s ease, color 0.4s ease;
  color: #e63946;
  animation: floatIcon 3s ease-in-out infinite;
  z-index: 2;
}
.tool-card:hover .tool-card-icon {
  transform: scale(1.1) rotate(2deg);
  color: #b51724;
}
@keyframes floatIcon {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* Title & Description */
.tool-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5rem;
  font-family: sans-serif;
}
.tool-card-desc {
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
  line-height: 1.5;
  font-family: sans-serif;
}

/* --- Responsive --- */
@media (max-width: 768px)  { 
  .tools-section { padding: 2rem 1rem; }
  .tools-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } 
}

@media (max-width: 480px) {
  /* On very small screens, force 1 column for full symmetry */
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 1.2rem; min-height: auto; }
  .tool-card-icon { font-size: 2rem; }
}/* End custom CSS */