/* =============================================
   RESET & BAZĂ
   ============================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark;
  --bg: #0a0f1e;
  --card: #0d1526;
  --panel: #111e35;
  --panel-strong: #0d1526;
  --text: #e2e8f0;
  --muted: #8fa8cc;
  --accent: #3b82f6;
  --accent-soft: #60a5fa;
  --border: #1c3054;
  --button-bg: #0f172a;
  --button-hover: #162541;
  --shadow: rgba(0, 0, 0, 0.24);
}

.theme-default {
  --bg: #0a0f1e;
  --card: #0d1526;
  --panel: #111e35;
  --panel-strong: #0d1526;
  --text: #e2e8f0;
  --muted: #8fa8cc;
  --accent: #3b82f6;
  --accent-soft: #60a5fa;
  --border: #1c3054;
  --button-bg: #0f172a;
  --button-hover: #162541;
}

.theme-pinky {
  --bg: #210a1f;
  --card: #31153a;
  --panel: #3d163f;
  --panel-strong: #271532;
  --text: #ffe7f4;
  --muted: #f9a8d4;
  --accent: #f472b6;
  --accent-soft: #fbcfe8;
  --border: #6d2e55;
  --button-bg: #381f34;
  --button-hover: #4b2151;
}

.theme-orange {
  --bg: #170d08;
  --card: #2d170d;
  --panel: #3b1d0f;
  --panel-strong: #24120a;
  --text: #ffedd5;
  --muted: #f9d1b3;
  --accent: #fb923c;
  --accent-soft: #fdba74;
  --border: #7c2d12;
  --button-bg: #452617;
  --button-hover: #6d3b1f;
}

.theme-white {
  --bg: #f4f5f7;
  --card: #ffffff;
  --panel: #eef2ff;
  --panel-strong: #dbeafe;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-soft: #93c5fd;
  --border: #cbd5e1;
  --button-bg: #ffffff;
  --button-hover: #e2e8f0;
}

.theme-red {
  --bg: #2b0a0a;
  --card: #3c1214;
  --panel: #481618;
  --panel-strong: #391014;
  --text: #fee2e2;
  --muted: #fca5a5;
  --accent: #ef4444;
  --accent-soft: #fca5a5;
  --border: #7f1d1d;
  --button-bg: #4c1518;
  --button-hover: #6b1f20;
}

.theme-lightblue {
  --bg: #071b2d;
  --card: #0e2b47;
  --panel: #133857;
  --panel-strong: #0d253e;
  --text: #e0f2fe;
  --muted: #93c5fd;
  --accent: #38bdf8;
  --accent-soft: #7dd3fc;
  --border: #1e3a52;
  --button-bg: #0f2f55;
  --button-hover: #125a82;
}

.theme-yellow {
  --bg: #231a06;
  --card: #35250d;
  --panel: #43300f;
  --panel-strong: #2f2009;
  --text: #fff7d6;
  --muted: #facc15;
  --accent: #f59e0b;
  --accent-soft: #fde68a;
  --border: #7c5c14;
  --button-bg: #4a320e;
  --button-hover: #6d4820;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 20px; }
.logo-text { font-size: 18px; font-weight: 700; color: #eaf0fb; }
.logo-version { color: #3b82f6; font-size: 13px; font-weight: 400; }

.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  transition: background 0.3s;
}
.status-dot.idle    { background: #475569; }
.status-dot.running { background: #10b981; animation: pulse 1.2s ease-in-out infinite; }
.status-dot.error   { background: #ef4444; }
.status-text { font-size: 13px; color: #8fa8cc; }

@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.nav-user { font-size: 13px; color: #8fa8cc; display: flex; align-items: center; gap: 10px; }
.btn-logout {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.btn-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-settings:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
}
.btn-logout:hover { background: #ef444422; }

/* =============================================
   BANNER SERVER OFFLINE
   ============================================= */
.server-offline-banner {
  background: #1a0a0a;
  border-bottom: 2px solid #ef4444;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 56px;
  z-index: 99;
}
.offline-icon { font-size: 22px; flex-shrink: 0; }
.offline-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  font-size: 13px;
}
.offline-content strong { color: #ef4444; }
.offline-content span   { color: #8fa8cc; }
.offline-content code {
  background: #0d1526;
  border: 1px solid #ef444455;
  color: #f59e0b;
  padding: 3px 10px;
  border-radius: 5px;
  font-family: 'Consolas', monospace;
  font-size: 12px;
}
.offline-retry {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.offline-retry:hover { background: #ef444422; }

/* =============================================
   SCREENS
   ============================================= */
.screen { display: none; }
.screen.active { display: block; }

/* =============================================
   LOGIN
   ============================================= */
#screen-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
}
.login-card {
  background: #0d1526;
  border: 1px solid #1c3054;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.login-logo { font-size: 48px; margin-bottom: 8px; }
.login-title { font-size: 28px; font-weight: 700; color: #eaf0fb; margin-bottom: 4px; }
.login-subtitle { font-size: 13px; color: #4b6080; margin-bottom: 28px; }
.login-error { color: #ef4444; font-size: 13px; margin-bottom: 10px; }

/* =============================================
   FORMULARE
   ============================================= */
.form-group { text-align: left; margin-bottom: 16px; }
.form-group label, .field-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #4b6080;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  width: 100%;
  padding: 9px 12px;
  background: #111e35;
  border: 1px solid #1c3054;
  border-radius: 8px;
  color: #eaf0fb;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.file-input-row { display: flex; gap: 6px; }
.file-input-row input { flex: 1; }
.field-row { display: flex; gap: 12px; }
.field-row .field-group { flex: 1; }

/* =============================================
   BUTOANE
   ============================================= */
.btn-primary {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover  { background: #2563eb; }
.btn-primary:active { transform: scale(0.98); }
.btn-full { width: 100%; padding: 12px; margin-top: 8px; font-size: 15px; }

.btn-secondary {
  background: transparent;
  border: 1px solid #1c3054;
  color: #8fa8cc;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover { background: #172540; }

.btn-start {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-start:hover     { background: #059669; }
.btn-start:disabled  { background: #1c3054; color: #4b6080; cursor: not-allowed; }

.btn-stop {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-stop:hover    { background: #dc2626; }
.btn-stop:disabled { background: #1c3054; color: #4b6080; cursor: not-allowed; }

.btn-skip {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-skip:hover    { background: #d97706; }
.btn-skip:disabled { background: #1c3054; color: #4b6080; cursor: not-allowed; }

.btn-file {
  background: #172540;
  border: 1px solid #1c3054;
  color: #8fa8cc;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-file:hover { background: #1c3054; }

.btn-xs {
  background: transparent;
  border: 1px solid #1c3054;
  color: #4b6080;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-xs:hover { color: #8fa8cc; }

/* =============================================
   DASHBOARD
   ============================================= */
#screen-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 50px;
}
.section { margin-bottom: 28px; }
.section-title { font-size: 15px; font-weight: 600; color: #eaf0fb; margin-bottom: 14px; }

/* =============================================
   CARDURI BOȚI
   ============================================= */
.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 19, 0.85);
  padding: 20px;
}

.settings-panel {
  width: min(980px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 24px 80px var(--shadow);
}

.settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.settings-header h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.settings-note {
  color: var(--muted);
  font-size: 13px;
}

.btn-close {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.settings-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.user-card h3,
.theme-card-panel h3 {
  margin-bottom: 10px;
}

.settings-text {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 13px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  text-align: left;
  color: var(--text);
}

.theme-option:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.theme-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.theme-dot.default { background: #3b82f6; }
.theme-dot.pinky   { background: #f472b6; }
.theme-dot.orange  { background: #fb923c; }

.settings-card p,
.settings-card strong,
.theme-option strong,
.theme-option span {
  color: var(--text);
}

.settings-card span,
.theme-option span {
  color: var(--muted);
}
.bot-card#card-programari {
  grid-column: 1 / -1;
}
.bot-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s;
}
.bot-card:hover { border-color: #2563eb55; }
.bot-card.running-state { border-color: #10b98155; }

.bot-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.bot-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.bot-icon.blue   { background: #1d4ed833; border: 1px solid #3b82f644; }
.bot-icon.purple { background: #5b21b633; border: 1px solid #8b5cf644; }
.bot-icon.amber  { background: #92400e33; border: 1px solid #f59e0b44; }
.bot-icon.green  { background: #14532d33; border: 1px solid #22c55e44; }

.bot-name { font-size: 15px; font-weight: 600; color: #eaf0fb; }
.bot-desc { font-size: 12px; color: #4b6080; margin-top: 2px; }

.bot-badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}
.bot-badge.idle    { background: #1c3054; color: #4b6080; }
.bot-badge.running { background: #064e3b; color: #10b981; }
.bot-badge.done    { background: #052e16; color: #4ade80; }
.bot-badge.error   { background: #450a0a; color: #ef4444; }

.bot-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.bot-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.locations-scroll-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 8px;
  background: #0a1628;
  border: 1px solid #1c3054;
  border-radius: 6px;
  margin-top: 10px;
}
.locations-scroll-container label {
  min-width: 0;
}
.locations-scroll-container input {
  flex-shrink: 0;
}

.locations-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.locations-scroll-container::-webkit-scrollbar-track {
  background: #0a1628;
  border-radius: 3px;
}

.locations-scroll-container::-webkit-scrollbar-thumb {
  background: #2d4a6f;
  border-radius: 3px;
}

.locations-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #3b6a9a;
}

/* =============================================
   PROGRESS BAR
   ============================================= */
.bot-progress {
  margin-top: 12px;
  margin-bottom: 8px;
}
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: #111e35;
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 3px;
  transition: width 0.4s ease;
  min-width: 0%;
}
.progress-bar.indeterminate {
  width: 35% !important;
  animation: indeterminate 1.5s ease-in-out infinite;
}
@keyframes indeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.progress-label {
  font-size: 11px;
  color: #4b6080;
  margin-top: 4px;
  text-align: right;
}

/* =============================================
   STATS PER BOT
   ============================================= */
.bot-stats {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.stat {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.stat.success { background: #052e16; color: #4ade80; }
.stat.error   { background: #2d0a0a; color: #f87171; }
.stat.skip    { background: #1c3054; color: #4b6080; }

/* =============================================
   REZULTATE PROGRAMĂRI
   ============================================= */
.results-section { margin-top: 14px; border-top: 1px solid #1c3054; padding-top: 12px; }
.results-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #8fa8cc; margin-bottom: 8px;
}
.counter {
  background: #064e3b; color: #10b981;
  padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.results-table-wrap { max-height: 200px; overflow-y: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.results-table th {
  text-align: left; padding: 5px 8px;
  color: #4b6080; font-weight: 600;
  border-bottom: 1px solid #1c3054;
  position: sticky; top: 0; background: #0d1526;
}
.results-table td { padding: 5px 8px; color: #10b981; border-bottom: 1px solid #0d1526; }
.results-table tr:hover td { background: #111e35; }

/* =============================================
   CANDIDAȚI DOCUMENTE
   ============================================= */
.candidates-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #8fa8cc;
  margin-bottom: 6px; margin-top: 10px;
}
.candidates-list { max-height: 180px; overflow-y: auto; }
.candidate-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 6px; border-radius: 6px;
  font-size: 12px; color: #8fa8cc;
  border-bottom: 1px solid #111e35;
  transition: background 0.15s;
}
.candidate-row:hover { background: #111e3555; }
.candidate-row input[type="checkbox"] { width: 14px; height: 14px; accent-color: #3b82f6; flex-shrink: 0; }
.candidate-status { margin-left: auto; font-size: 11px; }

/* =============================================
   DOSARE
   ============================================= */
.bot-status-list { margin-top: 12px; border-top: 1px solid #1c3054; padding-top: 10px; }
.dosare-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; font-size: 12px; color: #8fa8cc;
  border-bottom: 1px solid #0d1526;
}

/* =============================================
   JURNAL
   ============================================= */
.log-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.log-panel {
  background: #070c18;
  border: 1px solid #1c3054;
  border-radius: 10px;
  padding: 12px 14px;
  height: 240px;
  overflow-y: auto;
  font-family: 'Consolas', monospace;
  font-size: 12px;
}
.log-entry { padding: 2px 0; line-height: 1.6; word-break: break-word; }
.log-entry.info    { color: #4b6080; }
.log-entry.success { color: #10b981; }
.log-entry.warning { color: #f59e0b; }
.log-entry.error   { color: #ef4444; }

/* =============================================
   SETĂRI
   ============================================= */
.settings-card {
  background: #0d1526;
  border: 1px solid #1c3054;
  border-radius: 12px;
  padding: 20px;
}

/* =============================================
   ISTORIC RULĂRI
   ============================================= */
.history-container {
  background: #0d1526;
  border: 1px solid #1c3054;
  border-radius: 12px;
  overflow: hidden;
}
.history-empty {
  padding: 20px;
  color: #4b6080;
  font-size: 13px;
  text-align: center;
}
.history-list { display: flex; flex-direction: column; }
.history-row {
  display: grid;
  grid-template-columns: 130px 1fr 90px 90px 90px 80px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #111e35;
  font-size: 13px;
  gap: 8px;
  transition: background 0.15s;
}
.history-row:last-child { border-bottom: none; }
.history-row:hover { background: #111e35; }
.history-row.header {
  font-size: 11px;
  font-weight: 600;
  color: #4b6080;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #0a0f1e;
  border-bottom: 1px solid #1c3054;
}
.history-bot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #eaf0fb;
}
.history-time { color: #4b6080; font-size: 12px; }
.history-dur  { color: #8fa8cc; font-size: 12px; }
.history-ok   { color: #10b981; font-weight: 600; }
.history-err  { color: #ef4444; font-weight: 600; }
.history-badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.history-badge.ok  { background: #064e3b; color: #10b981; }
.history-badge.err { background: #450a0a; color: #ef4444; }
.history-badge.stp { background: #1c3054; color: #8fa8cc; }

/* =============================================
   TOAST NOTIFICĂRI
   ============================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}
.toast {
  background: #0d1526;
  border: 1px solid #1c3054;
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  color: #eaf0fb;
  min-width: 260px;
  max-width: 380px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: slideIn 0.3s ease;
  cursor: pointer;
}
.toast.success { border-left-color: #10b981; }
.toast.error   { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { font-weight: 600; margin-bottom: 2px; }
.toast-msg { color: #8fa8cc; font-size: 12px; line-height: 1.4; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

/* =============================================
   DIALOG OTP
   ============================================= */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 998;
}
.otp-dialog {
  background: #0d1526;
  border: 1px solid #f59e0b55;
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
  max-width: 400px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.otp-icon { font-size: 40px; margin-bottom: 12px; }
.otp-dialog h3 { font-size: 18px; color: #eaf0fb; margin-bottom: 10px; }
.otp-dialog p  { font-size: 13px; color: #8fa8cc; line-height: 1.6; margin-bottom: 22px; }

/* =============================================
   SCROLLBAR CUSTOM
   ============================================= */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1c3054; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a4a7a; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 700px) {
  .bots-grid { grid-template-columns: 1fr; }
  #screen-dashboard { padding: 16px 12px 30px; }
  .login-card { padding: 28px 20px; }
  .history-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .offline-content { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* =============================================
   NAVIGATION — BOT CARDS (Dashboard)
   ============================================= */
.bot-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-nav-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  user-select: none;
}

.bot-nav-card:hover {
  border-color: var(--accent);
  background: var(--panel);
  transform: translateX(4px);
}

.bot-nav-left { display: flex; align-items: center; gap: 14px; }
.bot-nav-info { display: flex; flex-direction: column; gap: 3px; }
.bot-nav-name { font-size: 15px; font-weight: 600; color: var(--text); }
.bot-nav-desc { font-size: 12px; color: var(--muted); }

.bot-nav-right { display: flex; align-items: center; gap: 12px; }

.bot-nav-arrow {
  font-size: 24px;
  color: var(--muted);
  line-height: 1;
  transition: color 0.2s, transform 0.15s;
}

.bot-nav-card:hover .bot-nav-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

/* =============================================
   BOT SCREENS — SPA Layout
   ============================================= */
.bot-screen { display: none; }
.bot-screen.active { display: block; }

.bot-topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 56px;
  z-index: 90;
  flex-wrap: wrap;
}

.btn-back {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.btn-back:hover { background: var(--panel); color: var(--text); }

.bot-topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.bot-topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.bot-page-body {
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: start;
}

.bot-config-col {
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: calc(100vh - 112px);
}

.bot-activity-col {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =============================================
   CONFIG SECTIONS
   ============================================= */
.config-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* =============================================
   ACTIVITY SECTIONS
   ============================================= */
.activity-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.activity-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.log-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* =============================================
   STAT BOXES
   ============================================= */
.stats-row-large { display: flex; gap: 12px; }

.stat-box {
  flex: 1;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  border: 1px solid transparent;
}

.stat-box.success { background: #052e1688; border-color: #10b98133; }
.stat-box.error   { background: #450a0a88; border-color: #ef444433; }
.stat-box.skip    { background: #1c305488; border-color: #3b82f633; }

.stat-box-val {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-box.success .stat-box-val { color: #4ade80; }
.stat-box.error   .stat-box-val { color: #f87171; }
.stat-box.skip    .stat-box-val { color: #60a5fa; }

.stat-box-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   LOG PANEL — bot pages (taller)
   ============================================= */
.log-panel-bot {
  background: #070c18;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  height: 400px;
  overflow-y: auto;
  font-family: 'Consolas', monospace;
  font-size: 12px;
}

/* =============================================
   RESPONSIVE — Bot pages
   ============================================= */
@media (max-width: 900px) {
  .bot-page-body { grid-template-columns: 1fr; }
  .bot-config-col { border-right: none; border-bottom: 1px solid var(--border); min-height: unset; }
  .bot-topbar-title { font-size: 14px; }
}

/* =============================================
   BAZĂ DE DATE — Toolbar
   ============================================= */
.bd-sheets-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--panel-strong);
  border-bottom: 1px solid var(--border);
}

.bd-toolbar {
  padding: 10px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.bd-toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bd-search-input {
  flex: 1;
  min-width: 220px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.bd-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.bd-stat-pill {
  background: var(--panel-strong);
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

.bd-scroll-btns { display: flex; gap: 4px; flex-shrink: 0; }

/* =============================================
   BAZĂ DE DATE — Stări
   ============================================= */
.bd-state-box {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* =============================================
   BAZĂ DE DATE — Tabel
   ============================================= */
.bd-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.bd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 1000px;
}

.bd-header-labels th {
  text-align: left;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  white-space: nowrap;
}

.bd-filter-row th {
  padding: 5px 6px;
  position: sticky;
  top: 37px;
  background: var(--panel);
  z-index: 9;
  border-bottom: 2px solid var(--accent);
}

.bd-col-input {
  width: 100%;
  padding: 5px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.bd-col-input:focus {
  outline: none;
  border-color: var(--accent);
}

.bd-col-input::placeholder { color: var(--muted); opacity: 0.6; }

.bd-col-select {
  width: 100%;
  padding: 5px 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
}

.bd-col-select:focus {
  outline: none;
  border-color: var(--accent);
}

.bd-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bd-table tbody tr {
  cursor: pointer;
  transition: background 0.1s;
}

.bd-table tbody tr:hover td {
  background: var(--panel);
}

/* Status badges în tabel */
.bd-status {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.bd-status-ok      { background: #052e16; color: #4ade80; }
.bd-status-err     { background: #450a0a; color: #ef4444; }
.bd-status-warn    { background: #451a0344; color: #fb923c; }
.bd-status-gray    { background: #1c305488; color: #8fa8cc; }
.bd-status-default { background: #1c305444; color: #94a3b8; }

/* =============================================
   BAZĂ DE DATE — Modal detalii
   ============================================= */
.bd-detail-modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: min(820px, 96vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.bd-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.bd-detail-header h3 { font-size: 18px; color: var(--text); }

.bd-detail-body {
  overflow-y: auto;
  padding: 16px 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bd-detail-field {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}

.bd-detail-field.bd-detail-wide {
  grid-column: 1 / -1;
}

.bd-detail-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.bd-detail-value {
  font-size: 13px;
  color: var(--text);
  word-break: break-word;
}

.bd-detail-value a {
  color: var(--accent-soft);
  text-decoration: none;
}

.bd-detail-value a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .bd-detail-body { grid-template-columns: 1fr; }
  .bd-filters-row select { font-size: 12px; padding: 5px 8px; }
}

/* =============================================
   MINICRM — DOC TOGGLES
   ============================================= */
.mc-doc-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mc-doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}

.mc-doc-card[data-active="true"] {
  background: #1a3a5c;
  border-color: var(--accent);
}

.mc-doc-card:hover {
  border-color: var(--accent-soft);
}

.mc-doc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.mc-doc-badge {
  font-size: 11px;
  color: var(--muted);
}

.mc-doc-card[data-active="true"] .mc-doc-badge {
  color: var(--accent-soft);
}


/* ═══════════════════════════════════════════════
   VERIFICARE ELIGIBILITATE
═══════════════════════════════════════════════ */

.elig-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--card-bg);
}
.elig-upload-zone:hover,
.elig-upload-zone.elig-zone-drag {
  border-color: var(--accent);
  background: var(--accent-glow, rgba(59,130,246,.06));
}
.elig-upload-zone.elig-zone-selected {
  border-color: #10b981;
  border-style: solid;
}
.elig-upload-icon { font-size: 28px; margin-bottom: 6px; }
.elig-upload-label { font-size: 13px; font-weight: 600; color: var(--text); }
.elig-upload-hint  { font-size: 11px; color: var(--muted); margin-top: 4px; }

.elig-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 260px;
  text-align: center;
  color: var(--muted);
}

.elig-verdict-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.elig-verdict-ok  { background: #166534; color: #bbf7d0; }
.elig-verdict-nok { background: #7f1d1d; color: #fecaca; }
.elig-verdict-icon { font-size: 22px; flex-shrink: 0; }

.elig-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.elig-data-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.elig-data-key { font-size: 11px; color: var(--muted); }
.elig-data-val { font-size: 13px; font-weight: 600; color: var(--text); }

.elig-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 4px;
}
.elig-mini-table th,
.elig-mini-table td {
  padding: 5px 10px;
  border: 1px solid var(--border);
  text-align: left;
}
.elig-mini-table th { background: var(--sidebar-bg); font-weight: 600; }

.elig-straini-list {
  margin: 6px 0 0 16px;
  padding: 0;
  font-size: 12px;
  color: var(--text);
}
.elig-straini-list li { margin-bottom: 3px; }

.elig-criteriu-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.elig-criteriu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.elig-marker {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.elig-marker-ok   { background: #14532d; color: #bbf7d0; }
.elig-marker-nok  { background: #7f1d1d; color: #fecaca; }
.elig-marker-info { background: #1e3a5f; color: #93c5fd; }
.elig-criteriu-titlu  { font-size: 13px; font-weight: 600; color: var(--text); }
.elig-criteriu-detaliu {
  font-size: 12px;
  color: var(--muted);
  padding-left: 4px;
  line-height: 1.5;
}

.elig-cap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.elig-cap-row:last-of-type { border-bottom: none; }
.elig-cap-val { font-weight: 700; }
.elig-cap-ok  { color: #4ade80; }
.elig-cap-nok { color: #f87171; }
.elig-cap-warn {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(239,68,68,.12);
  border: 1px solid #f87171;
  border-radius: 6px;
  font-size: 12px;
  color: #f87171;
}
.elig-cap-info {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(74,222,128,.08);
  border: 1px solid #4ade80;
  border-radius: 6px;
  font-size: 12px;
  color: #4ade80;
}

.elig-error-box {
  border: 1px solid #ef4444;
  border-radius: 10px;
  padding: 16px;
  background: rgba(239,68,68,.08);
}
.elig-error-title {
  font-size: 14px;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 8px;
}
#elig-error-body {
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.6;
}
/* =============================================
   DESPRE GUIU
   ============================================= */
.despre-wrap {
  padding: 24px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.despre-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 28px;
}
.despre-logo {
  font-size: 48px;
  line-height: 1;
}
.despre-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.despre-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.despre-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-soft);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.despre-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.despre-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.despre-table thead tr {
  background: var(--panel-strong);
}
.despre-table th {
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.despre-table td {
  padding: 11px 14px;
  color: var(--text);
  border-bottom: 1px solid #1c305433;
  vertical-align: top;
}
.despre-table tbody tr:last-child td { border-bottom: none; }
.despre-table tbody tr:hover td { background: #ffffff06; }
.despre-table td:first-child { color: var(--muted); font-size: 12px; width: 32px; }
.despre-icon { margin-right: 5px; }
.despre-author {
  display: inline-block;
  background: #1e3a5f55;
  border: 1px solid #38bdf833;
  color: #7dd3fc;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 11px;
  margin: 2px 2px 2px 0;
  white-space: nowrap;
}
.despre-contributors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.despre-contrib-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.despre-contrib-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.despre-contrib-bots {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.despre-footer {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
}
.despre-footer code {
  background: #1c305455;
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent-soft);
}
