/**
 * Fijate Tools - Decodificador de símbolos cosméticos (PAO), caducidad e incompatibilidades
 * Estándar canónico, soporte tema oscuro / claro, 100 % responsivo.
 */

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Tokens corporativos tema oscuro por defecto */
  --bg-primary: #0b0f17;
  --bg-card: #131b2e;
  --bg-card-header: #19243d;
  --bg-surface: #131b26;
  --bg-surface-elevated: #1a2433;
  --bg-input: #0f172a;
  --bg-subtle: #1e293b;
  --bg-hover: #273549;

  --border-color: #1e293b;
  --border-subtle: #243247;
  --border-focus: #38bdf8;

  --primary-color: #38bdf8;
  --primary-light: rgba(56, 189, 248, 0.14);
  --accent-emerald: #22c55e;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #a855f7;

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 32px rgba(0, 0, 0, 0.45);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-header: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-input: #f1f5f9;
  --bg-subtle: #e2e8f0;
  --bg-hover: #e2e8f0;

  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-focus: #0284c7;

  --primary-color: #0284c7;
  --primary-light: rgba(2, 132, 199, 0.12);
  --accent-emerald: #16a34a;
  --accent-amber: #d97706;
  --accent-red: #dc2626;
  --accent-purple: #7e22ce;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-subtle: #64748b;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 24px rgba(15, 23, 42, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-main);
  margin: 0;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.hero-title,
.section-title {
  font-family: var(--font-heading);
}

.mono,
code {
  font-family: var(--font-mono);
}

/* Contención y layout principal */
.tool-layout {
  max-width: 1200px;
  width: 100%;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* Hero introductorio */
.cosmetic-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.hero-badge-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.hero-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.hero-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.kpi-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
}

.kpi-value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.kpi-label {
  display: block;
  font-size: 0.81rem;
  color: var(--text-subtle);
  line-height: 1.35;
}

/* Navegación por pestañas */
.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tab-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Tarjetas principales */
.card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  margin: 0 0 0.35rem;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
}

.panel-lead {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  color: var(--text-subtle);
}

/* Rejilla de símbolos cosméticos */
.symbols-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.symbol-card-btn {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 112px;
  padding: 0.8rem 0.55rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.symbol-card-btn:hover {
  transform: translateY(-2px);
  border-color: var(--symbol-color, var(--primary-color));
}

.symbol-card-btn.active {
  border-color: var(--symbol-color, var(--primary-color));
  background: var(--bg-card-header);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.symbol-short-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.symbol-short-sub {
  font-size: 0.72rem;
  color: var(--text-subtle);
  line-height: 1.2;
}

.symbol-risk-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.dot-safe { background: var(--accent-emerald); }
.dot-caution { background: var(--accent-amber); }
.dot-avoid { background: var(--accent-red); }

/* Inspector detallado del símbolo */
.symbol-inspector {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.inspector-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.inspector-title-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1 1 220px;
}

.inspector-title-group > div:last-child {
  min-width: 0;
  flex: 1;
}

.inspector-symbol-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inspector-code-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.inspector-reg {
  margin: 0.25rem 0 0;
  font-size: 0.83rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.safety-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.safety-pill.safe,
.safety-pill.compatible {
  background: rgba(34, 197, 94, 0.14);
  color: var(--accent-emerald);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.safety-pill.caution {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.safety-pill.avoid,
.safety-pill.incompatible,
.safety-pill.expired {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.38);
}

.inspector-summary {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.inspector-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detail-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.detail-block.full-span {
  grid-column: 1 / -1;
}

.detail-block h4 {
  margin: 0 0 0.55rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
}

.detail-block p,
.detail-block li {
  font-size: 0.89rem;
  color: var(--text-muted);
  margin: 0;
}

.detail-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Formularios y selects canónicos */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.form-group label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-main);
}

.select-field,
.input-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-input);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.93rem;
}

.select-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.select-field::-ms-expand {
  display: none;
}

[data-theme="light"] .select-field,
[data-theme="light"] .input-field {
  background-color: #f8fafc;
  color: #0f172a;
}

.select-field option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

[data-theme="light"] .select-field option {
  background-color: #ffffff;
  color: #0f172a;
}

.select-field:focus,
.input-field:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Botones de preset rápido */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.chip-btn {
  appearance: none;
  -webkit-appearance: none;
  min-height: 36px;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.81rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.chip-btn:hover,
.chip-btn.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-light);
}

/* Caja de resultado (Caducidad y Compatibilidad) */
.verdict-box {
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input);
}

.verdict-box.safe,
.verdict-box.compatible {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.verdict-box.caution {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
}

.verdict-box.avoid,
.verdict-box.incompatible,
.verdict-box.expired {
  border-color: rgba(239, 68, 68, 0.48);
  background: rgba(239, 68, 68, 0.09);
}

.verdict-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.verdict-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
}

.verdict-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0;
}

.metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}

.metric-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-subtle);
  margin-bottom: 0.15rem;
}

.metric-val {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-main);
}

.verdict-text {
  margin: 0 0 0.6rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.verdict-tip {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-main);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.context-alert-banner {
  margin-top: 0.75rem;
  padding: 0.78rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.12);
  color: var(--text-main);
  font-size: 0.88rem;
}

/* Buscador INCI */
.search-bar-box {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.search-bar-box .input-field {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
}

.btn-secondary {
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.89rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.inci-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.inci-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.inci-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem 0.65rem;
  min-width: 0;
}

.inci-card-top > div {
  min-width: 0;
  flex: 1 1 170px;
}

.inci-name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--primary-color);
  overflow-wrap: anywhere;
}

.inci-common {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

.inci-role {
  font-size: 0.83rem;
  color: var(--text-subtle);
  margin: 0;
}

.inci-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Tabla comparativa */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.cosmetics-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.88rem;
}

.cosmetics-table th,
.cosmetics-table td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

.cosmetics-table th {
  background: var(--bg-card-header);
  color: var(--text-main);
  font-weight: 700;
}

.cosmetics-table tr:hover td {
  background: var(--bg-input);
}

/* Quiz interactivo */
.quiz-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.quiz-question-text {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quiz-option-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 46px;
  text-align: left;
  padding: 0.75rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.93rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.quiz-option-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  background-color: var(--bg-card-header);
}

.quiz-option-btn:disabled {
  background-color: var(--bg-input);
  color: var(--text-muted);
  opacity: 0.84;
  cursor: default;
}

.quiz-option-btn.correct,
.quiz-option-btn.correct:disabled {
  border-color: var(--accent-emerald);
  background-color: rgba(34, 197, 94, 0.16);
  color: var(--text-main);
  opacity: 1;
}

.quiz-option-btn.wrong,
.quiz-option-btn.wrong:disabled {
  border-color: var(--accent-red);
  background-color: rgba(239, 68, 68, 0.16);
  color: var(--text-main);
  opacity: 1;
}

[data-theme="light"] .quiz-option-btn:disabled {
  background-color: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
  opacity: 0.9;
}

[data-theme="light"] .quiz-option-btn.correct,
[data-theme="light"] .quiz-option-btn.correct:disabled {
  background-color: #dcfce7;
  color: #14532d;
  border-color: #16a34a;
  opacity: 1;
}

[data-theme="light"] .quiz-option-btn.wrong,
[data-theme="light"] .quiz-option-btn.wrong:disabled {
  background-color: #fee2e2;
  color: #7f1d1d;
  border-color: #dc2626;
  opacity: 1;
}

.quiz-feedback {
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  font-size: 0.91rem;
  color: var(--text-muted);
}

.btn-primary {
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  background: var(--primary-color);
  color: #0b0f17;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.85rem;
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
}

/* Guía educativa y FAQ */
.seo-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.seo-guide-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--text-main);
}

.seo-guide-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0 0 0.85rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  overflow: hidden;
}

.faq-item summary {
  padding: 0.9rem 1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--primary-color);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 1rem 0.95rem;
  color: var(--text-muted);
  font-size: 0.91rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

/* Responsive móvil y tablet */
@media (max-width: 960px) {
  .symbols-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inspector-details-grid,
  .form-grid-2,
  .form-grid-3,
  .verdict-metrics-row,
  .inci-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tool-layout {
    margin: 1rem auto 2rem;
    padding: 0 0.75rem;
  }

  .cosmetic-hero,
  .card-main,
  .seo-guide-card {
    padding: 1rem;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
  }

  .symbols-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-tabs {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .search-bar-box {
    flex-direction: column;
  }

  .search-bar-box .input-field,
  .btn-secondary,
  .btn-primary {
    width: 100%;
  }
}
