/* Toolline TXT to PDF page */

.txtpdf-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.txtpdf-hero-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(109, 40, 217, 0.24);
}

.txtpdf-hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.txtpdf-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(190,201,240,0.55);
  color: #55608f;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(113,124,171,0.08);
}

.txtpdf-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.txtpdf-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.txtpdf-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b84b2;
  margin-bottom: 8px;
}

.txtpdf-panel h2 {
  margin: 0;
  font-family: 'Syne', Arial, sans-serif;
  font-size: clamp(1.35rem, 1.2rem + 0.4vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #2d2f63;
}

.txtpdf-upload-zone {
  border: 2px dashed rgba(190,201,240,0.75);
  border-radius: 24px;
  padding: 56px 24px;
  text-align: center;
  background: linear-gradient(160deg, #f8f9ff 0%, #f0f3ff 100%);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.txtpdf-upload-zone:hover,
.txtpdf-upload-zone.drag-over {
  border-color: var(--primary);
  background: linear-gradient(160deg, #f1f4ff 0%, #e9eeff 100%);
}

.txtpdf-upload-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.txtpdf-upload-title {
  font-family: 'Syne', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #2d2f63;
  margin-bottom: 8px;
}

.txtpdf-upload-sub {
  color: #6d7395;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.txtpdf-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 10px 22px rgba(87,111,223,0.24);
}

.txtpdf-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid rgba(210,220,244,0.85);
  box-shadow: 0 10px 24px rgba(113,124,171,0.07);
}

.txtpdf-file-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.txtpdf-file-info .name {
  font-weight: 800;
  color: #2d2f63;
}

.txtpdf-file-info .size {
  color: #7a84b1;
  font-weight: 700;
}

.txtpdf-file-info .remove {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 14px;
  background: rgba(111,138,236,0.08);
  color: #5e648b;
  cursor: pointer;
  font-size: 1rem;
}

.txtpdf-controls {
  display: grid;
  gap: 14px;
}

.txtpdf-control-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid rgba(210,220,244,0.85);
  box-shadow: 0 10px 24px rgba(113,124,171,0.07);
}

.txtpdf-label {
  min-width: 110px;
  font-weight: 800;
  color: #5e648b;
}

.txtpdf-value {
  min-width: 48px;
  font-weight: 800;
  color: var(--primary);
}

.txtpdf-range {
  flex: 1;
  accent-color: var(--primary);
}

.txtpdf-select,
.txtpdf-title-input {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(190,201,240,0.6);
  background: #fff;
  color: var(--text);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
}

.txtpdf-select:focus,
.txtpdf-title-input:focus {
  border-color: var(--primary);
}

.txtpdf-title-input {
  flex: 1;
}

.txtpdf-preview-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid rgba(210,220,244,0.85);
  box-shadow: 0 10px 24px rgba(113,124,171,0.07);
}

.txtpdf-preview-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b84b2;
  font-weight: 800;
  margin-bottom: 10px;
}

.txtpdf-preview-content {
  min-height: 120px;
  white-space: pre-wrap;
  color: #596389;
  font-size: 0.95rem;
  line-height: 1.65;
}

.txtpdf-actions,
.txtpdf-result-actions {
  margin-top: 18px;
}

.txtpdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.txtpdf-btn-primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 12px 24px rgba(87,111,223,0.24);
}

.txtpdf-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(87,111,223,0.30);
}

.txtpdf-btn-secondary {
  border: 1.5px solid rgba(190,201,240,0.65);
  background: #fff;
  color: #55608f;
  box-shadow: 0 8px 18px rgba(113,124,171,0.07);
}

.txtpdf-btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.txtpdf-result {
  display: none;
  text-align: center;
  padding: 42px 24px;
  border-radius: 28px;
  background: linear-gradient(160deg, #f0fff8 0%, #e8fef5 100%);
  border: 1px solid rgba(30,200,160,0.22);
  box-shadow: 0 18px 40px rgba(20,185,155,0.10);
}

.txtpdf-result.show {
  display: block;
}

.txtpdf-result-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.txtpdf-result h3 {
  margin: 0 0 10px;
  font-family: 'Syne', Arial, sans-serif;
  font-size: 1.7rem;
  color: #1f7d69;
}

.txtpdf-result p {
  margin: 0;
  color: #4e7b72;
}

.txtpdf-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  margin-top: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1fd3b0 0%, #10b89a 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(20,185,155,0.24);
}

.txtpdf-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.txtpdf-related-card {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid rgba(210,220,244,0.85);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(113,124,171,0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.txtpdf-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(130,160,255,0.55);
  box-shadow: 0 16px 30px rgba(90,132,255,0.12);
}

.txtpdf-related-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef3ff 0%, #dfe8ff 100%);
  font-size: 1.15rem;
}

.txtpdf-related-name {
  font-weight: 800;
  color: #2d2f63;
  line-height: 1.25;
}

.txtpdf-footer {
  width: calc(100% - 24px);
  margin: 0 12px 32px;
  padding: 26px 28px;
  border-radius: 30px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(210,220,244,0.75);
  box-shadow: 0 12px 28px rgba(113,124,171,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #6d7395;
}

.txtpdf-footer p {
  margin: 0;
  font-weight: 700;
}

.txtpdf-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.txtpdf-footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .txtpdf-related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .txtpdf-control-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .txtpdf-label {
    min-width: 0;
  }

  .txtpdf-range,
  .txtpdf-select,
  .txtpdf-title-input {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .txtpdf-related-grid {
    grid-template-columns: 1fr;
  }

  .txtpdf-footer {
    padding: 22px 20px;
  }
}
