/* tool-page.css — styles for individual tool pages */

/* ── Tool Page Layout ── */
.stat-card::after, .stat-card::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.stat-item:first-child, .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.stat-item:first-child, .stat-item:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, .08);
}
.logo-text, .stat-num {
    -webkit-text-fill-color: transparent;
}
.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    border-radius: 10px;
}
.logo-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}
.intro-grid, .stat-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.logo-text {
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(to right, #0f2027, #0f3545);
    -webkit-background-clip: text;
    background-clip: text;
}
.logo-subtitle {
    font-size: 10.5px;
    font-weight: 500;
    color: #6b7280;
}
.intro-grid {
    gap: 48px;
    align-items: center;
}
.intro-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 16px;
    margin-top: 12px;
    text-align: left;
}
.intro-text p {
    font-size: 15px;
    color: #475569;
    line-height: 1.85;
    margin-bottom: 14px;
}
.stat-card {
    background: linear-gradient(to right, #0f2027, #0f3545);
    border-radius: 20px;
    padding: 36px 32px;
    gap: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(79, 70, 229, .3);
    position: relative;
}
.stat-card::before {
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(139, 92, 246, .4), transparent 70%);
}
.stat-card::after {
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(219, 39, 119, .25), transparent 70%);
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.stat-num {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #eeeaee, #eeeaee);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .65);
    line-height: 1.4;
    max-width: 110px;
}
@media (max-width:900px) {
    .intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
}
.intro-text h2 {
    font-size: 26px;
}
}@media (max-width:480px) {
    .stat-card {
    padding: 24px 16px;
}
.stat-num {
    font-size: 36px;
}
.stat-label {
    font-size: 11.5px;
}
}  !important;
    

.features-bar {
  padding: 48px 0;
  background: #fff;
  
}

.features-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.features-bar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.features-bar-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: #eef2ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
}

.features-bar-text h5 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.features-bar-text p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .features-bar-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .features-bar-grid { grid-template-columns: 1fr; }
}
.tool-page-wrapper {
  min-height: 100vh;
  background: #f8fafc;
}

.tool-page-hero {
  background: linear-gradient(135deg, #0f2027 0%, #0f3545 50%, #1a1a2e 100%);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tool-page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,.25), transparent 70%);
  pointer-events: none;
}
.tool-page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(219,39,119,.15), transparent 70%);
  pointer-events: none;
}

.tool-page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
}
.tool-page-icon svg, .tool-page-icon div {
  line-height: 1;
}

.tool-page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.tool-page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 13px;
}
.breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.3); }
.breadcrumb .current { color: rgba(255,255,255,.9); }

/* ── Tool Card ── */
.tool-card-wrapper {
  max-width: 820px;
  margin: -30px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.tool-card-main {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15,32,39,.12);
  overflow: hidden;
}

/* ── Drop Zone ── */
#drop-zone {
  border: 2.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 48px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  margin: 24px;
  background: #f8fafc;
  position: relative;
}
#drop-zone:hover, #drop-zone.dragover {
  border-color: #4f46e5;
  background: #eef2ff;
}
#drop-zone p {
  color: #64748b;
  margin: 0 0 16px;
  font-size: 15px;
}
.drop-zone-icon {
  display: block;
  margin: 0 auto 16px;
  color: #94a3b8;
}
.select-file-btn {
  background: #4f46e5;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.select-file-btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
}
.accepted-types {
  margin-top: 12px;
  font-size: 12px;
  color: #94a3b8;
}

/* ── File List ── */
#file-list {
  list-style: none;
  margin: 0 24px;
  padding: 0;
}
#file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #334155;
}
#file-list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 12px; color: #94a3b8; flex: 0 !important; }
.file-remove {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Tool Options ── */
#tool-options {
  padding: 0 24px 8px;
}
#tool-options label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 14px 0 6px;
}
#tool-options input[type="text"],
#tool-options input[type="number"],
#tool-options select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  box-sizing: border-box;
  transition: border-color .2s;
}
#tool-options input:focus,
#tool-options select:focus {
  outline: none;
  border-color: #4f46e5;
}
#tool-options input[type="range"] {
  width: 100%;
  accent-color: #4f46e5;
}
#tool-options .disclaimer {
  font-size: 12px;
  color: #64748b;
  background: #f1f5f9;
  border-left: 3px solid #4f46e5;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin: 12px 0;
}

/* ── Process Button ── */
.process-section {
  padding: 16px 24px 24px;
}
#process-btn {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  letter-spacing: 0.3px;
}
#process-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,70,229,.35);
}
#process-btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Loader ── */
.loader-container {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #eef2ff;
  border-radius: 10px;
  margin: 0 24px 16px;
}
.loader-container.active { display: flex; }
.loader {
  width: 20px; height: 20px;
  border: 3px solid #c7d2fe;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loader-text { font-size: 14px; color: #4f46e5; font-weight: 500; }

/* ── Output Area ── */
#output-area {
  margin: 0 24px 24px;
}
.download-wrap {
  text-align: center;
  padding: 28px;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 14px;
}
.download-icon {
  color: #16a34a;
  margin-bottom: 10px;
}
.download-note {
  font-size: 14px;
  color: #15803d;
  margin: 0 0 16px;
  font-weight: 500;
}
.download-link {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: all .2s;
}
.download-link:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22,163,74,.3);
}

/* ── Signature pad ── */
#signature-pad-container {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 10px;
}
#clear-signature {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  color: #475569;
  font-weight: 500;
}
#clear-signature:hover { background: #e2e8f0; }

/* ── Editor controls ── */
#editor-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
#editor-controls button {
  background: #4f46e5;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#editor-controls button:hover { background: #4338ca; }
#editor-controls input[type="color"] {
  width: 40px;
  height: 36px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
}
#editor-container {
  max-width: 100%;
  overflow: auto;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
#page-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: #475569;
}
#page-nav button {
  background: #e2e8f0;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
#page-nav button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Info Section ── */
.tool-info-section {
  max-width: 820px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.tool-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(15,32,39,.06);
}
.tool-info-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
}
.tool-info-card p, .tool-info-card li {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.75;
}
.tool-info-card ul {
  padding-left: 20px;
  margin: 10px 0 0;
}
.tool-info-card li { margin-bottom: 6px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.step-item {
  text-align: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
}
.step-num {
  width: 36px; height: 36px;
  background: #4f46e5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin: 0 auto 10px;
}
.step-item h4 { font-size: 14px; font-weight: 700; color: #1e293b; margin: 0 0 6px; }
.step-item p { font-size: 13px; color: #64748b; margin: 0; }

/* ── Other tools grid ── */
.other-tools-section {
  max-width: 820px;
  margin: 0 auto 80px;
  padding: 0 20px;
}
.other-tools-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
}
.other-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.other-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 10px rgba(15,32,39,.06);
  transition: all .2s;
  border: 1.5px solid transparent;
}
.other-tool-card:hover {
  border-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79,70,229,.15);
}
.other-tool-card .icon { font-size: 28px; }

/* ── Trust bar ── */
.tool-trust-bar {
  background: #1e293b;
  padding: 14px 0;
}
.trust-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
  padding: 0 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .tool-page-hero h1 { font-size: 1.5rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .tool-card-wrapper { margin-top: -20px; }
  #tool-options label { margin-top: 10px; }
}
