/* ============================================================
   Sırma Metal CRM — Design System v2
   Skill: ui-ux-pro-max (Soft UI Evolution, Sales Intelligence)
   Colors : Primary #2563EB · Accent #059669 · Navy sidebar
   Font   : Plus Jakarta Sans (Enterprise SaaS)
   Density: 7/10 · Motion: 4/10 · Variance: 6/10
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Core palette */
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --green-50: #ECFDF5;
  --green-600:#059669;
  --red-50:   #FEF2F2;
  --red-600:  #DC2626;
  --amber-50: #FFFBEB;
  --amber-600:#D97706;
  --slate-50: #F8FAFC;
  --slate-100:#F1F5F9;
  --slate-200:#E2E8F0;
  --slate-300:#CBD5E1;
  --slate-400:#94A3B8;
  --slate-500:#64748B;
  --slate-700:#334155;
  --slate-800:#1E293B;
  --slate-900:#0F172A;

  /* Semantic tokens */
  --color-primary:        var(--blue-600);
  --color-primary-hover:  var(--blue-700);
  --color-primary-light:  var(--blue-50);
  --color-accent:         var(--green-600);
  --color-accent-light:   var(--green-50);
  --color-destructive:    var(--red-600);
  --color-destructive-lt: var(--red-50);
  --color-warning:        var(--amber-600);
  --color-warning-lt:     var(--amber-50);
  --color-success:        var(--green-600);
  --color-success-lt:     var(--green-50);
  --color-background:     var(--slate-100);
  --color-card:           #FFFFFF;
  --color-foreground:     var(--slate-900);
  --color-secondary:      var(--slate-700);
  --color-muted:          var(--slate-200);
  --color-muted-fg:       var(--slate-500);
  --color-border:         var(--slate-200);
  --color-border-strong:  var(--slate-300);
  --color-ring:           var(--blue-600);

  /* Sales pipeline colors */
  --color-won:        #059669;
  --color-lost:       #DC2626;
  --color-pending:    #D97706;
  --color-blocked:    #EA580C;
  --color-gold:       #CA8A04;

  /* Sidebar */
  --sb-bg:          #0F172A;
  --sb-bg2:         #111827;
  --sb-border:      rgba(255,255,255,0.06);
  --sb-hover:       rgba(255,255,255,0.05);
  --sb-active-bg:   #2563EB;
  --sb-text:        #94A3B8;
  --sb-text-hover:  #CBD5E1;
  --sb-text-active: #FFFFFF;
  --sb-w:           256px;
  --topbar-h:       54px;

  /* Font */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --text-2xs: 10px;
  --text-xs:  11px;
  --text-sm:  12px;
  --text-base:13px;
  --text-md:  14px;
  --text-lg:  16px;
  --text-xl:  20px;
  --text-2xl: 24px;
  --text-3xl: 30px;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl:20px;

  /* Shadows — Soft UI Evolution */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-sm: 0 1px 4px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
  --shadow:    0 2px 8px rgba(15,23,42,0.08), 0 1px 3px rgba(15,23,42,0.05);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.10), 0 2px 6px rgba(15,23,42,0.06);
  --shadow-lg: 0 8px 32px rgba(15,23,42,0.12), 0 3px 12px rgba(15,23,42,0.07);
  --shadow-xl: 0 16px 48px rgba(15,23,42,0.16), 0 6px 20px rgba(15,23,42,0.10);
  --shadow-blue:  0 4px 14px rgba(37,99,235,0.30);
  --shadow-green: 0 4px 14px rgba(5,150,105,0.25);

  /* Motion — 4/10 standard */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-fast:  150ms;
  --dur:       220ms;
  --dur-slow:  350ms;
}

/* ─── BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--dur-fast); }
a:hover { color: var(--color-primary-hover); }

h1,h2,h3,h4,h5,h6 { letter-spacing: -0.3px; }

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

/* ─── AUTH LAYOUT ────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0F172A 0%, #1a2744 40%, #0c1427 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.auth-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(37,99,235,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 10% 80%, rgba(5,150,105,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.auth-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  z-index: 1;
}

.auth-card {
  background: #FFFFFF;
  border-radius: var(--r-2xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.06);
}

.auth-logo { text-align: center; margin-bottom: 32px; }

.auth-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 82px;
  background: none;
  margin-bottom: 16px;
}

.auth-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--slate-900);
}
.auth-subtitle {
  font-size: var(--text-sm);
  color: var(--color-muted-fg);
  margin-top: 4px;
  font-weight: 500;
}
.auth-footer {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-muted-fg);
  margin-top: 28px;
}

/* ─── MAIN LAYOUT ────────────────────────────────────────── */
.crm-body { display: flex; min-height: 100vh; }

/* ─── SIDEBAR ────────────────────────────────────────────── */
.crm-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sb-w);
  background: linear-gradient(180deg, var(--sb-bg) 0%, var(--sb-bg2) 100%);
  border-right: 1px solid var(--sb-border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  transition: transform var(--dur-slow) var(--ease);
  scrollbar-width: none;
}
.crm-sidebar::-webkit-scrollbar { display: none; }

/* Sidebar brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--sb-border);
  flex-shrink: 0;
}

.brand-logo {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text    { color: #F1F5F9; font-weight: 700; font-size: 15px; letter-spacing: -0.3px; }
.brand-version { font-size: 10px; color: rgba(255,255,255,0.20); margin-left: auto; font-weight: 500;
                 background: rgba(255,255,255,0.07); padding: 2px 6px; border-radius: 20px; }

/* Section labels */
.sidebar-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  padding: 18px 18px 5px;
  list-style: none;
}

.sidebar-nav { list-style: none; padding: 8px 8px 0; flex: 1; }
.nav-item    { margin-bottom: 1px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  color: var(--sb-text);
  border-radius: var(--r);
  font-size: var(--text-md);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
  position: relative;
}

.nav-link:hover {
  background: var(--sb-hover);
  color: var(--sb-text-hover);
}

.nav-link.active {
  background: var(--sb-active-bg);
  color: var(--sb-text-active);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(37,99,235,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}

.nav-link i {
  font-size: 15px;
  flex-shrink: 0;
  width: 17px;
  text-align: center;
  opacity: 0.8;
}
.nav-link.active i { opacity: 1; }

/* Sidebar footer */
.sidebar-footer {
  padding: 10px 8px 18px;
  border-top: 1px solid var(--sb-border);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  padding: 7px 8px;
  border-radius: var(--r);
  transition: background var(--dur-fast);
}
.sidebar-user:hover { background: var(--sb-hover); }

.user-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--blue-600), #60A5FA);
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.10);
}

.user-info    { min-width: 0; }
.user-name    { color: #E2E8F0; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role    { color: var(--sb-text); font-size: 10px; font-weight: 500; text-transform: capitalize; }

.btn-logout {
  color: var(--sb-text);
  font-size: 16px;
  padding: 7px;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-logout:hover { color: #F87171; background: rgba(220,38,38,0.12); }

/* ─── MAIN AREA ──────────────────────────────────────────── */
.crm-main {
  margin-left: var(--sb-w);
  padding: 24px 28px;
  flex: 1;
  min-width: 0;
}

/* Mobile topbar */
.crm-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  z-index: 999;
  box-shadow: var(--shadow-xs);
}

.btn-toggle-sidebar {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--color-muted-fg);
  padding: 4px 6px;
  border-radius: var(--r-sm);
  transition: background var(--dur-fast);
  line-height: 1;
}
.btn-toggle-sidebar:hover { background: var(--color-muted); }
.topbar-title { font-weight: 700; font-size: var(--text-lg); letter-spacing: -0.2px; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
  backdrop-filter: blur(3px);
}

/* ─── PAGE HEADER ────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-foreground);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-title i { color: var(--color-primary); font-size: 18px; }
.page-title small { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted-fg); letter-spacing: 0; }

.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ─── CARDS ──────────────────────────────────────────────── */
.crm-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.crm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--color-foreground);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  gap: 8px;
}

.crm-card-header i {
  color: var(--color-primary);
  font-size: 15px;
}

/* ─── STAT CARDS ─────────────────────────────────────────── */
.stat-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Top accent bar */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

/* Watermark icon */
.stat-card::after {
  content: '';
  position: absolute;
  right: -8px; bottom: -8px;
  width: 72px; height: 72px;
  border-radius: 50%;
  opacity: 0.06;
}

.stat-blue::before   { background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); }
.stat-green::before  { background: linear-gradient(90deg, var(--green-600), #34D399); }
.stat-red::before    { background: linear-gradient(90deg, var(--red-600), #F87171); }
.stat-orange::before { background: linear-gradient(90deg, #EA580C, #FB923C); }

.stat-icon {
  font-size: 38px;
  position: absolute;
  right: 10px; top: 12px;
  opacity: 0.06;
  pointer-events: none;
  line-height: 1;
}
.stat-blue   .stat-icon { color: var(--blue-600); }
.stat-green  .stat-icon { color: var(--green-600); }
.stat-red    .stat-icon { color: var(--red-600); }
.stat-orange .stat-icon { color: #EA580C; }

.stat-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1;
  color: var(--color-foreground);
}

.stat-sub {
  font-size: var(--text-xs);
  color: var(--color-muted-fg);
  margin-top: 2px;
}

/* ─── FLASH MESSAGES ─────────────────────────────────────── */
.flash-container { margin-bottom: 18px; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500)) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(37,99,235,0.25) !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600)) !important;
  box-shadow: var(--shadow-blue) !important;
  transform: translateY(-1px);
  color: #fff !important;
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-secondary {
  border-color: var(--color-border) !important;
  color: var(--color-secondary) !important;
  background: var(--color-card) !important;
}
.btn-outline-secondary:hover {
  background: var(--color-muted) !important;
  border-color: var(--color-border-strong) !important;
  color: var(--color-foreground) !important;
}

/* Icon action button */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-muted-fg);
  font-size: 13px;
  transition: all var(--dur-fast);
  cursor: pointer;
}
.btn-icon:hover {
  background: var(--color-muted);
  color: var(--color-foreground);
  border-color: var(--color-border-strong);
}
.btn-icon.btn-icon-danger:hover {
  background: var(--red-50);
  color: var(--red-600);
  border-color: #FECACA;
}

/* ─── FORMS ──────────────────────────────────────────────── */
.form-control, .form-select {
  font-family: var(--font);
  font-size: var(--text-base);
  border-color: var(--color-border);
  border-radius: var(--r-sm);
  color: var(--color-foreground);
  background-color: var(--color-card);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  padding: 8px 11px;
}

.form-control::placeholder { color: var(--slate-400); }

.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
  outline: none;
  background-color: var(--color-card);
}

.form-control-sm, .form-select-sm {
  font-size: var(--text-sm);
  padding: 6px 10px;
  border-radius: var(--r-xs);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: 5px;
  display: block;
}

.input-group-text {
  background: var(--color-muted);
  border-color: var(--color-border);
  color: var(--color-muted-fg);
  font-size: var(--text-sm);
}

/* Filter bar */
.filter-form { }

/* ─── DATA TABLE ─────────────────────────────────────────── */
.crm-table {
  font-size: var(--text-base);
  border-collapse: collapse;
  width: 100%;
}

.crm-table thead th {
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  background: #FAFBFC;
  padding: 10px 12px;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.crm-table thead th:first-child { border-radius: var(--r-lg) 0 0 0; }
.crm-table thead th:last-child  { border-radius: 0 var(--r-lg) 0 0; }

.crm-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  font-size: var(--text-base);
}
.crm-table tbody tr:last-child td { border-bottom: none; }

.crm-table tbody tr {
  cursor: pointer;
  transition: background var(--dur-fast);
}
.crm-table tbody tr:hover td {
  background: #F0F7FF;
}

/* Company avatar in table */
.company-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  border-radius: var(--r-sm);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(37,99,235,0.25);
}

/* ─── BADGES & CHIPS ─────────────────────────────────────── */
.color-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.color-green  { background: var(--green-600); }
.color-yellow { background: var(--amber-600); }
.color-red    { background: var(--red-600); }
.color-blue   { background: var(--blue-600); }

/* Heat badges */
.heat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.heat-very_hot   { background: var(--red-50);     color: #991B1B; border: 1px solid #FECACA; }
.heat-hot        { background: #FFF7ED;            color: #9A3412; border: 1px solid #FED7AA; }
.heat-warm,
.heat-medium     { background: var(--amber-50);    color: #92400E; border: 1px solid #FDE68A; }
.heat-cold       { background: var(--blue-50);     color: #1E40AF; border: 1px solid var(--blue-100); }
.heat-not_suitable { background: var(--slate-100); color: var(--slate-500); border: 1px solid var(--color-border); }

/* Source chips */
.source-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-muted);
  color: var(--color-muted-fg);
  letter-spacing: 0.1px;
}
.source-business_wolves { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.source-google_ads      { background: #FEFCE8; color: #854D0E; border: 1px solid #FEF08A; }
.source-linkedin        { background: var(--blue-50); color: #1E40AF; border: 1px solid var(--blue-100); }
.source-instagram       { background: #FDF2F8; color: #86198F; border: 1px solid #F0ABFC; }
.source-fair            { background: #F5F3FF; color: #5B21B6; border: 1px solid #DDD6FE; }
.source-referral        { background: var(--green-50); color: #065F46; border: 1px solid #A7F3D0; }
.source-website         { background: #F0F9FF; color: #0C4A6E; border: 1px solid #BAE6FD; }
.source-manual          { background: var(--slate-100); color: var(--slate-500); border: 1px solid var(--color-border); }

/* Stage chip */
.stage-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

/* Quote status */
.quote-status-badge { padding: 2px 9px; border-radius: 20px; font-size: var(--text-xs); font-weight: 700; background: var(--color-muted); color: var(--color-muted-fg); }
.status-sent        { background: var(--blue-100); color: #1D4ED8; }
.status-approved,
.status-ordered     { background: #DCFCE7; color: #166534; }
.status-lost,
.status-expired     { background: var(--red-50); color: var(--red-600); }
.status-reviewing   { background: #FEF3C7; color: #92400E; }

/* Task type pills */
.task-type-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  background: var(--color-muted);
  color: var(--color-muted-fg);
}
.type-send_email     { background: var(--blue-100); color: #1D4ED8; }
.type-send_whatsapp  { background: #DCFCE7; color: #166534; }
.type-call           { background: #FCE7F3; color: #9D174D; }
.type-prepare_quote,
.type-followup_quote { background: #FEF3C7; color: #92400E; }
.type-meeting        { background: #EDE9FE; color: #5B21B6; }
.type-recontact      { background: #FFF7ED; color: #9A3412; }

/* ─── CUSTOMER SHOW PAGE ─────────────────────────────────── */

/* Stage bar */
.stage-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
}
.stage-bar-label {
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
  color: var(--color-muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.stage-select  { max-width: 280px; flex-shrink: 0; }
.stage-progress {
  flex: 1;
  height: 5px;
  background: var(--color-muted);
  border-radius: 10px;
  overflow: hidden;
  min-width: 80px;
}
.stage-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  border-radius: 10px;
  transition: width var(--dur-slow) var(--ease);
}

/* Info list */
.info-list  { display: flex; flex-direction: column; gap: 6px; }
.info-row   { display: flex; align-items: baseline; gap: 8px; font-size: var(--text-sm); }
.info-label { color: var(--color-muted-fg); min-width: 70px; font-size: var(--text-xs); font-weight: 600; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.3px; }

.company-notes {
  background: var(--amber-50);
  border: 1px solid #FDE68A;
  border-radius: var(--r);
  padding: 10px 12px;
  font-size: var(--text-sm);
  margin-top: 10px;
  line-height: 1.6;
}

.product-interests { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

/* Contacts */
.contact-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-card:last-child { border-bottom: none; }

.contact-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-name    { font-weight: 600; font-size: var(--text-md); }
.contact-title   { color: var(--color-muted-fg); font-size: var(--text-xs); margin-top: 1px; }
.contact-actions { display: flex; gap: 4px; margin-top: 5px; }

.btn-contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: var(--color-muted);
  color: var(--color-muted-fg);
  font-size: 13px;
  transition: background var(--dur-fast), color var(--dur-fast);
  cursor: pointer;
  border: 1px solid var(--color-border);
}
.btn-contact-action:hover { background: var(--blue-50); color: var(--blue-600); border-color: var(--blue-100); }

/* Tabs */
.crm-tabs { border-bottom: 2px solid var(--color-border); }
.crm-tabs .nav-link {
  color: var(--color-muted-fg);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 8px 14px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.crm-tabs .nav-link:hover  { color: var(--color-foreground); }
.crm-tabs .nav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 700;
}
.crm-tab-content { margin-top: 16px; }

/* Activity timeline */
.activity-timeline { display: flex; flex-direction: column; }
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.activity-item:last-child { border-bottom: none; }

.activity-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--blue-600);
  flex-shrink: 0;
  border: 1px solid var(--blue-100);
}

.activity-meta    { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; flex-wrap: wrap; }
.activity-user    { font-weight: 700; font-size: var(--text-xs); color: var(--color-foreground); }
.activity-date    { color: var(--color-muted-fg); font-size: var(--text-xs); }
.activity-summary { font-size: var(--text-sm); line-height: 1.6; }
.activity-request { font-size: var(--text-xs); color: #5B21B6; background: #F5F3FF; padding: 3px 9px; border-radius: var(--r-sm); margin-top: 5px; display: inline-block; border: 1px solid #DDD6FE; }
.activity-next    { font-size: var(--text-xs); color: var(--blue-600); margin-top: 4px; }
.activity-followup { font-size: var(--text-xs); color: var(--amber-600); margin-top: 3px; }

/* Quotes */
.quote-card {
  background: var(--slate-50);
  border: 1px solid var(--color-border);
  border-radius: var(--r);
  padding: 12px 14px;
  transition: border-color var(--dur-fast);
}
.quote-card:hover { border-color: var(--blue-100); }
.quote-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.quote-body   { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--text-sm); }

/* Files */
.file-list { display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  background: var(--slate-50);
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border);
  transition: background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.file-item:hover { background: var(--blue-50); border-color: var(--blue-100); box-shadow: var(--shadow-xs); }
.file-icon  { color: var(--red-600); font-size: 18px; flex-shrink: 0; }
.file-info  { flex: 1; min-width: 0; }
.file-name  { font-size: var(--text-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta  { font-size: var(--text-xs); color: var(--color-muted-fg); }
.file-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Templates */
.template-item { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.template-item:last-child { border-bottom: none; }
.template-header { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.template-name   { font-weight: 700; font-size: var(--text-sm); }
.template-subject { font-size: var(--text-xs); color: var(--color-muted-fg); margin-bottom: 4px; }
.template-preview { font-size: var(--text-xs); color: var(--color-muted-fg); line-height: 1.5; }
.template-actions { display: flex; gap: 6px; margin-top: 6px; }

/* ─── TASKS ──────────────────────────────────────────────── */
.task-list { display: flex; flex-direction: column; }

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 6px;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-fast);
  border-radius: var(--r-sm);
}
.task-item:last-child { border-bottom: none; }
.task-item:hover { background: var(--slate-50); }

.task-item.priority-urgent { border-left: 3px solid var(--red-600); padding-left: 9px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.task-item.priority-high   { border-left: 3px solid var(--amber-600); padding-left: 9px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.task-item.overdue         { background: rgba(220,38,38,0.03); }
.task-item.overdue:hover   { background: rgba(220,38,38,0.06); }

.btn-complete-task {
  border: none;
  background: none;
  color: var(--slate-300);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  line-height: 1;
  transition: color var(--dur-fast), transform var(--dur-fast);
  flex-shrink: 0;
  margin-top: 1px;
}
.btn-complete-task:hover  { color: var(--green-600); transform: scale(1.15); }
.btn-complete-task:focus-visible { outline: 2px solid var(--color-ring); border-radius: 50%; }

.task-title { font-size: var(--text-base); font-weight: 500; line-height: 1.45; }
.task-meta  { font-size: var(--text-xs); color: var(--color-muted-fg); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.task-meta a { color: var(--color-muted-fg); font-weight: 600; }
.task-meta a:hover { color: var(--color-primary); }

/* Full task list */
.task-list-full { display: flex; flex-direction: column; gap: 5px; }
.task-full-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  transition: box-shadow var(--dur-fast), border-color var(--dur-fast);
}
.task-full-item:hover { box-shadow: var(--shadow-sm); border-color: var(--slate-300); }
.task-full-item.status-done { opacity: 0.4; }
.btn-complete-task-lg {
  border: none; background: none;
  color: var(--slate-300); cursor: pointer;
  font-size: 21px; padding: 0;
  transition: color var(--dur-fast), transform var(--dur-fast);
  flex-shrink: 0; line-height: 1;
}
.btn-complete-task-lg:hover { color: var(--green-600); transform: scale(1.1); }
.task-full-title { font-weight: 500; font-size: var(--text-md); }
.task-full-meta  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 3px; }

/* ─── KANBAN ─────────────────────────────────────────────── */
.kanban-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: flex-start;
}

.kanban-col {
  min-width: 204px;
  max-width: 204px;
  background: var(--slate-100);
  border-radius: var(--r-lg);
  padding: 10px;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.kanban-col-header {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-muted-fg);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px;
}

.kanban-col-count {
  margin-left: auto;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-muted-fg);
  padding: 0 6px;
  height: 16px;
  display: inline-flex;
  align-items: center;
}

.kanban-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--blue-600);
  border-radius: var(--r);
  padding: 10px 11px;
  margin-bottom: 6px;
  cursor: grab;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease), border-color var(--dur-fast);
}
.kanban-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue-100);
}
.kanban-card.dragging { opacity: 0.45; cursor: grabbing; }
.kanban-card-company { font-size: var(--text-sm); font-weight: 700; color: var(--color-foreground); }
.kanban-card-contact { font-size: var(--text-xs); color: var(--color-muted-fg); margin-top: 3px; display: flex; align-items: center; gap: 4px; }

/* ─── MINI CUSTOMER LIST ─────────────────────────────────── */
.customer-mini-list { display: flex; flex-direction: column; }
.mini-customer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-fast);
  border-radius: var(--r-sm);
}
.mini-customer:last-child { border-bottom: none; }
.mini-customer:hover { background: var(--slate-50); }
.mini-customer-info { flex: 1; min-width: 0; }
.mini-customer-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-foreground);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-customer-name:hover { color: var(--color-primary); }
.mini-customer-meta { font-size: var(--text-xs); color: var(--color-muted-fg); }
.mini-customer-actions { display: flex; gap: 4px; }

.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  transition: box-shadow var(--dur-fast), transform var(--dur-fast);
}
.btn-wa:hover { box-shadow: 0 2px 8px rgba(37,211,102,0.50); color: #fff; transform: scale(1.05); }

/* ─── ACTION ITEM (Dashboard today) ─────────────────────── */
.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-fast);
  border-radius: var(--r-sm);
}
.action-item:last-child { border-bottom: none; }
.action-item:hover { background: var(--slate-50); }

.action-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--blue-600);
  flex-shrink: 0;
}
.action-icon.action-wa    { background: #F0FDF4; border-color: #BBF7D0; color: #16A34A; }
.action-icon.action-email { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-600); }
.action-icon.action-call  { background: #FDF4FF; border-color: #E9D5FF; color: #7C3AED; }
.action-icon.action-quote { background: var(--amber-50); border-color: #FDE68A; color: var(--amber-600); }

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.empty-state-icon {
  width: 48px; height: 48px;
  background: var(--slate-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--slate-300);
}
.empty-state p { color: var(--color-muted-fg); font-size: var(--text-sm); margin: 0; }

/* ─── PAGINATION ─────────────────────────────────────────── */
.pagination .page-link {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-secondary);
  border-color: var(--color-border);
  transition: all var(--dur-fast);
}
.pagination .page-link:hover { background: var(--slate-50); border-color: var(--slate-300); color: var(--color-foreground); }
.pagination .page-item.active .page-link {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}

/* ─── ALERT OVERRIDES ────────────────────────────────────── */
.alert {
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--r);
}
.alert-success { background: var(--green-50); border-color: #A7F3D0; color: #065F46; }
.alert-danger  { background: var(--red-50);   border-color: #FECACA; color: #991B1B; }

/* ─── MODALS ─────────────────────────────────────────────── */
.modal-content {
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
}
.modal-header {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 20px;
}
.modal-title {
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.3px;
}
.modal-body   { padding: 20px; }
.modal-footer { border-top: 1px solid var(--color-border); padding: 14px 20px; }

/* ─── DROPDOWNS ──────────────────────────────────────────── */
.dropdown-menu {
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 6px;
  font-family: var(--font);
  font-size: var(--text-sm);
}
.dropdown-item {
  border-radius: var(--r-sm);
  padding: 7px 10px;
  font-weight: 500;
  color: var(--color-foreground);
  transition: background var(--dur-fast);
}
.dropdown-item:hover { background: var(--slate-100); color: var(--color-foreground); }
.dropdown-item.text-danger:hover { background: var(--red-50); color: var(--red-600); }

/* ─── UTILITIES ──────────────────────────────────────────── */
.fw-800 { font-weight: 800 !important; }
.text-primary { color: var(--color-primary) !important; }
.text-success { color: var(--green-600) !important; }
.text-danger  { color: var(--red-600) !important; }
.text-warning { color: var(--amber-600) !important; }
.text-muted   { color: var(--color-muted-fg) !important; }
.bg-primary   { background: var(--color-primary) !important; }

/* Divider */
.crm-divider { height: 1px; background: var(--color-border); margin: 16px 0; }

/* ─── ANIMATIONS ────────────────────────────────────────── */

/* ─── PAGE PROGRESS BAR ──────────────────────────────────── */
#crm-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2563EB, #38BDF8, #059669);
  background-size: 200% 100%;
  z-index: 999999;
  border-radius: 0 3px 3px 0;
  transition: width 0.25s ease-out;
  animation: progressShimmer 1.5s linear infinite;
  pointer-events: none;
}
#crm-progress.done {
  width: 100% !important;
  opacity: 0;
  transition: width 0.15s ease-out, opacity 0.3s 0.1s ease;
}
@keyframes progressShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ─── LOADING OVERLAY ────────────────────────────────────── */
#crm-loader {
  position: fixed;
  inset: 0;
  background: #0F172A;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.4,0,1,1), transform 0.5s cubic-bezier(0.4,0,1,1);
}
#crm-loader.crm-loader-hide {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Logo mark SVG — dark theme */
.loader-mark {
  width: 88px;
  height: 100px;
}

/* SVG element animations */
.lm-grey {
  transform-origin: 13px 48px;
  animation: scaleInY 0.5s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}
.lm-navy {
  transform-origin: 28px 48px;
  animation: scaleInY 0.5s cubic-bezier(0.16,1,0.3,1) 0.28s both;
}
.lm-bar1 {
  transform-origin: 0px 53.75px;
  animation: scaleInX 0.4s cubic-bezier(0.16,1,0.3,1) 0.50s both;
}
.lm-bar2 {
  transform-origin: 0px 61.25px;
  animation: scaleInX 0.4s cubic-bezier(0.16,1,0.3,1) 0.62s both;
}

@keyframes scaleInY {
  from { transform: scaleY(0); opacity: 0.4; }
  to   { transform: scaleY(1); opacity: 1; }
}
@keyframes scaleInX {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.loader-wordmark {
  margin-top: 22px;
  text-align: center;
  animation: loaderFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 0.75s both;
}
.loader-wordmark-name {
  font-family: var(--font);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 5px;
  color: #F1F5F9;
  text-transform: uppercase;
}
.loader-wordmark-sub {
  font-family: var(--font);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #38BDF8;
  text-transform: uppercase;
  margin-top: 4px;
}

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

.loader-dots {
  display: flex;
  gap: 7px;
  margin-top: 28px;
  animation: loaderFadeUp 0.4s cubic-bezier(0.16,1,0.3,1) 0.95s both;
}
.loader-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4A8EA6;
  animation: dotPulse 1.3s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.35; }
  50%       { transform: scale(1.30); opacity: 1; }
}

/* ─── ANIMATIONS ────────────────────────────────────────── */

/* Keyframes */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scalePop {
  0%   { transform: scale(0.85); opacity: 0; }
  70%  { transform: scale(1.04); }
  100% { transform: scale(1);    opacity: 1; }
}
@keyframes checkPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
@keyframes slideOut {
  to { opacity: 0; transform: translateX(20px) scale(0.96); }
}
@keyframes dropZonePulse {
  0%, 100% { border-color: var(--color-primary); }
  50%       { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
}

/* Stat cards — staggered fade up on page load */
.stat-card {
  animation: fadeSlideUp 0.45s both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card:nth-child(1) { animation-delay: 0.04s }
.stat-card:nth-child(2) { animation-delay: 0.09s }
.stat-card:nth-child(3) { animation-delay: 0.14s }
.stat-card:nth-child(4) { animation-delay: 0.19s }
.stat-card:nth-child(5) { animation-delay: 0.24s }
.stat-card:nth-child(6) { animation-delay: 0.29s }
.stat-card:nth-child(7) { animation-delay: 0.34s }
.stat-card:nth-child(8) { animation-delay: 0.39s }

/* crm-card genel giriş */
.crm-card {
  animation: fadeSlideUp 0.4s both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tablo satırları — soldan kayar */
.crm-table tbody tr {
  animation: fadeSlideRight 0.3s both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.crm-table tbody tr:nth-child(1)  { animation-delay: 0.05s }
.crm-table tbody tr:nth-child(2)  { animation-delay: 0.08s }
.crm-table tbody tr:nth-child(3)  { animation-delay: 0.11s }
.crm-table tbody tr:nth-child(4)  { animation-delay: 0.14s }
.crm-table tbody tr:nth-child(5)  { animation-delay: 0.17s }
.crm-table tbody tr:nth-child(6)  { animation-delay: 0.20s }
.crm-table tbody tr:nth-child(7)  { animation-delay: 0.23s }
.crm-table tbody tr:nth-child(8)  { animation-delay: 0.26s }
.crm-table tbody tr:nth-child(9)  { animation-delay: 0.29s }
.crm-table tbody tr:nth-child(10) { animation-delay: 0.32s }

/* Flash mesajı — yukarıdan kayar */
.flash-container {
  animation: fadeSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Sayfa başlığı */
.page-header {
  animation: fadeSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Görev tamamlama check animasyonu */
.btn-complete-task.completing i,
.btn-complete-task-lg.completing i {
  animation: checkPulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--green-600);
}

/* Tamamlanan satır çıkış animasyonu */
.task-item.done,
.task-full-item.done {
  animation: slideOut 0.35s cubic-bezier(0.4, 0, 1, 1) both;
}

/* Kanban kolonları — sıralı giriş */
.kanban-col {
  animation: fadeSlideUp 0.4s both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.kanban-col:nth-child(1) { animation-delay: 0.04s }
.kanban-col:nth-child(2) { animation-delay: 0.10s }
.kanban-col:nth-child(3) { animation-delay: 0.16s }
.kanban-col:nth-child(4) { animation-delay: 0.22s }
.kanban-col:nth-child(5) { animation-delay: 0.28s }
.kanban-col:nth-child(6) { animation-delay: 0.34s }

/* Kanban kart giriş */
.kanban-card {
  animation: scalePop 0.35s both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kanban drop zone */
.kanban-col.drag-over {
  border-color: var(--color-primary);
  background: var(--blue-50);
  animation: dropZonePulse 1s ease infinite;
}
.kanban-col.drag-over .kanban-col-header {
  color: var(--color-primary);
}

/* Sayaç değeri — animasyon sırasında monospace görünüm */
.stat-value.counting {
  font-variant-numeric: tabular-nums;
}

/* Action item'lar — dashboard */
.action-item {
  animation: fadeSlideRight 0.3s both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.action-item:nth-child(1) { animation-delay: 0.10s }
.action-item:nth-child(2) { animation-delay: 0.16s }
.action-item:nth-child(3) { animation-delay: 0.22s }
.action-item:nth-child(4) { animation-delay: 0.28s }
.action-item:nth-child(5) { animation-delay: 0.34s }

/* prefers-reduced-motion — tüm animasyonları kaldır */
@media (prefers-reduced-motion: reduce) {
  .stat-card, .crm-card, .crm-table tbody tr,
  .flash-container, .page-header, .kanban-col,
  .kanban-card, .action-item {
    animation: none !important;
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .crm-sidebar { transform: translateX(-100%); }
  .crm-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .crm-main { margin-left: 0; padding: 18px 16px; padding-top: calc(var(--topbar-h) + 18px); }
  .sidebar-overlay.show { display: block; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 575px) {
  .crm-main { padding: 14px 12px; padding-top: calc(var(--topbar-h) + 14px); }
  .stat-value { font-size: 24px; }
  .stage-bar { flex-wrap: wrap; }
  .stage-progress { display: none; }
  .crm-tabs .nav-link { padding: 7px 9px; font-size: var(--text-xs); }
  .auth-card { padding: 32px 24px; }
  .kanban-col { min-width: 180px; max-width: 180px; }
}
