/* ─────────────────────────────────────────────────────────────
   Excel to CSV Converter Tool — Page Styles
   Static file: static/css/tool-excel-converter.css
────────────────────────────────────────────────────────────── */

.tool-page {
  padding: 48px 0 80px;
  min-height: 80vh;
}
.tool-hero {
  text-align: center;
  margin-bottom: 48px;
}
.tool-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.2;
}
.tool-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.35);
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
/* Inline mini CTA */
.mini-cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.22);
  border-radius: 999px;
  padding: 8px 20px;
  margin: -28px auto 28px;
  max-width: 580px;
  flex-wrap: wrap;
}
.mini-cta-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.mini-cta-text strong { color: var(--text-primary); font-weight: 700; }
.mini-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary);
  padding: 5px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s, transform .2s;
  line-height: 1;
}
.mini-cta-link:hover { opacity: .88; transform: scale(1.03); }
/* Supported formats bar */
.format-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.format-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.format-chip .chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
/* Upload area */
.upload-area {
  border: 2px dashed rgba(124,58,237,.4);
  border-radius: 20px;
  background: rgba(124,58,237,.04);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
  position: relative;
  margin-bottom: 24px;
}
.upload-area:hover, .upload-area.dragover {
  border-color: #7c3aed;
  background: rgba(124,58,237,.09);
  transform: scale(1.005);
}
.upload-area input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon {
  width: 56px; height: 56px;
  background: rgba(124,58,237,.15);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: #a78bfa;
}
.upload-area h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.upload-area p { color: var(--text-muted); font-size: .88rem; margin: 0; }
.upload-area .or-divider { color: var(--text-muted); font-size: .8rem; margin: 12px 0; }
.browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .87rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  pointer-events: none;
}
/* Options panel */
.options-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.opt-group label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.opt-select, .opt-input {
  width: 100%;
  padding: 9px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: .87rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.opt-select:focus, .opt-input:focus {
  border-color: rgba(124,58,237,.6);
}
.opt-select option { background: #1a1a2e; }
.opt-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.opt-checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer; accent-color: #7c3aed;
}
.opt-checkbox-row span { font-size: .87rem; color: var(--text-muted); }

/* File list */
.file-list {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  transition: border-color .2s;
}
.file-item.success { border-color: rgba(16,185,129,.4); }
.file-item.error { border-color: rgba(239,68,68,.4); }
.file-item.processing { border-color: rgba(124,58,237,.4); }
.file-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.file-icon.xlsx { background: rgba(16,185,129,.15); color: #34d399; }
.file-icon.xls  { background: rgba(16,185,129,.1);  color: #6ee7b7; }
.file-icon.csv  { background: rgba(59,130,246,.15); color: #93c5fd; }
.file-icon.tsv  { background: rgba(245,158,11,.15); color: #fcd34d; }
.file-icon.ods  { background: rgba(124,58,237,.15); color: #a78bfa; }
.file-icon.txt  { background: rgba(156,163,175,.15); color: #9ca3af; }
.file-info { flex: 1; min-width: 0; }
.file-info .file-name {
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-info .file-meta {
  font-size: .76rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.file-status {
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.file-status.success { color: #34d399; }
.file-status.error { color: #f87171; }
.file-status.processing { color: #a78bfa; }
.file-status.ready { color: var(--text-muted); }
.file-download-btn {
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid rgba(16,185,129,.4);
  background: rgba(16,185,129,.1);
  color: #34d399;
  font-size: .77rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  flex-shrink: 0;
}
.file-download-btn:hover { background: rgba(16,185,129,.2); }
.file-remove-btn {
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  flex-shrink: 0;
}
.file-remove-btn:hover { border-color: rgba(239,68,68,.4); color: #f87171; }

/* Preview table */
.preview-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  display: none;
}
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.preview-header-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-header-label .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient-primary);
}
.preview-table-wrap {
  overflow-x: auto;
  max-height: 300px;
  overflow-y: auto;
}
.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.preview-table th {
  background: rgba(124,58,237,.1);
  color: #a78bfa;
  font-weight: 700;
  padding: 8px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.preview-table td {
  padding: 7px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-table tr:hover td { background: rgba(255,255,255,.02); }

/* Action buttons */
.action-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.btn-convert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.btn-convert:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,58,237,.55);
}
.btn-convert:disabled {
  opacity: .5;
  pointer-events: none;
}
.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(255,255,255,.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
}
.btn-secondary-action:hover {
  background: rgba(124,58,237,.12);
  border-color: rgba(124,58,237,.4);
  color: #a78bfa;
}

/* Features + SEO */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 48px 0;
}
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: rgba(124,58,237,.4); transform: translateY(-3px); }
.feature-card i { color: #a78bfa; margin-bottom: 10px; display: block; }
.feature-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.seo-content-block {
  max-width: 780px;
  margin: 0 auto;
  padding-top: 28px;
}
.seo-content-block h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 52px 0 24px;
  padding-left: 18px;
  position: relative;
  letter-spacing: -.02em;
}
.seo-content-block h2::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(to bottom, #7c3aed, #a78bfa);
}
.seo-content-block h2:first-of-type { margin-top: 12px; }
.seo-content-block h3 {
  font-size: .97rem;
  font-weight: 700;
  color: #c4b5fd;
  margin: 28px 0 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: .01em;
}
.seo-content-block h3::before {
  content: '';
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  box-shadow: 0 0 8px rgba(124,58,237,.5);
  flex-shrink: 0;
}
.seo-content-block p {
  color: rgba(255,255,255,.62);
  line-height: 1.85;
  margin-bottom: 14px;
  font-size: .94rem;
}
.seo-content-block ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.seo-content-block ul li {
  position: relative;
  padding-left: 22px;
  color: rgba(255,255,255,.62);
  line-height: 1.8;
  font-size: .94rem;
}
.seo-content-block ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  box-shadow: 0 0 6px rgba(124,58,237,.4);
}
.seo-content-block ul li strong { color: var(--text-primary); font-weight: 700; }
.seo-content-block p strong { color: var(--text-primary); font-weight: 700; }
.seo-content-block p a { color: #a78bfa; text-underline-offset: 3px; }
.seo-content-block p a:hover { color: #c4b5fd; }
.seo-content-block p code,
.seo-content-block li code {
  background: rgba(124,58,237,.13);
  border: 1px solid rgba(124,58,237,.22);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: .82rem;
  color: #c4b5fd;
  font-family: 'Courier New', monospace;
}

/* ── FAQ Accordion ─────────────────────────────────────────── */
.faq-list { 
  margin-top: 24px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(10px);
}
.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(17, 24, 39, 0.6);
}
.faq-item.open {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(17, 24, 39, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  user-select: none;
  transition: all 0.2s;
}
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.03);
  line-height: 1;
}
.faq-item.open .faq-icon {
  border-color: var(--accent-purple);
  color: #fff;
  background: var(--accent-purple);
  transform: rotate(45deg);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 28px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-answer { 
  max-height: 800px; 
  padding: 0 28px 28px; 
}
.faq-answer code {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .83rem;
  font-family: 'Courier New', monospace;
}
.tool-cta {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}
.tool-cta h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.tool-cta p { color: var(--text-muted); margin-bottom: 24px; }
