/* ========================================================
   Limegraf CRM — Global Styles
   Dark + Lime (Limegraf brand)
   ======================================================== */

:root {
  --bg-base:     #07090C;
  --bg-card:     #11141A;
  --bg-elevated: #161A22;
  --bg-input:    #161A22;
  --bg-hover:    #1B1F28;

  --border:      #232730;
  --border-hov:  #353B47;
  --border-soft: #1B1F28;

  --accent:      #CCFF00;
  --accent-hov:  #D9FF33;
  --accent-dim:  rgba(204, 255, 0, 0.12);
  --accent-glow: rgba(204, 255, 0, 0.18);
  --accent-text: #07090C;

  --text:        #F2F4F7;
  --text-muted:  #9CA3AF;
  --text-subtle: #6B7280;

  --success:     #22C55E;
  --warning:     #F59E0B;
  --danger:      #EF4444;
  --info:        #3B82F6;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow:    0 4px 20px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.02) inset;
  --shadow-lg: 0 24px 60px -16px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.03) inset;
  --shadow-glow: 0 0 0 1px var(--accent), 0 12px 32px -10px var(--accent-glow);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 1px 2px rgba(0,0,0,0.4);

  --bg-app-gradient: radial-gradient(1200px 600px at 20% -10%, rgba(204,255,0,0.04), transparent 60%),
                     radial-gradient(900px 500px at 100% 100%, rgba(204,255,0,0.025), transparent 60%);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  font-family: var(--font-sans);
  font-size: 14px;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-base);
  background-image: var(--bg-app-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  font-feature-settings: "cv11","ss01","ss03";
}

/* ===== Reset ===== */
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; padding: 0; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3F3F46; }

/* ===== Typography ===== */
.text-xs   { font-size: 11px; }
.text-sm   { font-size: 12px; }
.text-base { font-size: 14px; }
.text-md   { font-size: 15px; }
.text-lg   { font-size: 17px; }
.text-xl   { font-size: 22px; line-height: 1.3; }
.text-2xl  { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.text-3xl  { font-size: 34px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }

.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-accent { color: var(--accent); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: all 150ms ease;
  white-space: nowrap;
  user-select: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(180deg, #DDFF33, var(--accent));
  color: var(--accent-text);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 6px 18px -6px var(--accent-glow);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #E5FF55, var(--accent-hov));
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 10px 24px -8px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-hov); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-hover); }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { filter: brightness(1.1); }

.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-lg { padding: 11px 18px; font-size: 14px; }

/* ===== Inputs ===== */
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 150ms;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.input::placeholder { color: var(--text-subtle); }
.textarea { min-height: 80px; resize: vertical; }

.label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ===== Card ===== */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent 50%), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

/* ===== Badge / Pill ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge-accent  { background: var(--accent-dim); color: var(--accent); border-color: rgba(204,255,0,0.3); }
.badge-success { background: rgba(34,197,94,0.12); color: var(--success); border-color: rgba(34,197,94,0.3); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); border-color: rgba(245,158,11,0.3); }
.badge-danger  { background: rgba(239,68,68,0.12); color: var(--danger); border-color: rgba(239,68,68,0.3); }
.badge-info    { background: rgba(59,130,246,0.12); color: var(--info); border-color: rgba(59,130,246,0.3); }

/* ===== Layout: App Shell ===== */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, rgba(17,20,26,0.92), rgba(11,13,17,0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  transition: opacity 150ms;
}
.sidebar-brand:hover { opacity: 0.85; }
.sidebar-brand-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, rgba(204,255,0,0.18), rgba(204,255,0,0.04));
  border: 1px solid rgba(204,255,0,0.25);
  border-radius: 10px;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px -4px rgba(204,255,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.sidebar-brand-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 50%);
}
.sidebar-brand-logo img { width: 26px; height: 26px; display: block; }
.sidebar-brand-meta { display: flex; flex-direction: column; line-height: 1.15; }
.sidebar-brand-text { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.sidebar-brand-sub { font-size: 10px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-top: 2px; }

.sidebar-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  padding: 12px 10px 4px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: background 140ms ease, color 140ms ease, transform 100ms ease;
  cursor: pointer;
  position: relative;
}
.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(204,255,0,0.18), rgba(204,255,0,0.06));
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(204,255,0,0.18), inset 2px 0 0 var(--accent);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -14px; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px var(--accent-glow);
}
.nav-item-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--text-subtle);
  transition: color 140ms;
}
.nav-item:hover .nav-item-icon { color: var(--text-muted); }
.nav-item.active .nav-item-icon { color: var(--accent); }

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
}
.user-chip:hover { background: var(--bg-hover); }
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #88CC00);
  color: var(--accent-text);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.user-chip-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-chip-name { font-size: 12px; font-weight: 600; }
.user-chip-role { font-size: 10px; color: var(--text-subtle); }

/* ===== Main ===== */
.main {
  padding: 24px 32px;
  max-width: 100%;
  overflow-x: hidden;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 16px;
}
.page-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  background: linear-gradient(180deg, #FFFFFF, #B8BCC4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-subtitle { color: var(--text-muted); margin-top: 6px; font-size: 13px; }

/* ===== Utility ===== */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.grid { display: grid; }
.w-full { width: 100%; }
.relative { position: relative; }
.hidden { display: none; }

/* ===== Toast / Notify ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideUp 200ms ease;
}
.toast-error { border-color: var(--danger); }
.toast-success { border-color: var(--success); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Login Page ===== */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(204,255,0,0.1), transparent 60%),
    radial-gradient(700px 400px at 50% 110%, rgba(204,255,0,0.06), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.015), transparent 70%),
    var(--bg-base);
  position: relative;
  overflow: hidden;
}
.login-shell::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 1px; height: 1px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 200px 80px rgba(204,255,0,0.03),
    0 0 600px 200px rgba(204,255,0,0.015);
  transform: translate(-50%, -50%);
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(204,255,0,0.4), transparent);
}
.login-logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(204,255,0,0.18), rgba(204,255,0,0.04));
  border: 1px solid rgba(204,255,0,0.25);
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px -6px rgba(204,255,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}
.login-logo img { width: 40px; height: 40px; display: block; }
.login-title { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 6px; }
.login-sub { color: var(--text-muted); font-size: 13px; margin: 0 0 26px; }

.form-field { margin-bottom: 14px; }

.login-footer {
  margin-top: 22px;
  text-align: center;
  color: var(--text-subtle);
  font-size: 11px;
}

/* ===== Stat Cards ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent 50%), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: border-color 150ms, transform 150ms;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 80px at 20% 0%, rgba(204,255,0,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 200ms;
  pointer-events: none;
}
.stat:hover { border-color: var(--border-hov); transform: translateY(-1px); }
.stat:hover::after { opacity: 1; }
.stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
  line-height: 1.1;
}
.stat-trend {
  font-size: 11px;
  color: var(--success);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.stat-trend.down { color: var(--danger); }

/* ===== Top Bar ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 13px;
  flex: 1;
  max-width: 440px;
  color: var(--text-subtle);
  font-size: 13px;
  transition: all 150ms;
  box-shadow: var(--shadow-card);
}
.search-box:focus-within {
  border-color: rgba(204,255,0,0.4);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search-box input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
}
.search-box kbd {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ===== Section block ===== */
.section { margin-bottom: 24px; }
.section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ===== Spinner ===== */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Data Table ===== */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead th {
  text-align: left;
  padding: 11px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  font-weight: 600;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.data-table tbody tr {
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 100ms;
}
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table tbody tr:last-child { border-bottom: 0; }
.data-table td {
  padding: 12px 16px;
  vertical-align: middle;
}
.data-table .col-actions {
  text-align: right;
  white-space: nowrap;
}
.data-table .truncate {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
}

/* ===== Avatar mini ===== */
.avatar-mini {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #88CC00);
  color: var(--accent-text);
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 10px;
  flex-shrink: 0;
}
.avatar-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Tik (check) - tablodaki check işaretleri ===== */
.tik {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-subtle);
}
.tik.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Modal / Drawer ===== */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: none;
}
.backdrop.open { display: block; animation: fadeIn 150ms ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  max-height: 90vh;
  width: min(560px, calc(100vw - 32px));
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.modal.open { display: flex; animation: modalIn 180ms ease; }
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 120ms;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text); }

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-base);
}

/* ===== Drawer (sağdan açılan müşteri detay) ===== */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

/* ===== Form Grid ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-row.col-1 { grid-template-columns: 1fr; }
.form-row.col-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  padding: 0 2px;
}
.tab {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 120ms;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ===== Activity item ===== */
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.activity-item:last-child { border-bottom: 0; }
.activity-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.activity-icon.arama   { background: rgba(59,130,246,0.12);  color: var(--info); }
.activity-icon.mail    { background: rgba(245,158,11,0.12);  color: var(--warning); }
.activity-icon.gorusme { background: rgba(34,197,94,0.12);   color: var(--success); }
.activity-icon.not     { background: var(--accent-dim);      color: var(--accent); }
.activity-meta {
  flex: 1;
  min-width: 0;
}
.activity-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 4px;
}
.activity-tip { font-weight: 600; }
.activity-by  { color: var(--text-muted); }
.activity-date { color: var(--text-subtle); margin-left: auto; font-size: 11px; }
.activity-desc { color: var(--text); font-size: 13px; line-height: 1.5; }
.activity-sonuc { color: var(--text-muted); font-size: 11px; margin-top: 2px; }

/* ===== Detay panel field ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 18px;
}
.detail-grid.col-1 { grid-template-columns: 1fr; }
.detail-field { }
.detail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  font-weight: 600;
  margin-bottom: 4px;
}
.detail-value {
  font-size: 13px;
  color: var(--text);
  word-break: break-word;
}
.detail-value a {
  color: var(--accent);
}
.detail-value a:hover { text-decoration: underline; }
.detail-value.empty { color: var(--text-subtle); font-style: italic; }

/* ===== Quick action bar ===== */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 20px;
}
.quick-actions .btn {
  font-size: 12px;
  padding: 7px 10px;
}

/* ===== Filter bar ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-bar .input,
.filter-bar .select {
  height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  background: var(--bg-elevated);
  width: auto;
  min-width: 130px;
}

/* ===== Task / List Item Cards ===== */
.list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: all 120ms;
}
.list-item:hover { border-color: var(--border-hov); background: var(--bg-hover); }
.list-item.done { opacity: 0.55; }
.list-item.done .list-item-title { text-decoration: line-through; }

.list-item-check {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-hov);
  flex-shrink: 0;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 120ms;
  margin-top: 1px;
}
.list-item-check:hover { border-color: var(--accent); }
.list-item-check.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.list-item-body { flex: 1; min-width: 0; }
.list-item-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.list-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.list-item-meta .due-soon { color: var(--warning); }
.list-item-meta .overdue  { color: var(--danger); }

.list-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 120ms;
}
.list-item:hover .list-item-actions { opacity: 1; }

/* ===== Meeting card ===== */
.meeting-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 120ms;
}
.meeting-card:hover { border-color: var(--border-hov); }
.meeting-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.meeting-date-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  text-align: center;
  flex-shrink: 0;
  min-width: 64px;
}
.meeting-day { font-size: 20px; font-weight: 700; line-height: 1; }
.meeting-month {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.meeting-body { flex: 1; min-width: 0; }
.meeting-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.meeting-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.meeting-notes-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

/* ===== Empty state ===== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state svg {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  color: var(--text-subtle);
  opacity: 0.5;
}
.empty-state-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.empty-state-text { font-size: 13px; }

/* ===== Markdown render (toplantı notları) ===== */
.md {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}
.md h1, .md h2, .md h3 {
  font-weight: 600;
  margin: 16px 0 8px;
  letter-spacing: -0.01em;
}
.md h1 { font-size: 18px; }
.md h2 { font-size: 16px; }
.md h3 { font-size: 14px; }
.md p { margin: 8px 0; }
.md ul, .md ol { margin: 8px 0; padding-left: 20px; }
.md li { margin: 2px 0; }
.md code {
  background: var(--bg-elevated);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.md strong { color: var(--accent); font-weight: 600; }
