/* tools-pro.css - Modern UI components for Power Generators */
:root {
  --pro-emerald: #10b981;
  --pro-emerald-bg: rgba(16, 185, 129, 0.1);
  --pro-blue: #3b82f6;
  --pro-indigo: #4f46e5;
  --pro-slate: #0f172a;
}

/* Mode Selector Tabs */
.pro-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  background: #f1f3f9;
  padding: 6px;
  border-radius: var(--r12);
  border: 1px solid var(--line);
}
.pro-tab-btn {
  flex: 1;
  min-width: 130px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: var(--r10);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pro-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}
.pro-tab-btn.active {
  background: #ffffff;
  color: #4f46e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Display & Result Card */
.pro-display-card {
  background: #0f172a;
  color: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--r12);
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
  position: relative;
}
.pro-output-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.45rem;
  font-weight: 700;
  color: #34d399;
  word-break: break-all;
  user-select: all;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
}

/* Entropy & Strength Meter */
.entropy-wrap {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #334155;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.entropy-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #94a3b8;
}
.entropy-bar-track {
  height: 6px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
}
.entropy-bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 999px;
}
.entropy-details {
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Option Grid */
.pro-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 1rem;
}
.pro-checkbox-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  padding: 10px 14px;
  border-radius: var(--r10);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.pro-checkbox-pill input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Slider component */
.slider-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.slider-control input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}
.slider-val-badge {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 8px;
  min-width: 42px;
  text-align: center;
}

/* Trust & Privacy Badge */
.privacy-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 10px 14px;
  border-radius: var(--r10);
  font-size: 0.85rem;
  margin: 1.25rem 0;
}
.privacy-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: #059669;
}

/* Canvas drawing pad (Signature) */
.canvas-wrapper {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--r12);
  position: relative;
  overflow: hidden;
  touch-action: none;
  margin-bottom: 1rem;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.04);
}
.canvas-wrapper canvas {
  display: block;
  width: 100%;
  height: 220px;
  cursor: crosshair;
}
.canvas-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #94a3b8;
  pointer-events: none;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Signature Type Mode */
.sig-font-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 1.25rem;
}
.sig-font-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: var(--r10);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sig-font-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}
.sig-font-card.selected {
  border-color: var(--accent);
  background: #f5f3ff;
  box-shadow: 0 0 0 2px var(--accent);
}
.sig-sample-text {
  font-size: 1.75rem;
  color: #111827;
}

/* Color Picker Row */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s;
}
.color-swatch.active {
  border-color: var(--text);
  transform: scale(1.15);
}
.swatch-blue { background: #003399; }
.swatch-black { background: #111827; }
.swatch-navy { background: #0f172a; }
.swatch-red { background: #dc2626; }

/* Barcode Display Box */
.barcode-preview-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r12);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.barcode-preview-box svg, .barcode-preview-box canvas {
  max-width: 100%;
  height: auto;
}

/* Invoice Styles */
.invoice-paper {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r12);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.invoice-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.invoice-table th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.invoice-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.invoice-input-ghost {
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  padding: 4px 6px;
  border-radius: 4px;
  width: 100%;
}
.invoice-input-ghost:hover, .invoice-input-ghost:focus {
  border-color: var(--accent);
  background: #f8fafc;
}
.invoice-summary-table {
  margin-left: auto;
  width: 280px;
  margin-top: 1rem;
}
.invoice-summary-table td {
  padding: 6px 12px;
}
.invoice-summary-table tr.total-row {
  font-weight: 800;
  font-size: 1.15rem;
  border-top: 2px solid var(--text);
}

/* Toast notification */
.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 100;
}
.copy-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* E-E-A-T Educational Tables & Guides */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  background: #fff;
  border-radius: var(--r10);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.spec-table th, .spec-table td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
}
.spec-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text);
}

/* Related Tools Pill Cards */
.related-cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
}
.related-cluster-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r10);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s;
}
.related-cluster-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.related-cluster-card h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  color: var(--accent);
}
.related-cluster-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
