/* Created At: 2026-07-08T08:37:00Z */

/* ─── COLOR VARIABLES OVERRIDES ─── */
:root {
  --tool-gold: #f59e0b;
  --tool-gold-soft: rgba(245, 158, 11, 0.12);
  --tool-gold-glow: rgba(245, 158, 11, 0.25);
  --tool-gold-hover: #d97706;
}

body.light {
  --tool-gold: #d97706;
  --tool-gold-soft: rgba(217, 119, 6, 0.08);
  --tool-gold-glow: rgba(217, 119, 6, 0.18);
  --tool-gold-hover: #b45309;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 100px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* ─── LAYOUT GRID ─── */
.tool-layout {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── SEGMENTED MODE SELECTOR ─── */
.mode-toggle {
  display: flex;
  width: max-content;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.mode-toggle::-webkit-scrollbar {
  display: none;
}

.mode-indicator {
  position: absolute;
  top: 4px;
  background: var(--tool-gold-soft);
  border: 1px solid var(--tool-gold-glow);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12);
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
  pointer-events: none;
}

.mode-btn {
  border: none;
  background: transparent !important;
  color: var(--text-3);
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.2s;
  position: relative;
  z-index: 1;
  box-shadow: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}

.mode-btn.active {
  color: var(--tool-gold) !important;
  font-weight: 700;
}

/* ─── CUSTOM SLIDERS ─── */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  transition: background 0.3s ease;
}

body.light input[type="range"] {
  background: rgba(0, 0, 0, 0.08);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tool-gold);
  cursor: pointer;
  box-shadow: 0 0 10px var(--tool-gold-glow);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ─── SWITCH TOGGLE ─── */
.switch, .fg label.switch {
  position: relative;
  display: inline-block !important;
  width: 44px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  margin-bottom: 0 !important;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.switch input:checked + .switch-slider {
  background-color: var(--tool-gold);
  border-color: var(--tool-gold-soft);
}

.switch input:checked + .switch-slider:before {
  transform: translateX(20px);
}

body.light .switch-slider {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ─── OUTPUT CONTENT TEXT AREA ─── */
.output-text-area-wrapper {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-top: 14px;
  box-sizing: border-box;
  overflow: hidden;
}

body.light .output-text-area-wrapper {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.05);
}

.output-text-area-content {
  min-height: 240px;
  max-height: 480px;
  overflow-y: auto;
  padding: 16px 20px;
  font-family: 'Figtree', sans-serif;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-2);
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  box-sizing: border-box;
}

body.light .output-text-area-content {
  color: #334155;
}

/* Scrollbar customization */
.output-text-area-content::-webkit-scrollbar {
  width: 8px;
}

.output-text-area-content::-webkit-scrollbar-track {
  background: transparent;
}

.output-text-area-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.output-text-area-content::-webkit-scrollbar-thumb:hover {
  background: var(--tool-gold);
}

body.light .output-text-area-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
}

body.light .output-text-area-content::-webkit-scrollbar-thumb:hover {
  background: var(--tool-gold-hover);
}

/* Inline formatting tags highlight inside content */
.output-text-area-content strong {
  font-weight: 700;
  color: var(--text);
}

body.light .output-text-area-content strong {
  color: #0f172a;
}

.output-text-area-content em {
  font-style: italic;
  color: var(--text);
}

body.light .output-text-area-content em {
  color: #0f172a;
}

.output-text-area-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--tool-gold);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

body.light .output-text-area-content code {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.02);
  color: var(--tool-gold-hover);
}

.output-text-area-content h2, .output-text-area-content h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
}

body.light .output-text-area-content h2,
body.light .output-text-area-content h3 {
  color: #0f172a;
}

.output-text-area-content h2 {
  font-size: 1.3em;
}

.output-text-area-content h3 {
  font-size: 1.15em;
}

.output-text-area-content ul {
  padding-left: 24px;
  margin-top: 10px;
  margin-bottom: 10px;
  list-style-type: square;
}

.output-text-area-content li {
  margin-bottom: 6px;
}

/* ─── FORMAT MODE SELECTORS ─── */
.history-toggle-badge {
  outline: none;
  font-family: 'Figtree', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
  background: transparent !important;
  color: var(--text-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.2s ease;
  box-shadow: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-toggle-badge.active {
  background: var(--tool-gold-soft) !important;
  color: var(--tool-gold) !important;
  border-color: var(--tool-gold-glow) !important;
}

.history-toggle-badge:hover {
  border-color: var(--tool-gold) !important;
  color: var(--tool-gold) !important;
}

body.light .history-toggle-badge {
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
}

body.light .history-toggle-badge.active {
  background: var(--tool-gold-soft) !important;
  color: var(--tool-gold-hover) !important;
  border-color: var(--tool-gold) !important;
}

/* ─── SAVED SESSION VAULT LOGS ─── */
.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.history-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.light .history-row {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light .history-row:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

.history-text {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  word-break: break-all;
  user-select: all;
  margin-right: 12px;
}

body.light .history-text {
  color: #334155;
}

.history-copy-badge {
  outline: none;
  font-family: 'Figtree', sans-serif;
  color: var(--tool-gold) !important;
  background: var(--tool-gold-soft) !important;
  border: 1px solid var(--tool-gold-glow) !important;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.history-copy-badge:hover {
  background: var(--tool-gold) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px var(--tool-gold-glow);
}

body.light .history-copy-badge {
  color: var(--tool-gold) !important;
  background: var(--tool-gold-soft) !important;
  border-color: var(--tool-gold-glow) !important;
}

body.light .history-copy-badge:hover {
  background: var(--tool-gold) !important;
  color: #ffffff !important;
}

.history-delete-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  box-shadow: none !important;
}

.history-delete-btn:hover {
  opacity: 1;
}

/* ─── ANALYTICS INFOS GRID ─── */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.analytic-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-sizing: border-box;
}

.analytic-item.full-width {
  grid-column: 1 / -1;
}

body.light .analytic-item {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.04);
}

.analytic-title {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.light .analytic-title {
  color: #64748b;
}

.analytic-val {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

body.light .analytic-val {
  color: #0f172a;
}

.analytic-val.font-large {
  font-size: 22px;
}

/* ─── LIGHT MODE ADAPTATION ─── */
body.light .mode-toggle {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light .mode-indicator {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light .mode-btn {
  color: #556b82;
}

body.light .mode-btn.active {
  color: var(--tool-gold-hover) !important;
}

/* ─── PREMIUM CTA BUTTONS (Gold) ─── */
.rb-btn-primary {
  background: var(--tool-gold-soft) !important;
  border-color: var(--tool-gold-glow) !important;
  color: var(--tool-gold) !important;
}

.rb-btn-primary:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: var(--tool-gold-hover) !important;
}

body.light .rb-btn-primary {
  background: var(--tool-gold-soft) !important;
  border-color: var(--tool-gold-glow) !important;
  color: var(--tool-gold) !important;
}

body.light .rb-btn-primary:hover {
  background: rgba(217, 119, 6, 0.12) !important;
  color: var(--tool-gold-hover) !important;
}

/* ─── FILTER OPTION CARDS ─── */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.filter-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.filter-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  color: var(--text);
}

body.light .filter-card {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.06);
  color: #334155;
}

body.light .filter-card:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #0f172a;
}

.filter-card.active {
  background: var(--tool-gold-soft) !important;
  border: 1.5px solid var(--tool-gold-glow) !important;
  color: var(--tool-gold) !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

body.light .filter-card.active {
  background: #ffffff !important;
  border-color: var(--tool-gold) !important;
  color: var(--tool-gold-hover) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* ─── NESTED DOCUMENT STYLES FOR OUTPUT AREA ─── */
.output-text-area-content blockquote {
  border-left: 3px solid var(--tool-gold);
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  color: var(--text-2);
}

body.light .output-text-area-content blockquote {
  color: #475569;
}

.output-text-area-content pre {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

body.light .output-text-area-content pre {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: #334155;
}

.output-text-area-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13.5px;
}

.output-text-area-content th,
.output-text-area-content td {
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  text-align: left;
  color: var(--text-2);
}

body.light .output-text-area-content th,
body.light .output-text-area-content td {
  border-color: rgba(0, 0, 0, 0.06);
  color: #334155;
}

.output-text-area-content th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 700;
  color: var(--text);
}

body.light .output-text-area-content th {
  background: rgba(0, 0, 0, 0.02);
  color: #0f172a;
}
