:root {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: #e8edf8;
  background: #0b1020;
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; padding: 32px 20px;
  background: #11182b; border-right: 1px solid #263049;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
}
.logo { font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.logo span { color: #7d9cff; }
.tagline, .muted, .version { color: #919bb2; }
.tagline { font-size: 13px; margin-top: 4px; }
nav { margin-top: 45px; display: grid; gap: 8px; }
nav a {
  color: #aab6cc; text-decoration: none;
  padding: 13px; border-radius: 10px; font-size: 14px;
}
nav a:hover, nav .active { background: #26365a; color: white; }
.version { margin-top: auto; font-size: 12px; }
main { flex: 1; min-width: 0; padding: 40px; max-width: 1500px; }
header, .section-header {
  display: flex; justify-content: space-between;
  align-items: center; gap: 20px;
}
h1 { font-size: 32px; margin: 5px 0; }
h2 { margin: 0 0 8px; font-size: 20px; }
.eyebrow { color: #8ca7ff; font-size: 11px; letter-spacing: 2px; }
.status {
  color: #7de4b0; background: #17352f;
  padding: 10px 15px; border-radius: 30px; font-size: 12px;
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin: 35px 0;
}
.card, .panel {
  background: #151e32; border: 1px solid #293550;
  border-radius: 16px;
}
.card { padding: 23px; }
.card p { color: #a9b4c9; font-size: 13px; margin: 0 0 15px; }
.card strong { font-size: 34px; }
.panel { padding: 26px; margin-bottom: 22px; }
.upload-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 15px; margin: 24px 0;
}
.upload {
  border: 1px dashed #556585; border-radius: 12px;
  padding: 23px; display: grid; gap: 15px; font-size: 14px;
}
input { width: 100%; max-width: 100%; font-size: 12px; color: #cbd5e8; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
button {
  border: 0; border-radius: 10px; padding: 13px 18px;
  background: #7595ff; color: #081025;
  font-weight: 700; cursor: pointer;
}
button.secondary { background: #293751; color: #e1e9ff; }
button:disabled { opacity: .45; cursor: not-allowed; }
.table-wrap { overflow-x: auto; margin-top: 22px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 14px; border-bottom: 1px solid #2a3650; font-size: 13px; }
th { color: #aab7d0; font-weight: 500; }
.empty { text-align: center; color: #919bb2; padding: 35px; }
.tag { font-weight: 700; }
.added { color: #72e0ae; }
.removed { color: #ff8791; }
.changed { color: #ffca81; }
footer { color: #78859c; font-size: 12px; margin-top: 30px; }
@media(max-width: 850px) {
  body { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 18px; }
  nav { margin-top: 12px; display: flex; overflow-x: auto; }
  .version, .tagline { display: none; }
  main { padding: 18px; }
  header { align-items: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .upload-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  h1 { font-size: 27px; }
}

/* Column mapping */
.mapping-panel {
  margin: 22px 0;
  padding: 20px;
  background: #101a30;
  border: 1px solid #354566;
  border-radius: 14px;
}
.mapping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.column-field {
  display: grid;
  gap: 7px;
  margin: 15px 0;
  font-size: 13px;
  color: #c5d0e4;
}
.column-field select {
  width: 100%;
  padding: 11px;
  color: #e8edf8;
  background: #202d47;
  border: 1px solid #435475;
  border-radius: 9px;
}
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .mapping-grid { grid-template-columns: 1fr; }
}

/* ListeFark 0.1.2 report tools */
.report-tools {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.report-tools label {
  display: grid;
  gap: 8px;
  color: #aebbd2;
  font-size: 13px;
}

.report-tools input,
.report-tools select {
  width: 100%;
  min-width: 0;
  padding: 12px;
  color: #e8edf8;
  background: #10192b;
  border: 1px solid #354566;
  border-radius: 9px;
  font: inherit;
}

.report-tools input:focus,
.report-tools select:focus {
  outline: 2px solid #7595ff;
  outline-offset: 2px;
}

@media (max-width: 850px) {
  .report-tools {
    grid-template-columns: 1fr;
  }
}

/* ListeFark 0.1.3 */
.identity-panel {
  margin: 16px 0 22px;
  padding: 18px;
  background: #111c32;
  border: 1px solid #354566;
  border-radius: 12px;
}
.identity-panel label {
  display: block;
  margin-bottom: 10px;
  color: #d4e0f8;
  font-size: 14px;
  font-weight: 600;
}
.identity-panel select {
  width: 100%;
  max-width: 350px;
  padding: 12px;
  color: #e8edf8;
  background: #202d47;
  border: 1px solid #435475;
  border-radius: 9px;
}

/* ListeFark 0.1.4 */
.mapping-profile {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: #c5d0e4;
  font-size: 13px;
}
.mapping-profile input {
  width: 100%;
  padding: 12px;
  color: #e8edf8;
  background: #202d47;
  border: 1px solid #435475;
  border-radius: 9px;
}
.mapping-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.mapping-actions button {
  font-size: 12px;
  padding: 10px 12px;
}
.mapping-warning {
  color: #ffcb85;
  font-size: 13px;
}

/* ListeFark 0.2.0 */
.passport-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.passport-form {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 20px;
  background: #101a30;
  border: 1px solid #354566;
  border-radius: 12px;
}
.passport-form h3 {
  margin: 0 0 5px;
  font-size: 17px;
}
.passport-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #bac8e0;
}
.passport-form input,
.passport-form select,
.passport-toolbar input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  color: #e8edf8;
  background: #202d47;
  border: 1px solid #435475;
  border-radius: 9px;
  font: inherit;
}
.passport-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.passport-toolbar > input {
  flex: 1;
  min-width: 180px;
}
.passport-restore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #293751;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
}
.passport-restore input {
  max-width: 135px;
  font-size: 10px;
}
.passport-list {
  display: grid;
  gap: 12px;
}
.passport-card {
  padding: 18px;
  border: 1px solid #354566;
  border-radius: 12px;
  background: #10192d;
}
.passport-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.passport-head h3 {
  margin: 0 0 6px;
}
.passport-head p {
  margin: 0 0 12px;
}
.passport-buttons {
  display: flex;
  gap: 8px;
}
.passport-buttons button,
.passport-alias button {
  padding: 8px 11px;
  font-size: 12px;
}
.passport-alias {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #283752;
  font-size: 13px;
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .passport-grid {
    grid-template-columns: 1fr;
  }
}

/* ListeFark 0.2.1 */
.workspace-panel {
  border-color: #3b527a;
}
.workspace-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
}
.workspace-controls label {
  display: grid;
  gap: 8px;
  flex: 1;
  color: #b5c3dc;
  font-size: 13px;
}
.workspace-controls select {
  width: 100%;
  padding: 13px;
  background: #202d47;
  border: 1px solid #435475;
  border-radius: 9px;
  color: #e8edf8;
}
.workspace-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}
.workspace-summary span {
  padding: 9px 12px;
  border-radius: 9px;
  background: #263652;
  color: #d7e3fa;
  font-size: 12px;
}
.workspace-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.workspace-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #344867;
  border-radius: 10px;
  color: #e5ecfc;
  text-decoration: none;
  font-size: 13px;
}
.workspace-action:hover {
  background: #263652;
}
.workspace-action > span:first-child {
  color: #8eaaff;
  font-weight: 700;
}
.workspace-panel h3 {
  font-size: 16px;
}
@media (max-width: 700px) {
  .workspace-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .workspace-controls label,
  .workspace-controls button {
    width: 100%;
  }
}

/* ListeFark 0.2.2 */
.history-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}
.history-tools > input,
#historyProductSearch {
  flex: 1;
  min-width: 180px;
  width: 100%;
  padding: 12px;
  color: #e8edf8;
  background: #202d47;
  border: 1px solid #435475;
  border-radius: 9px;
}
.history-restore {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #c6d4ec;
}
.history-restore input { max-width: 210px; }
.history-list { display: grid; gap: 10px; }
.history-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border: 1px solid #354566;
  border-radius: 12px;
  background: #111b30;
  overflow-wrap: anywhere;
}
.history-card p {
  margin: 4px 0;
  font-size: 12px;
}
.history-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.history-buttons button {
  padding: 8px 12px;
  font-size: 12px;
}
.history-detail {
  margin: 22px 0;
  padding: 16px;
  border-radius: 12px;
  background: #10192d;
}
.history-products {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.history-product-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid #354566;
  font-size: 13px;
}
.history-product-row span { color: #aebbd2; }
@media (max-width: 700px) {
  .history-tools > * { width: 100%; }
}

/* ListeFark single-screen navigation */

[hidden] {
  display: none !important;
}

main {
  min-height: 100vh;
}

main > header {
  margin-bottom: 28px;
}

main > header .eyebrow {
  display: none;
}

main > header h1 {
  font-size: clamp(25px, 3vw, 33px);
  letter-spacing: -0.8px;
}

main > header .muted {
  font-size: 14px;
}

.sidebar nav {
  display: grid;
  gap: 5px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 9px;
  border-left: 3px solid transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.sidebar nav a:hover {
  background: #202e4a;
  color: #ffffff;
}

.sidebar nav a.active {
  background: #293b60;
  border-left-color: #88a6ff;
  color: #ffffff;
  font-weight: 650;
}

.sidebar nav a:focus-visible,
.lf-shortcut:focus-visible {
  outline: 2px solid #a0b7ff;
  outline-offset: 3px;
}

/* Each section is now its own view. */
main > .panel {
  margin: 0;
}

main > .stats {
  margin-top: 0;
}

main .panel {
  animation: lfAppear 0.15s ease-out;
}

@keyframes lfAppear {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide repeated titles, keep interactive controls. */
#upload > h2:first-child,
#passport > .section-header h2,
#history > .section-header h2,
#results > .section-header h2 {
  display: none;
}

#upload > p.muted:first-of-type,
#results > .section-header .muted {
  display: none;
}

/* Dashboard actions */
.lf-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.lf-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  background: #263652;
  border: 1px solid #3c5072;
  color: #e8edf8;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.lf-shortcut.primary {
  background: #7595ff;
  border-color: #7595ff;
  color: #081025;
}

.lf-shortcut:hover {
  filter: brightness(1.1);
}

/* Reduce repeated panel spacing. */
.panel > .section-header {
  margin-bottom: 20px;
}

.panel > .section-header h2 {
  letter-spacing: -0.3px;
}

@media (max-width: 850px) {
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 13px 16px;
    background: #11182b;
  }

  .sidebar .logo {
    font-size: 20px;
  }

  .sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 0 2px;
    scrollbar-width: thin;
  }

  .sidebar nav a {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .sidebar nav a.active {
    border-left: 0;
    border-bottom-color: #88a6ff;
  }

  main {
    min-height: auto;
    padding: 22px 16px;
  }

  main > header {
    margin-bottom: 20px;
  }

  .lf-shortcuts {
    flex-direction: column;
  }

  .lf-shortcut {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  main .panel {
    animation: none;
  }

  .sidebar nav a {
    transition: none;
  }
}

/* ListeFark 0.2.3 */
:root {
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", Inter, sans-serif;
}
.sidebar nav a { gap: 12px; }
.sidebar nav a svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.lf-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.lf-icon-button svg,
.workspace-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.panel h2 {
  font-size: 19px;
  letter-spacing: -0.35px;
}
.panel h3 {
  font-size: 15px;
  letter-spacing: -0.2px;
}
.insights-panel {
  margin-top: 28px;
  padding: 20px;
  background: #101a30;
  border: 1px solid #324462;
  border-radius: 14px;
}
.insights-heading h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.insights-heading p {
  margin: 0;
  font-size: 13px;
}
.insights-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.insight-metric {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #1c2a45;
  border-radius: 10px;
}
.insight-metric span {
  color: #bbc8de;
  font-size: 12px;
}
.insight-metric strong {
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}
.insight-alert-row td:first-child {
  border-left: 3px solid #f2be6b;
}
#insightsNote {
  font-size: 12px;
  line-height: 1.65;
}
@media (max-width: 700px) {
  .insights-panel { padding: 14px; }
  .insights-metrics {
    grid-template-columns: 1fr;
  }
}

/* ListeFark 0.2.4 */
.full-backup { margin: 20px 0; padding: 16px; border: 1px solid #354566;
  border-radius: 12px; background: #10192d; }
.full-backup h3 { margin: 0 0 12px; }
.full-backup-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.full-backup-actions label { display: grid; gap: 5px; font-size: 13px; color: #bac8e0; }
.full-backup-actions input { max-width: 230px; font-size: 12px; }
#dataStatus { margin-bottom: 0; }

/* ListeFark 0.3.0 — İş Asistanı */
.lf-task-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:18px 0; }
.lf-task-box { display:grid; align-content:start; gap:12px; background:#101a30; padding:18px; border:1px solid #354566; border-radius:12px; }
.lf-task-box h3 { margin:0; }
.lf-task-box label { display:grid; gap:7px; color:#bfcde5; font-size:13px; }
.lf-task-box input, .lf-task-box textarea, .lf-task-box select, .lf-task-filter input, .lf-task-filter select, #draftText {
  width:100%; min-width:0; padding:11px; background:#202d47; color:#e8edf8; border:1px solid #435475; border-radius:9px; font:inherit;
}
.lf-task-filter { display:flex; gap:12px; margin:18px 0; }
.lf-task-filter input { flex:1; }
.lf-task-filter select { width:auto; }
.lf-task-list { display:grid; gap:9px; margin-bottom:25px; }
.lf-task { display:flex; align-items:flex-start; gap:12px; padding:14px; background:#121e32; border:1px solid #354566; border-radius:10px; }
.lf-task input[type=checkbox] { margin-top:4px; }
.lf-task-body { flex:1; min-width:0; overflow-wrap:anywhere; }
.lf-task-body p { margin:8px 0; font-size:12px; }
.lf-task-body small { display:block; margin-top:7px; color:#afbed5; }
.lf-task button { padding:8px 12px; font-size:12px; }
.lf-draft-form { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.lf-draft-form .lf-wide, .lf-draft-form button { grid-column:1 / -1; }
#draftText { resize:vertical; line-height:1.5; }
@media(max-width:800px) {
  .lf-task-grid, .lf-draft-form { grid-template-columns:1fr; }
  .lf-task-filter { flex-direction:column; }
  .lf-task-filter select { width:100%; }
}

/* ListeFark 0.3.1 */
.lf-assistant { margin: 20px 0; }
.lf-assistant-form { display: flex; gap: 10px; }
.lf-assistant-form input { flex:1; min-width:0; padding:12px;
  border-radius:9px; border:1px solid #435475; color:#e8edf8; background:#202d47; }
.lf-assistant-examples { display:flex; flex-wrap:wrap; gap:8px; }
.lf-assistant-examples button { font-size:12px; padding:9px 12px; }
.lf-assistant-answer { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65;
  padding:16px; border:1px solid #435475; background:#111c30; border-radius:10px; }
@media(max-width:600px) {
  .lf-assistant-form { flex-direction:column; }
  .lf-assistant-form button { width:100%; }
}

/* ListeFark 0.3.2 */
.lf-account-box {
  max-width: 620px;
  padding: 24px;
  margin: 20px 0;
  background: #111c30;
  border: 1px solid #354566;
  border-radius: 14px;
}
.lf-account-name {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 16px;
}
.lf-account-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
#lfAccountStatus {
  margin-top: 18px;
  line-height: 1.55;
}
@media (max-width: 600px) {
  .lf-account-buttons {
    flex-direction: column;
  }
  .lf-account-buttons button {
    width: 100%;
  }
}
