

/* =====================
   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;
}


/* =========================
   Result Line – Dark
========================= */
.dark .result-line {
  width: 96%;
  background: var(--panel-dark, linear-gradient(180deg, #0f141d, #151b26));
  color: var(--text-dark, #e5edff);

  font-weight: 600;
  padding: 10px 12px;
  border: 1px solid var(--border-dark, rgba(96,165,250,0.35));
  border-radius: var(--radius);

  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;

  font-family: monospace;

  box-shadow:
    inset 0 1px 4px rgba(0,0,0,0.6),
    0 6px 18px rgba(0,0,0,0.45);

  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

/* Hover / focus feel */
.dark .result-line:hover {
  border-color: rgba(96,165,250,0.6);
  box-shadow:
    inset 0 1px 6px rgba(0,0,0,0.7),
    0 8px 22px rgba(0,0,0,0.55);
}

/* Optional highlights inside */
.dark .result-line span {
  color: #93c5fd;
}

.dark .result-line small {
  color: #94a3b8;
}






















:root {
  /* Light Mode Colors */
  --bg-light: #f5f5f5;
  --panel-light: #fff;
  --text-light: #222;
  --accent-light: #007bff;
  --border-light: rgba(0,0,0,0.1);

  /* Dark Mode Colors */
  --bg-dark: #1a1a1a;
  --panel-dark: #2b2b2b;
  --text-dark: #e0e0e0;
  --accent-dark: #4f9aff;
  --border-dark: #444;

  --radius: 10px;
  --shadow: rgba(0,0,0,0.05);
}





/* Base Styles */
body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  padding: 2rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: transparent;
  color: var(--text-light);
  transition: background 0.3s, color 0.3s;
}



.container {
  padding: 10px;
  max-width: 700px;
  width: 100%;

  display: flex;
  flex-direction: column; /* אחד מעל השני */
  gap: 10px; /* רווח בין האלמנטים (אופציונלי) */
}

h1 {
  text-align: center;
  margin-bottom: 24px;
  color: var(--accent-light);
  transition: color 0.3s;
}

textarea {
  width: 96%;
  min-height: 120px;
  padding: 12px;
  font-size: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--panel-light);
  color: var(--text-light);
  outline: none;
  resize: vertical;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 10px rgba(0,123,255,0.4);
}

button, .copy-btn {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: var(--accent-light);
  color: #fff;
  font-weight: 700;
  margin-top: 12px;
  transition: 0.25s ease, transform 0.15s ease, background 0.25s;
}

button:hover, .copy-btn:hover {
  background: #339aff;
  transform: translateY(-2px);
}

.result-line {
  width: 96%;
  background: var(--panel-light);
  color: var(--text-light);
  font-weight: 600;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-family: monospace;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}






/* ===== LAYOUT ===== */
.app-layout{
  display:grid;
  grid-template-columns: 220px 1fr 260px;
  height:100vh;
  gap:10px;
  padding:10px;
}

/* ===== SIDEBARS ===== */
.sidebar{
  background:var(--panel-light);
  border:1px solid var(--border-light);
  border-radius:12px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.sidebar h3{
  margin:0 0 10px;
  font-size:14px;
  opacity:.7;
}

/* LEFT */
.sidebar.left button{
  width:100%;
}

/* RIGHT */
.sidebar.right{
  overflow-y:auto;
}

/* ===== MAIN ===== */
.main-area{
  display:flex;
  flex-direction:column;
  gap:10px;
}


/* ===== TEXTAREA ===== */
textarea{
  width:97%;
  min-height:200px;
}

/* ===== OUTPUT ===== */
#output{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* ===== DARK MODE SUPPORT ===== */
body.dark .sidebar{
  background:#020617;
  border:1px solid #1e293b;
}





.history-item{
  background: var(--panel-light);
  border:1px solid var(--border-light);
  padding:10px;
  border-radius:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.history-preview{
  font-size:12px;
  font-family:monospace;
  color:#94a3b8;

  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}



.history-actions{
  display:flex;
  gap:6px;
}

.history-actions button{
  flex:1;
  padding:6px;
  font-size:12px;
}


.history-img{
  width:100%;
  border-radius:8px;
  margin:6px 0;
  max-height:120px;
  object-fit:cover;
}



/* =========================
   HISTORY – DARK MODE
========================= */

body.dark .history-item{
  background: linear-gradient(180deg, #020617, #0f172a);
  border: 1px solid rgba(96,165,250,0.25);
  box-shadow:
    inset 0 1px 4px rgba(0,0,0,0.6),
    0 6px 16px rgba(0,0,0,0.5);
}

/* Hover effect 🔥 */
body.dark .history-item:hover{
  border-color: rgba(96,165,250,0.6);
  box-shadow:
    inset 0 1px 6px rgba(0,0,0,0.7),
    0 8px 22px rgba(0,0,0,0.6);
}

/* Preview text */
body.dark .history-preview{
  color:#cbd5f5;
  opacity:0.9;
}

/* Buttons */
body.dark .history-actions button{
  background:#020617;
  border:1px solid #334155;
  color:#e5e7eb;
  transition: all 0.2s ease;
}

/* Hover buttons */
body.dark .history-actions button:hover{
  background:#1e293b;
  border-color:#6366f1;
  color:#fff;
}

/* Image */
body.dark .history-img{
  border:1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Date */
body.dark .history-top small{
  color:#94a3b8;
}

body.dark .history-item{
  transition: all 0.25s ease;
}

body.dark .history-img:hover{
  transform: scale(1.03);
}



.tool-seo{
  margin-top:40px;
  padding:20px;
  border-radius:12px;
  background:var(--panel-light);
  border:1px solid var(--border-light);
  line-height:1.6;
}

.tool-seo h2{
  margin-top:20px;
  color:var(--accent-light);
}

.tool-seo ul,
.tool-seo ol{
  padding-left:20px;
}

.faq-item{
  margin-top:15px;
  padding:12px;
  border-left:3px solid var(--accent-light);
  background:rgba(0,0,0,0.02);
  border-radius:8px;
}

/* Dark mode */
body.dark .tool-seo{
  background:#020617;
  border:1px solid #1e293b;
}

body.dark .faq-item{
  background:#020617;
  border-left:3px solid #6366f1;
}
