

/* =====================
   DARK MODE – GLOBAL
===================== */
body.dark {
  --bg: #0f172a;
  --box: #020617;
  --text: #e5e7eb;
  --accent: #a5b4fc;
  --muted: #94a3b8;
}

body.dark{
  background:transparent;
  color:#e5e7eb;
}

/* Cards / Outputs */
body.dark .output-box{
  background:#020617;
  color:#e5e7eb;
  box-shadow:0 2px 8px rgba(0,0,0,.6);
}

/* Inputs */
body.dark textarea,
body.dark input[type="text"]{
  background:#020617;
  color:#e5e7eb;
  border:1px solid #334155;
}

/* Buttons */
body.dark button{
  background:linear-gradient(135deg,#6366f1,#22c55e);
  color:#fff;
}

body.dark .container {
  background: var(--box);
  border-color: #334155;
}

body.dark .results {
  background: #020617;
  border-color: #334155;
}

body.dark textarea {
  background: #020617;
  color: var(--text);
}

body.dark .metric-title {
  color: var(--accent);
}

body.dark h1,
body.dark h2,
body.dark h3 {
  color: var(--text);
}


/* Header */
body.dark .tool-title{
  color:#f9fafb;
}
body.dark .theme-toggle{
  color:#e5e7eb;
}
body.dark .tool-title { 
color:#f9fafb; 
    
}

/* =====================
   DARK MODE – TOOL CONTAINER
===================== */

body.dark .tool-container{
  background:#020617;
  border:1px solid #334155;
  color:#e5e7eb;
}

/* Subtitle מעל הכלי */
body.dark .subtitle{
  color:#cbd5f5;
}

/* Labels */
body.dark .tool-container label{
  color:#e5e7eb;
}

/* Inputs & Selects */
body.dark .tool-container input,
body.dark .tool-container select{
  background:#0f172a;
  color:#f9fafb;
  border:1px solid #334155;
}

body.dark .tool-container input::placeholder{
  color:#94a3b8;
}

/* Field info */
body.dark .field-info{
  color:#94a3b8;
}

/* Button */
body.dark .tool-container button{
  background:linear-gradient(135deg,#6366f1,#22c55e);
  color:#ffffff;
}

body.dark .tool-container button:hover{
  filter:brightness(1.1);
}

/* Result box */
body.dark .result-box{
  background:#020617;
  border:1px solid #334155;
  color:#e5e7eb;
}

/* Graph legend text */
body.dark .graph-legend{
  color:#cbd5f5;
}

/* Canvas wrapper */
body.dark .graph-wrap{
  background:#020617;
  border-radius:10px;
}

/* Small muted text */
body.dark #vizNote{
  color:#94a3b8;
}

/* =====================
   DARK MODE – CORE
===================== */
body.dark {
  background:#0f172a;
  color:#e5e7eb;
}

/* =====================
   PANELS / CONTAINERS
===================== */
body.dark .tool-container,
body.dark .panel,
body.dark .container {
  background:#020617;
  color:#e5e7eb;
  border:1px solid #1e293b;
}

/* =====================
   HEADINGS & TEXT
===================== */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark strong {
  color:#f9fafb;
}

body.dark .subtitle,
body.dark .small,
body.dark .field-info,
body.dark .tooltip,
body.dark .level,
body.dark .timeline-legend {
  color:#94a3b8;
}

/* =====================
   LABELS
===================== */
body.dark label {
  color:#cbd5f5;
}

/* =====================
   INPUTS / SELECTS / TEXTAREA
===================== */
body.dark input,
body.dark select,
body.dark textarea {
  background:#020617;
  color:#e5e7eb;
  border:1px solid #334155;
}

body.dark input::placeholder,
body.dark textarea::placeholder {
  color:#64748b;
}

/* Range sliders */
body.dark input[type="range"] {
  accent-color:#6366f1;
}

/* =====================
   BUTTONS
===================== */
body.dark .btn,
body.dark button {
  background:linear-gradient(135deg,#6366f1,#22c55e);
  color:#ffffff;
}

body.dark .btn.secondary,
body.dark button.secondary {
  background:#020617;
  border:1px solid #334155;
  color:#e5e7eb;
}

body.dark .btn:hover,
body.dark button:hover {
  filter:brightness(1.1);
}

/* =====================
   RESULT / BOXES
===================== */
body.dark .result-box,
body.dark .results,
body.dark .export-area {
  background:#020617;
  border:1px solid #1e293b;
  color:#e5e7eb;
}

/* =====================
   LISTS / INLINE LISTS
===================== */
body.dark .list-inline div {
  background:#020617;
  border:1px solid #334155;
  color:#e5e7eb;
}

/* =====================
   HR / DIVIDERS
===================== */
body.dark hr {
  border-top:1px solid #1e293b;
}

/* =====================
   PREVIEW / STAGES
===================== */
body.dark .preview-stage,
body.dark .timeline {
  background:#020617;
  border:1px solid #1e293b;
}

/* =====================
   CANVAS WRAPS
===================== */
body.dark canvas {
  background:#020617;
  border-radius:8px;
}

/* =====================
   SCROLLBARS (Webkit)
===================== */
body.dark textarea::-webkit-scrollbar-track {
  background:#020617;
}

body.dark textarea::-webkit-scrollbar-thumb {
  background:#475569;
}

body.dark textarea::-webkit-scrollbar-thumb:hover {
  background:#64748b;
}
/* =====================
   DARK MODE – LAYOUT GRID
===================== */

body.dark .layout-grid{
  background:transparent;
}

/* =====================
   PREVIEW AREA
===================== */

body.dark .preview-box{
  background:#020617;
  border:1px solid #1e293b;
}

body.dark .preview-container{
  background:#020617;
  border:1px solid #1e293b;
}

body.dark .preview{
  background:#0f172a;
  color:#e5e7eb;
  border:1px dashed #334155;
}

/* Code preview */
body.dark pre,
body.dark #cssCode{
  background:#020617;
  color:#e5e7eb;
  border:1px solid #1e293b;
}

/* =====================
   STRIPS / BORDERS
===================== */

body.dark .strip{
  opacity:0.85;
}

/* =====================
   ACTION BUTTONS (MIDDLE)
===================== */

body.dark .buttons-box{
  background:#020617;
  border:1px solid #1e293b;
}

body.dark .buttons-box button{
  background:#020617;
  border:1px solid #334155;
  color:#e5e7eb;
}

body.dark .buttons-box button:hover{
  background:#1e293b;
}

/* =====================
   TOOLS PANEL
===================== */

body.dark .tools-box{
  background:#020617;
  border:1px solid #1e293b;
}

/* Cards */
body.dark .card{
  background:#0f172a;
  border:1px solid #1e293b;
  color:#e5e7eb;
}

/* =====================
   INPUTS / SELECTS
===================== */

body.dark .tools-box input,
body.dark .tools-box select{
  background:#020617;
  color:#e5e7eb;
  border:1px solid #334155;
}

body.dark .tools-box input::placeholder{
  color:#64748b;
}

/* Color / Pattern palettes */
body.dark .palette{
  background:#020617;
  border:1px solid #1e293b;
}

/* Draggable colors */
body.dark .draggable-color{
  outline:1px solid #334155;
}

/* Draggable patterns */
body.dark .draggable-pattern{
  color:#e5e7eb;
  border:1px solid #334155;
}

/* Dark mode image area */
body.dark .image-area{
  background: #0f172a;              /* slate-900 */
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

/* Image itself */
body.dark .image-area img{
  background: transparent;
}

/* If you ever overlay text or empty-state inside */
body.dark .image-area::after{
  color: #94a3b8;                    /* slate-400 */
}


/* =====================
   LABELS & TEXT
===================== */

body.dark .tools-box label{
  color:#cbd5f5;
}

body.dark .controls {
  background-color: #1e1e2f;
  border: 1px solid #333;
  color: #ddd;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

body.dark .controls h1 { color: #fff; }
body.dark .controls label { color: #aaa; }
body.dark .controls input,
body.dark .controls select,
body.dark .controls textarea {
  background-color: #2a2a3f;
  color: #fff;
  border: 1px solid #444;
}

body.dark .controls .btn { background: #4a6eff; color: #fff; }
body.dark .controls .btn.small { background: #2f3b5c; }


/* =========================
   TABLE – DARK MODE
========================= */

body.dark table {
  background: #1e1e1e;
  border-color: #333;
}

body.dark th,
body.dark td {
  border: 1px solid #333;
  color: #e0e0e0;
}

/* Header */
body.dark th {
  background-color: #2a2a2a;
  color: #ffffff;
}

/* Zebra rows */
body.dark tr:nth-child(even) {
  background-color: #242424;
}

body.dark tr:nth-child(odd) {
  background-color: #1e1e1e;
}

/* Similarity text */
body.dark .similarity {
  color: #aaa;
}





/* =========================
   Dark Mode Variables
========================= */
.dark {
  --bg: #0e1117;
  --card: #151a23;
  --muted: #9ca3af;
  --text: #e5e7eb;

  --accent: #ff6ec4;
  --accent-alt: #8b85ff;

  --shadow-light: rgba(0,0,0,0.6);
  --shadow-hover: rgba(0,0,0,0.85);
}

/* =========================
   Body
========================= */
.dark body {
  background: linear-gradient(160deg, #0e1117, #111827);
  color: var(--text);
}

/* =========================
   Headings
========================= */
.dark h4,
.dark header p {
  color: var(--muted);
}

.dark header h1 {
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================
   Main Card
========================= */
.dark .wrap {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.dark .wrap:hover {
  box-shadow: 0 18px 44px rgba(0,0,0,0.85);
}

/* =========================
   Controls
========================= */
.dark .controls .input {
  background: #0f1629;
  border: 1px solid rgba(255,255,255,0.06);
}

.dark .controls .input:focus-within {
  box-shadow: 0 0 14px rgba(139,133,255,0.45);
}

.dark .controls input[type="text"] {
  color: var(--text);
}

.dark .controls select,
.dark .controls input[type=number] {
  background: #0f1629;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

/* =========================
   Buttons
========================= */
.dark .btn,
.dark .copy-btn {
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.dark .btn:hover,
.dark .copy-btn:hover {
  box-shadow: 0 8px 26px rgba(255,110,196,0.45);
}

.dark .ghost {
  color: var(--accent);
  border: 1px solid rgba(255,110,196,0.35);
}

.dark .ghost:hover {
  background: rgba(255,110,196,0.15);
  box-shadow: 0 4px 18px rgba(255,110,196,0.4);
}

/* =========================
   Results & Ideas
========================= */
.dark .ideas {
  background: #0f1629;
  color: var(--text);
}

.dark .idea {
  background: linear-gradient(120deg, #151a23, #0f1629);
  border: 1px solid rgba(255,255,255,0.05);
}

.dark .idea:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.7);
}

.dark .idea h3 {
  color: var(--text);
}

/* =========================
   Preview
========================= */
.dark .preview {
  background: var(--card);
}

.dark .preview .box {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
}

/* =========================
   Footer
========================= */
.dark footer {
  color: var(--muted);
}

/* =========================
   Scrollbar – Dark
========================= */
.dark ::-webkit-scrollbar-track {
  background: #0e1117;
}

.dark ::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--accent),
    var(--accent-alt)
  );
  border: none;
}

.dark ::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.2);
}






















:root {
  --bg: #f0f4ff;           /* רקע צבעוני עדין */
  --card: #f5f5f5;          /* כרטיסים בהירים */
  --muted: #666;            /* צבע טקסט משני */
  --accent: #ff6ec4;        /* צבע חי לכפתורים */
  --accent-alt: #7873f5;    /* גרדיאנט שני */
  --text: #111;             /* צבע טקסט ראשי */
  --radius: 14px;
  font-family: 'Inter', sans-serif;
}

body {
  background: transparent;
  color: var(--text);
  padding: 36px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s;
}

h4 {
  color: var(--text);
  font-size: 26px;
  margin-bottom: 4px;
}

.wrap {
  width: 100%;
  max-width: 800px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

header {
  display: flex;
  gap: 18px;
  flex-direction: column;
  align-items: center;
}

header h1 {
  color: #333;
  font-size: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  margin: 0;
  color: var(--accent-alt);
  font-size: 14px;
}

.controls {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.controls .input {
  flex: 1 1 320px;
  display: flex;
  gap: 8px;
  background: #e8e8e8;
  padding: 10px;
  border-radius: 12px;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.1);
  transition: box-shadow 0.3s;
}

.controls .input:focus-within {
  box-shadow: 0 0 12px rgba(120,115,245,0.3);
}

.controls input[type="text"] {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 15px;
  padding: 8px 6px;
  width: 100%;
}

.controls select, .controls input[type=number] {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--text);
  padding: 8px;
  border-radius: 8px;
  min-width: 72px;
}

.btn {
  padding: 10px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  font-weight: 700;
  transition: 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, var(--accent-alt), var(--accent));
}

.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(255,110,196,0.4);
  transition: 0.25s ease, transform 0.25s ease;
}
.ghost:hover {
  background: rgba(255,110,196,0.1);
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(255,110,196,0.3);
}

.results {
  margin-top: 20px;
}

.ideas {
  background: #fafafa;
  padding: 16px;
  border-radius: 12px;
  max-height: 520px;
  overflow: auto;
  color: var(--text);
}

.idea {
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: linear-gradient(120deg, #f5f5f5, #f8faff);
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.idea:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.idea h3 {
  margin: 0 0 6px 0;
  font-size: 20px;
  color: var(--text);
}

.copy-btn {
  padding: 8px 14px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  font-weight: 700;
  transition: 0.25s ease, transform 0.25s ease;
}
.copy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255,110,196,0.6);
}

.preview {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
}

.preview .box {
  background: rgba(0,0,0,0.03);
  padding: 12px;
  border-radius: 10px;
  flex: 1;
  overflow: auto;
  color: var(--muted);
}

footer {
  margin-top: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 880px) {
  .results { grid-template-columns: 1fr; }
  .preview { order: 2; }
}

/* Scrollbar מעוצב */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f0f4ff; border-radius: 5px; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 5px; border: 2px solid var(--accent); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-alt); }




.app-layout{
  display:grid;
  grid-template-columns: 260px 1fr 260px;
  gap:16px;
  min-height:30vh;
  padding:16px;
  background:var(--bg);
}

/* SIDEBARS */
.sidebar-left,
.sidebar-right{
  background:var(--card);
  border:1px solid rgba(0,0,0,0.08);
  border-radius:14px;
  padding:14px;
  height:fit-content;
  position:sticky;
  top:16px;
}

/* LEFT SIDE */
.sidebar-left h3,
.sidebar-right h3{
  margin-top:0;
}

.side-box{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}

.full{
  width:100%;
  margin-top:8px;
}

/* CENTER */
.main-content{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* RESULTS LAYOUT FIX */
.results{
  display:block;
}

/* HISTORY PLACEHOLDER */
.history-empty{
  color:var(--muted);
  font-size:13px;
  padding:10px;
  border:1px dashed rgba(0,0,0,0.2);
  border-radius:10px;
}

/* RESPONSIVE */
@media (max-width: 1100px){
  .app-layout{
    grid-template-columns: 1fr;
  }

  .sidebar-left,
  .sidebar-right{
    position:relative;
  }
}







.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  justify-content:center;
  align-items:center;
  z-index:9999;
  width:min(95vw,1600px);
  max-height:92vh;
  overflow:auto;
}



.modal-content{
  background:var(--card);
  padding:20px;
  border-radius:14px;
  width:min(600px,100%);
  max-height:90vh;
  margin:auto;          /* מרכז גם בגלילה */
  overflow:auto;
  border:1px solid rgba(0,0,0,0.1);
  animation:pop .2s ease;
}

@keyframes pop{
  from{transform:scale(0.9); opacity:0;}
  to{transform:scale(1); opacity:1;}
}

.close{
  float:right;
  font-size:22px;
  cursor:pointer;
  color:var(--muted);
}

#modalSeo{
  font-weight:bold;
  margin-top:10px;
}

#modalMeta{
  margin-top:10px;
  color:var(--muted);
}  











.saved-item{
  background: var(--card);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(0,0,0,0.1);
}

.saved-title{
  font-weight: bold;
  font-size: 14px;
}

.saved-meta{
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.saved-actions{
  display:flex;
  gap:6px;
  margin-top:6px;
}

.saved-actions button{
  font-size:12px;
  padding:4px 8px;
  border:none;
  cursor:pointer;
  border-radius:6px;
}














/* =========================
   SIDEBAR CONTAINER
========================= */
.sidebar-left{
  background: var(--card, #f5f5f5);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 16px;
}

/* Title */
.sidebar-left h3{
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--text, #111);
}

/* =========================
   INPUT BOXES
========================= */
.side-box{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-box label{
  font-size: 12px;
  color: var(--muted, #666);
}

/* Input base */
.sidebar-left input{
  width: 90%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: var(--text, #111);
  outline: none;
  transition: 0.2s ease;
  font-size: 14px;
}

/* Focus */
.sidebar-left input:focus{
  border-color: var(--accent, #7873f5);
  box-shadow: 0 0 0 3px rgba(120,115,245,0.15);
}

/* Number arrows nicer */
.sidebar-left input[type="number"]{
  appearance: textfield;
}

/* =========================
   BUTTON BASE STYLE
========================= */
.sidebar-left button{
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 100%;
}

/* =========================
   PRIMARY BUTTON (Generate)
========================= */
#generate{
  background: linear-gradient(135deg, #6366f1, #22c55e);
  color: white;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

#generate:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* =========================
   COPY BUTTONS (SECONDARY)
========================= */
#copyGenerated,
#copySaved{
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid rgba(99,102,241,0.3);
}

#copyGenerated:hover,
#copySaved:hover{
  background: #e0e7ff;
  transform: translateY(-2px);
}

/* =========================
   GHOST BUTTONS (EXPORT)
========================= */
.ghost{
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--text, #111);
}

.ghost:hover{
  background: rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

/* =========================
   FULL WIDTH UTILITY
========================= */
.full{
  width: 100%;
}

/* =========================
   HR DIVIDER
========================= */
.sidebar-left hr{
  width: 100%;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 6px 0;
}

/* =========================
   FULLSCREEN BUTTON
========================= */
.fullscreen-btn{
  background: #eee;
  color: #111;
  font-size: 16px;
  padding: 10px;
  border-radius: 10px;
  max-width: 120px;
}

.fullscreen-btn:hover{
  background: #ddd;
  transform: scale(1.05);
}

/* =========================
   DARK MODE SUPPORT
========================= */
body.dark .sidebar-left{
  background: #020617;
  border: 1px solid #1e293b;
}

body.dark .sidebar-left h3{
  color: #f9fafb;
}

body.dark .sidebar-left label{
  color: #94a3b8;
}

body.dark .sidebar-left input{
  background: #0f172a;
  border: 1px solid #334155;
  color: #e5e7eb;
}

body.dark .ghost{
  border: 1px solid #334155;
  color: #e5e7eb;
}

body.dark .ghost:hover{
  background: #1e293b;
}

body.dark #copyGenerated,
body.dark #copySaved{
  background: #0f172a;
  color: #a5b4fc;
  border: 1px solid #334155;
}

body.dark #copyGenerated:hover,
body.dark #copySaved:hover{
  background: #1e293b;
}

body.dark #generate{
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

body.dark .fullscreen-btn{
  background: #0f172a;
  border: 1px solid #334155;
}








/* =========================
   SAAS SIDEBAR GROUPS
========================= */
.group{
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Group title */
.group-title{
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--muted, #666);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   BUTTONS (GLOBAL SAAS STYLE)
========================= */
.sidebar-left button{
  width: 100%;
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
  text-align: left;
}

.sidebar-left button:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Primary generate */
#generate{
  background: linear-gradient(135deg,#6366f1,#22c55e);
  color: white;
  border: none;
}

/* Copy buttons */
#copyGenerated,
#copySaved{
  background: #eef2ff;
  color: #3730a3;
}

/* Ghost export */
.ghost{
  background: transparent;
  border: 1px dashed rgba(0,0,0,0.2);
}

/* Fullscreen */
.fullscreen-btn{
  background: #111827;
  color: #333;
  text-align: center;
}

/* =========================
   ADVANCED PANEL
========================= */
.advanced{
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
  font-size: 12px;
}

.hidden{
  display: none;
}

/* =========================
   SWITCH TOGGLE
========================= */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #6366f1;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* =========================
   DARK MODE
========================= */
body.dark .group{
  background: #0f172a;
  border: 1px solid #1e293b;
}

body.dark .group-title{
  color: #94a3b8;
}

body.dark .sidebar-left button{
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid #334155;
}

body.dark #generate{
  background: linear-gradient(135deg,#6366f1,#22c55e);
}

body.dark #copyGenerated,
body.dark #copySaved{
  background: #1e293b;
  color: #a5b4fc;
}











/* =========================
   SEO SECTION
========================= */
.seo-section{
  margin-top: 30px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg,#f8faff,#eef2ff);
  border: 1px solid rgba(0,0,0,0.08);
}

.seo-section h2{
  margin-bottom: 10px;
  font-size: 20px;
}

.seo-section p{
  color: #444;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* =========================
   FAQ SECTION
========================= */
.faq-section{
  margin-top: 30px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
}

.faq-section h2{
  margin-bottom: 15px;
  font-size: 20px;
}

/* FAQ item */
.faq-item{
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f8f9ff;
  border-left: 4px solid #6366f1;
  cursor: pointer;
  transition: 0.2s ease;
}

.faq-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.faq-item h4{
  margin: 0 0 6px 0;
  font-size: 14px;
}

.faq-item p{
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* =========================
   DARK MODE
========================= */
body.dark .seo-section{
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #e5e7eb;
}

body.dark .seo-section p{
  color: #cbd5f5;
}

body.dark .faq-section{
  background: #020617;
  border: 1px solid #1e293b;
}

body.dark .faq-item{
  background: #0f172a;
  border-left: 4px solid #6366f1;
}

body.dark .faq-item p{
  color: #94a3b8;
}
















/* ===============================
   TOOL HEADER - LIGHT / DARK
=============================== */

/* ברירת מחדל - גרסה בהירה */
.tool-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  padding:18px 22px;
  margin-bottom:22px;

  background:linear-gradient(135deg,#ffffff,#f8fafc);
  border:1px solid #e2e8f0;
  border-radius:18px;

  box-shadow:
    0 10px 30px rgba(15,23,42,.06),
    inset 0 1px 0 rgba(255,255,255,.9);

  color:#0f172a;
  transition:all .25s ease;
}

/* מצב כהה */
body.dark .tool-header{
  background:linear-gradient(135deg,#0f172a,#1e293b);
  border:1px solid rgba(255,255,255,.08);

  box-shadow:
    0 12px 35px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.03);

  color:#f8fafc;
}

/* כותרת */
.tool-header h1,
.tool-header h2,
.tool-header h3{
  margin:0;
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:-0.02em;
  color:inherit;
}

/* טקסט משני */
.tool-header p,
.tool-header span{
  margin:0;
  color:#475569;
}

body.dark .tool-header p,
body.dark .tool-header span{
  color:#cbd5e1;
}