

  body {
    font-family: Arial, sans-serif;
    background: transparent;
    margin: 0;
    color: #111;
  }
  .tool-continer {
  max-width: 100%;
  margin: 30px auto;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  transition: background 0.3s, color 0.3s;
}
/* Optional Dark Mode */
body.dark .tool-continer {
  background: #1e1e1e;
  color: #eee;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
  textarea {
    width: 97%;
    height: 170px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    resize: vertical;
    font-size: 15px;
  }
  button {
    background: #0f62fe;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
  }
  button:hover {
    background: #0043ce;
  }
  .results {
    margin-top: 25px;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
  }
  th {
    background: #f0f2f5;
  }
  .status-ok { color: green; font-weight: bold; }
  .status-bad { color: red; font-weight: bold; }
  .copy-btn {
    background: #e5e7eb;
    color: #111;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
  }
  
  
  
  
  
  
  
  
  
  
  
  
  /* =====================
   DARK THEME
===================== */
.dark body {
  background: transparent;
  color: #e5e7eb;
}

/* === Textarea === */
.dark textarea {
  background: #020617;
  color: #e5e7eb;
  border: 1px solid #1e293b;
}

.dark textarea::placeholder {
  color: #64748b;
}

/* === Buttons === */
.dark button {
  background: #3b82f6;
  color: #ffffff;
}

.dark button:hover {
  background: #2563eb;
}

/* === Results / Table === */
.dark .results {
  color: #e5e7eb;
}

.dark table {
  background: #020617;
}

.dark th,
.dark td {
  border-bottom: 1px solid #1e293b;
  color: #e5e7eb;
}

.dark th {
  background: #0b1220;
}

/* === Status Colors === */
.dark .status-ok {
  color: #22c55e;
}

.dark .status-bad {
  color: #ef4444;
}

/* === Copy Button === */
.dark .copy-btn {
  background: #1e293b;
  color: #e5e7eb;
  border: 1px solid #334155;
}

.dark .copy-btn:hover {
  background: #334155;
}






/* ==========================
   Root Variables
========================== */
:root {
  --bg-light: #f4f6f8;
  --bg-dark: #1f2937;
  --card-light: #ffffff;
  --card-dark: #111827;
  --text-light: #111827;
  --text-dark: #f9fafb;
  --muted-light: #6b7280;
  --muted-dark: #9ca3af;
  --accent: #10b981; /* ירוק כהה */
  --badge-popular: #f59e0b;
  --badge-trending: #3b82f6;
  --radius: 16px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 20px rgba(0,0,0,0.12);
  --transition-speed: 0.3s;
}

/* ==========================
   Section Layout
========================== */
.similar-tools {
  padding: 3rem 1.5rem;
  background: var(--bg-light);
  color: var(--text-light);
  text-align: center;
}

.similar-tools h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* ==========================
   Grid Layout
========================== */
.similar-tools-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-items: center;
}

/* ==========================
   Tool Card
========================== */
.similar-tool-card {
  display: flex;
  flex-direction: column;
  background: var(--card-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 280px;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  cursor: pointer;
}

.similar-tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* ==========================
   Badge
========================== */
.tool-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--badge-popular);
  z-index: 2;
}

.similar-tool-card .tool-badge.trending {
  background-color: var(--badge-trending);
}

/* ==========================
   Image
========================== */
.similar-tool-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-speed);
}

.similar-tool-card:hover img {
  transform: scale(1.05);
}

/* ==========================
   Card Content
========================== */
.tool-card-content {
  padding: 1rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-card-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-card-content .tool-rating {
  color: #fbbf24; /* זהב לדירוג */
  font-size: 0.95rem;
}

.tool-card-content p {
  font-size: 0.875rem;
  color: var(--muted-light);
  margin: 0;
  line-height: 1.4;
}

/* ==========================
   Dark Mode
========================== */
body.dark .similar-tools {
  background: var(--bg-dark);
  color: var(--text-dark);
}

body.dark .similar-tool-card {
  background: var(--card-dark);
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

body.dark .tool-card-content p {
  color: var(--muted-dark);
}

/* ==========================
   Responsive tweaks
========================== */
@media (max-width: 768px) {
  .similar-tools {
    padding: 2rem 1rem;
  }
}










/* =========================
   APP LAYOUT
========================= */

.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 20px;
  max-width: 1400px;
  margin: 20px auto;
  min-height: 20vh;
}

/* =========================
   SIDEBARS
========================= */

.sidebar-left,
.sidebar-right{
  background:var(--card-light);
  border-radius:14px;
  padding:16px;
  box-shadow:var(--shadow);

  position:sticky;
  top:20px;

  height:calc(100vh - 40px);
  overflow-y:auto;
  min-height:0;
}

.sidebar-left h3,
.sidebar-right h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

/* =========================
   SIDE BOX
========================= */

.side-box {
  margin-bottom: 15px;
  width: 90%;
}

.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

/* =========================
   MAIN AREA
========================= */

.main-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-card {
  background: var(--card-light);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.main-card h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

/* =========================
   BUTTONS (UPGRADED)
========================= */

.primary-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.primary-btn:hover {
  opacity: 0.9;
}

.secondary-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: transparent;
  cursor: pointer;
  margin-top: 10px;
}

/* =========================
   HISTORY
========================= */

#historyList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  padding: 10px;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 13px;
  cursor: pointer;
}

.history-item:hover {
  background: #e2e8f0;
}

.empty {
  font-size: 13px;
  color: var(--muted-light);
}

/* =========================
   DARK MODE SUPPORT
========================= */

body.dark .sidebar-left,
body.dark .sidebar-right,
body.dark .main-card {
  background: var(--card-dark);
}

body.dark .history-item {
  background: #1e293b;
}

body.dark .history-item:hover {
  background: #334155;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-left,
  .sidebar-right {
    position: relative;
    top: 0;
  }
}






.history-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delete-btn {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 14px;
}

.delete-btn:hover {
  color: red;
}

.history-preview {
  font-size: 12px;
  color: var(--muted-light);
  margin-top: 5px;
  line-height: 1.3;
}





.history-actions {
  display: flex;
  gap: 6px;
}

.rerun-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666;
}

.rerun-btn:hover {
  color: #10b981;
}






/* TITLE */
.history-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-icon {
  font-size: 14px;
}

/* META INFO */
.history-meta {
  font-size: 12px;
  color: var(--muted-light);
  margin-top: 4px;
}

/* DARK */
body.dark .history-meta {
  color: var(--muted-dark);
}





/* LEFT BORDER INDICATOR */
.history-item {
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

/* SMALL (green) */
.history-item.size-small {
  border-left-color: #22c55e;
}

/* MEDIUM (yellow) */
.history-item.size-medium {
  border-left-color: #f59e0b;
}

/* LARGE (red) */
.history-item.size-large {
  border-left-color: #ef4444;
}

/* HOVER BOOST */
.history-item:hover {
  transform: translateX(4px);
}




/* =========================
   SIDEBAR LEFT
========================= */

.sidebar-left {
  background: var(--card-light);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* TITLE */
.sidebar-left h3 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}

/* =========================
   INPUTS
========================= */

.sidebar-left input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sidebar-left input[type="text"]:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.2);
}

/* =========================
   CHECKBOX
========================= */

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox input {
  cursor: pointer;
}

/* =========================
   BUTTONS
========================= */

.primary-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #10b981;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* SECONDARY */
.secondary-btn {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  color:#111;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: #f3f4f6;
}

/* FULLSCREEN BUTTON */
.fullscreenbtn {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: #111827;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.fullscreenbtn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================
   DARK MODE
========================= */

body.dark .sidebar-left {
  background: var(--card-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

body.dark .sidebar-left input[type="text"] {
  background: #020617;
  color: #e5e7eb;
  border: 1px solid #1e293b;
}

body.dark .sidebar-left input[type="text"]::placeholder {
  color: #64748b;
}

body.dark .sidebar-left input[type="text"]:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}

/* BUTTONS DARK */

body.dark .primary-btn {
  background: #22c55e;
}

body.dark .primary-btn:hover {
  background: #16a34a;
}

body.dark .secondary-btn {
  background: #020617;
  border: 1px solid #334155;
  color: #e5e7eb;
}

body.dark .secondary-btn:hover {
  background: #1e293b;
}

body.dark .fullscreenbtn {
  background: #3b82f6;
}

body.dark .fullscreenbtn:hover {
  background: #2563eb;
}








/* RESULTS BOX - LIGHT / DARK */

#results{
  display:block !important;
  box-sizing:border-box !important;
  width:100% !important;

  padding:18px !important;
  min-height:24vh !important;
  overflow:auto !important;

  border-radius:18px !important;
  line-height:1.6 !important;

  background:#ffffff !important;
  color:#0f172a !important;
  border:1px solid #e2e8f0 !important;
  box-shadow:0 10px 30px rgba(15,23,42,.06) !important;

  transition:
    background .25s ease,
    color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

/* כל מה שבפנים */
#results,
#results *{
  color:inherit;
}

/* מצב כהה */
body.dark #results,
html.dark #results,
[data-theme="dark"] #results{
  background:#0f172a !important;
  color:#f8fafc !important;
  border-color:rgba(255,255,255,.08) !important;
  box-shadow:0 12px 30px rgba(0,0,0,.35) !important;
}

/* קישורים */
#results a{
  color:#2563eb;
}

body.dark #results a{
  color:#60a5fa;
}




.results-table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

.results-table th,
.results-table td{
  padding:10px;
  border-bottom:1px solid var(--border);
}

body.dark .results-table th,
body.dark .results-table td{
  border-color:rgba(255,255,255,.08);
}

.loading{
  opacity:.7;
  font-style:italic;
}

.status-ok{ color:#16a34a; }
.status-bad{ color:#dc2626; }





body.dark #results,
[data-theme="dark"] #results,
html.dark #results{
  background:#0b1220 !important;
  color:#e5e7eb !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 12px 30px rgba(0,0,0,.45) !important;
}

/* הטבלה עצמה */
body.dark .results-table,
[data-theme="dark"] .results-table{
  background:transparent !important;
  color:inherit !important;
}

/* כותרות טבלה */
body.dark .results-table th,
[data-theme="dark"] .results-table th{
  background:#111827 !important;
  color:#f9fafb !important;
}

/* שורות */
body.dark .results-table td,
[data-theme="dark"] .results-table td{
  background:transparent !important;
  color:#e5e7eb !important;
}

/* hover שורות (שדרוג קטן אבל חשוב) */
body.dark .results-table tr:hover td{
  background:rgba(255,255,255,.04) !important;
}