:root {
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --bg: #f1f5f9;
    --sidebar-bg: #0f172a;
    --sidebar-text: #cbd5e1;
}

body { background: var(--bg); color: #1e293b; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---- Auth ---- */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); padding: 20px; }
.auth-card { background: #fff; border-radius: 18px; padding: 40px; width: 100%; max-width: 420px; }
.demo-login-cta { background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); border-color: #e2e8f0 !important; }
.demo-panel-banner { border-radius: 12px; }
.brand-logo,
.brand-badge { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), #7c3aed);
    color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.brand-logo-sm { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }

/* ---- Layout ---- */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1030; transition: transform .25s; }
.sidebar-admin { background: #1e1b4b; }

/* Süper Admin — tek sütun formlar */
.admin-single-col {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.admin-single-col .card + .card,
.admin-single-col form > .card {
    margin-top: 0;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px; font-weight: 700; color: #fff; font-size: 18px; }
.sidebar-nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { color: var(--sidebar-text); text-decoration: none; padding: 11px 14px; border-radius: 10px;
    display: flex; align-items: center; gap: 11px; font-size: 14.5px; transition: background .15s; }
.sidebar-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav a.active { background: var(--brand); color: #fff; }
.sidebar-footer { padding: 14px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.main { flex: 1; margin-left: 260px; display: flex; flex-direction: column; min-width: 0; }
.topbar { background: #fff; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 24px;
    border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 1020; }
.topbar-title { font-size: 18px; font-weight: 700; margin: 0; }
.content { padding: 24px; flex: 1; }

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
}

/* ---- Cards / stats ---- */
.stat-card { background: #fff; border-radius: 14px; padding: 20px; border: 1px solid #e9eef5; height: 100%; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; line-height: 1; }
.stat-card .stat-label { color: #64748b; font-size: 13px; }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.card { border: 1px solid #e9eef5; border-radius: 14px; }

/* ---- Pipeline Kanban ---- */
.pipeline-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.pipeline-col { min-width: 270px; width: 270px; background: #eef2f7; border-radius: 14px; display: flex; flex-direction: column; max-height: calc(100vh - 180px); }
.pipeline-col-head { padding: 12px 14px; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 3px solid var(--stage-color, #94a3b8); border-radius: 14px 14px 0 0; background: #fff; }
.pipeline-col-body { padding: 10px; overflow-y: auto; flex: 1; min-height: 80px; }
.lead-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 11px 12px; margin-bottom: 9px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.lead-card:hover { border-color: var(--brand); }
.lead-card .lead-name { font-weight: 600; font-size: 14px; }
.lead-card .lead-meta { font-size: 12px; color: #64748b; }
.score-badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.score-high { background: #dcfce7; color: #15803d; }
.score-mid { background: #fef9c3; color: #a16207; }
.score-low { background: #fee2e2; color: #b91c1c; }
.sortable-ghost { opacity: .45; }
.count-chip { background: #e2e8f0; border-radius: 20px; padding: 1px 9px; font-size: 12px; font-weight: 700; color: #475569; }

/* ---- Misc ---- */
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #64748b; }
.avatar-initials { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.timeline-item { border-left: 2px solid #e2e8f0; padding: 0 0 16px 16px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -6px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
