/* ==========================================================================
   Matasis Flow — arayüz stilleri (Bootstrap 5.3 üzerine)
   ========================================================================== */

:root,
[data-bs-theme="light"] {
    --mf-brand: #2b59c3;
    --mf-brand-2: #1e3f8f;
    --mf-bg: #f4f6fa;
    --mf-surface: #ffffff;
    --mf-surface-2: #f8f9fc;
    --mf-col-bg: #eef1f6;
    --mf-border: #e1e5ee;
    --mf-text: #1f2937;
    --mf-muted: #6b7280;
    --mf-card-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px rgba(16, 24, 40, .04);
    --mf-card-hover: 0 4px 12px rgba(16, 24, 40, .12), 0 0 0 1px rgba(43, 89, 195, .25);
    --mf-topbar: #ffffff;
    --mf-danger-soft: #fdecec;
    --bs-primary: #2b59c3;
    --bs-primary-rgb: 43, 89, 195;
    --bs-link-color: #2b59c3;
    --bs-link-color-rgb: 43, 89, 195;
    --bs-body-bg: var(--mf-bg);
}

[data-bs-theme="dark"] {
    --mf-brand: #6d8ff0;
    --mf-brand-2: #4b6fd8;
    --mf-bg: #0f141c;
    --mf-surface: #18202b;
    --mf-surface-2: #1d2633;
    --mf-col-bg: #141b25;
    --mf-border: #2a3443;
    --mf-text: #e5e9f0;
    --mf-muted: #94a0b4;
    --mf-card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .05);
    --mf-card-hover: 0 4px 14px rgba(0, 0, 0, .5), 0 0 0 1px rgba(109, 143, 240, .45);
    --mf-topbar: #141b25;
    --mf-danger-soft: #3a1d22;
    --bs-primary: #4b6fd8;
    --bs-primary-rgb: 75, 111, 216;
    --bs-link-color: #8ea8f5;
    --bs-link-color-rgb: 142, 168, 245;
    --bs-body-bg: var(--mf-bg);
    --bs-body-color: var(--mf-text);
}

html, body { height: 100%; }
body { background: var(--mf-bg); color: var(--mf-text); font-size: .925rem; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn-primary { --bs-btn-bg: var(--bs-primary); --bs-btn-border-color: var(--bs-primary); --bs-btn-hover-bg: var(--mf-brand-2); --bs-btn-hover-border-color: var(--mf-brand-2); --bs-btn-active-bg: var(--mf-brand-2); }
.btn { display: inline-flex; align-items: center; gap: .35rem; justify-content: center; }
.btn-xs { padding: .1rem .45rem; font-size: .78rem; border-radius: .3rem; }
.form-control, .form-select { background-color: var(--mf-surface); }
.card { background: var(--mf-surface); border-color: var(--mf-border); }
.table { --bs-table-bg: transparent; }
kbd { background: var(--mf-surface-2); color: var(--mf-text); border: 1px solid var(--mf-border); border-bottom-width: 2px; font-size: .75rem; padding: .05rem .35rem; }
.text-muted, .text-body-secondary { color: var(--mf-muted) !important; }

/* ---------- Simgeler ---------- */
.mf-i { width: 1.05em; height: 1.05em; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -.15em; }
.mf-i-xl { width: 48px; height: 48px; stroke-width: 1.6; }
.mf-type, .mf-prio { width: 16px; height: 16px; flex-shrink: 0; }
.mf-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .45rem; }

/* ---------- Üst çubuk ---------- */
.mf-topbar { position: sticky; top: 0; z-index: 1030; height: 56px; display: flex; align-items: center; gap: 1rem; padding: 0 1rem; background: var(--mf-topbar); border-bottom: 1px solid var(--mf-border); }
.mf-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--mf-text); font-size: 1.08rem; letter-spacing: -.01em; white-space: nowrap; }
.mf-brand:hover { text-decoration: none; color: var(--mf-text); }
.mf-brand b { color: var(--mf-brand); font-weight: 700; }
.mf-logo { width: 30px; height: 30px; color: var(--mf-brand); }
.mf-brand-lg { font-size: 1.5rem; }
.mf-brand-lg .mf-logo { width: 40px; height: 40px; }
.mf-topnav { gap: .25rem; align-items: center; }
.mf-topnav > a, .mf-topnav-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: .45rem; color: var(--mf-muted); font-weight: 500; border: 0; background: none; }
.mf-topnav > a:hover, .mf-topnav-btn:hover, .mf-topnav > a.active { background: var(--mf-surface-2); color: var(--mf-text); text-decoration: none; }
.mf-boards-menu { min-width: 280px; max-height: 70vh; overflow: auto; }
.mf-search { flex: 1; max-width: 420px; position: relative; display: flex; align-items: center; margin-left: auto; }
.mf-search .mf-i { position: absolute; left: .7rem; color: var(--mf-muted); }
.mf-search input { width: 100%; border: 1px solid var(--mf-border); background: var(--mf-surface-2); color: var(--mf-text); border-radius: .5rem; padding: .42rem 2.2rem .42rem 2.1rem; outline: none; }
.mf-search input:focus { border-color: var(--mf-brand); background: var(--mf-surface); box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .15); }
.mf-search kbd { position: absolute; right: .55rem; }
.mf-topbar-right { display: flex; align-items: center; gap: .35rem; }
.mf-icon-btn { position: relative; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: none; color: var(--mf-muted); }
.mf-icon-btn:hover { background: var(--mf-surface-2); color: var(--mf-text); }
.mf-icon-btn .mf-i { width: 20px; height: 20px; }
.mf-badge { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e5484d; color: #fff; font-size: .65rem; font-weight: 700; line-height: 17px; text-align: center; }
.mf-user-btn { border: 0; background: none; padding: 0; border-radius: 50%; }
[data-bs-theme="light"] .mf-theme-light, [data-bs-theme="dark"] .mf-theme-dark { display: none; }
.mf-create-btn { white-space: nowrap; }
.mf-notif-menu { width: 380px; max-width: 95vw; padding: 0; overflow: hidden; }

/* ---------- Avatar, etiket, durum ---------- */
.mf-avatar { --s: 28px; width: var(--s); height: var(--s); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: calc(var(--s) * .4); font-weight: 600; flex-shrink: 0; user-select: none; box-shadow: 0 0 0 2px var(--mf-surface); }
.mf-avatar-empty { background: var(--mf-col-bg); color: var(--mf-muted); border: 1px dashed var(--mf-muted); box-shadow: none; }
.mf-avatars { display: inline-flex; }
/* Yönetim paneli çöp kutusu */
.mf-trash-item { display: flex; gap: 1rem; padding: 1rem; border-top: 1px solid var(--mf-border); flex-wrap: wrap; }
.mf-trash-item .mf-grow { min-width: 240px; }
/* Kişi önerisi (üye ekleme kutusu) */
.mf-suggest { position: relative; }
.mf-suggest-list { position: absolute; z-index: 1050; top: calc(100% + 4px); left: 0; right: 0; max-height: 320px; overflow-y: auto; background: var(--mf-surface); border: 1px solid var(--mf-border); border-radius: .5rem; box-shadow: 0 8px 24px rgba(16, 24, 40, .14); padding: .25rem; }
.mf-suggest-item { display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem; border-radius: .375rem; cursor: pointer; }
.mf-suggest-item:hover, .mf-suggest-item.active { background: var(--mf-col-bg); }
.mf-mention-list { position: fixed; top: auto; right: auto; z-index: 2000; max-height: 260px; }
.mf-suggest-empty { padding: .6rem .7rem; color: var(--mf-muted); font-size: .875rem; }
.mf-avatars .mf-avatar + .mf-avatar { margin-left: -6px; }
/* Çoklu atama: payını bitiren kişinin balonunda yeşil tik */
.mf-asg-done { position: relative; }
.mf-asg-done::after { content: "✓"; position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 9px; line-height: 13px; text-align: center; box-shadow: 0 0 0 1.5px var(--mf-surface); }
.mf-avatar-more { background: var(--mf-col-bg); color: var(--mf-muted); font-size: calc(var(--s) * .36); }
.mf-asg-progress { font-size: .7rem; font-weight: 700; color: #16a34a; background: color-mix(in srgb, #16a34a 12%, transparent); border-radius: .3rem; padding: .05rem .35rem; white-space: nowrap; }
.mf-assignee-row { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; }
.mf-assignee-row .mf-grow { min-width: 0; }
.mf-assignee-state { font-size: .75rem; white-space: nowrap; }
.mf-label { --c: #64748b; display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; padding: .08rem .45rem; border-radius: .3rem; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); white-space: nowrap; }
.mf-status { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: .12rem .45rem; border-radius: .3rem; white-space: nowrap; }
.mf-status-todo { background: var(--mf-col-bg); color: var(--mf-muted); border: 1px solid var(--mf-border); }
.mf-status-inprogress { background: rgba(59, 130, 246, .14); color: #2563eb; }
.mf-status-done { background: rgba(34, 197, 94, .15); color: #15803d; }
[data-bs-theme="dark"] .mf-status-inprogress { color: #8ab4ff; }
[data-bs-theme="dark"] .mf-status-done { color: #6ee7a0; }
.mf-points { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mf-col-bg); color: var(--mf-muted); font-size: .72rem; font-weight: 700; border: 1px solid var(--mf-border); }
.mf-key { font-size: .78rem; font-weight: 600; color: var(--mf-muted); white-space: nowrap; }
.mf-key-done { text-decoration: line-through; }
.mf-mention { color: var(--mf-brand); background: rgba(var(--bs-primary-rgb), .1); padding: 0 .2rem; border-radius: .25rem; font-weight: 500; }

/* ---------- Ana alan ---------- */
.mf-main { min-height: calc(100vh - 56px); }
.mf-page { max-width: 1240px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.mf-page-narrow { max-width: 860px; }
.mf-page-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.mf-page-head h1 { font-size: 1.5rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.mf-section-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mf-muted); margin: 0 0 .6rem; }
.mf-panel { background: var(--mf-surface); border: 1px solid var(--mf-border); border-radius: .75rem; }
.mf-panel-head { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; border-bottom: 1px solid var(--mf-border); }
.mf-panel-head h2, .mf-panel-head h3 { font-size: 1rem; font-weight: 650; margin: 0; }
.mf-panel-body { padding: 1rem; }
.mf-empty { text-align: center; padding: 2.25rem 1rem; color: var(--mf-muted); }
.mf-empty .mf-i { width: 34px; height: 34px; opacity: .5; margin-bottom: .5rem; }

/* ---------- Pano başlığı ve sekmeler ---------- */
.mf-board-page { display: flex; flex-direction: column; height: calc(100vh - 56px); }
.mf-board-head { padding: 1rem 1.25rem 0; background: var(--mf-bg); }
.mf-crumb { font-size: .8rem; color: var(--mf-muted); }
.mf-crumb a { color: var(--mf-muted); }
.mf-board-title { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin: .2rem 0 .6rem; }
.mf-board-title h1 { font-size: 1.4rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.mf-board-swatch { width: 28px; height: 28px; border-radius: .45rem; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .7rem; font-weight: 700; }
.mf-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--mf-border); overflow-x: auto; scrollbar-width: none; }
.mf-tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; color: var(--mf-muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.mf-tabs a:hover { color: var(--mf-text); text-decoration: none; }
.mf-tabs a.active { color: var(--mf-brand); border-bottom-color: var(--mf-brand); }
.mf-sprint-bar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .6rem 1.25rem; font-size: .85rem; }
.mf-sprint-bar .mf-sprint-name { font-weight: 650; }
.mf-filters { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .75rem 1.25rem; }
.mf-filters .form-control, .mf-filters .form-select { width: auto; min-width: 140px; font-size: .85rem; padding-top: .3rem; padding-bottom: .3rem; }
.mf-filter-search { position: relative; }
.mf-filter-search .mf-i { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--mf-muted); }
.mf-filter-search input { padding-left: 2rem; min-width: 200px; }
.mf-avatar-filter { display: inline-flex; align-items: center; }
.mf-avatar-filter button { border: 0; background: none; padding: 0; margin-left: -4px; border-radius: 50%; transition: transform .1s; }
.mf-avatar-filter button:first-child { margin-left: 0; }
.mf-avatar-filter button:hover { transform: translateY(-2px); z-index: 1; }
.mf-avatar-filter button.active .mf-avatar { box-shadow: 0 0 0 2px var(--mf-surface), 0 0 0 4px var(--mf-brand); }
.mf-chip-toggle { border: 1px solid var(--mf-border); background: var(--mf-surface); color: var(--mf-text); border-radius: 2rem; padding: .25rem .75rem; font-size: .82rem; }
.mf-chip-toggle.active { background: rgba(var(--bs-primary-rgb), .12); border-color: var(--mf-brand); color: var(--mf-brand); }

/* ---------- Kanban ---------- */
.mf-board { flex: 1; display: flex; gap: .85rem; padding: .25rem 1.25rem 1.25rem; overflow-x: auto; overflow-y: hidden; align-items: stretch; }
.mf-col { flex: 0 0 290px; display: flex; flex-direction: column; background: var(--mf-col-bg); border-radius: .75rem; max-height: 100%; border: 1px solid transparent; }
.mf-col-head { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem .5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--mf-muted); }
.mf-col-head .mf-col-count { background: var(--mf-surface); border-radius: 1rem; padding: 0 .45rem; font-size: .72rem; }
.mf-col-head .mf-col-done { color: #22c55e; }
.mf-col-wip { margin-left: auto; font-weight: 600; text-transform: none; letter-spacing: 0; }
.mf-col.mf-over-wip { background: var(--mf-danger-soft); border-color: rgba(229, 72, 77, .4); }
.mf-col.mf-over-wip .mf-col-wip { color: #e5484d; }
.mf-col-body { flex: 1; overflow-y: auto; padding: .15rem .5rem .5rem; min-height: 60px; display: flex; flex-direction: column; gap: .5rem; }
.mf-col-foot { padding: 0 .5rem .5rem; }
.mf-quick-add-btn { width: 100%; text-align: left; border: 0; background: none; color: var(--mf-muted); padding: .45rem .5rem; border-radius: .45rem; font-weight: 500; display: flex; align-items: center; gap: .4rem; }
.mf-quick-add-btn:hover { background: rgba(127, 127, 127, .12); color: var(--mf-text); }
.mf-quick-add textarea { resize: none; font-size: .88rem; }

.mf-card { background: var(--mf-surface); border-radius: .55rem; padding: .65rem .7rem .55rem; box-shadow: var(--mf-card-shadow); cursor: pointer; position: relative; transition: box-shadow .12s, transform .12s; user-select: none; }
.mf-card:hover { box-shadow: var(--mf-card-hover); }
.mf-card:focus-visible { outline: 2px solid var(--mf-brand); outline-offset: 2px; }
.mf-card.mf-dragging { opacity: .4; transform: rotate(1.5deg); }
.mf-card-epic { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #8e4ec6; background: rgba(142, 78, 198, .12); display: inline-block; padding: .05rem .4rem; border-radius: .25rem; margin-bottom: .35rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-card-labels { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .4rem; }
.mf-card-title { font-size: .9rem; line-height: 1.35; margin-bottom: .55rem; word-break: break-word; }
.mf-card-foot { display: flex; align-items: center; gap: .45rem; font-size: .75rem; color: var(--mf-muted); }
.mf-card-foot .mf-meta { display: inline-flex; align-items: center; gap: .2rem; }
.mf-card-foot .mf-avatar { margin-left: auto; }
.mf-due { display: inline-flex; align-items: center; gap: .2rem; padding: 0 .3rem; border-radius: .25rem; }
.mf-due.mf-overdue { background: rgba(229, 72, 77, .15); color: #e5484d; font-weight: 600; }
.mf-due.mf-soon { background: rgba(234, 179, 8, .18); color: #a16207; font-weight: 600; }
[data-bs-theme="dark"] .mf-due.mf-soon { color: #fcd34d; }
.mf-card.mf-hidden { display: none; }
.mf-placeholder { height: 46px; border-radius: .55rem; border: 2px dashed rgba(var(--bs-primary-rgb), .5); background: rgba(var(--bs-primary-rgb), .07); flex-shrink: 0; }
.mf-col.mf-drop-target { border-color: rgba(var(--bs-primary-rgb), .45); }
.mf-board-empty { margin: 3rem auto; max-width: 460px; }

/* ---------- Backlog ---------- */
.mf-backlog { padding: 1rem 1.25rem 3rem; overflow-y: auto; flex: 1; }
.mf-sprint { background: var(--mf-surface); border: 1px solid var(--mf-border); border-radius: .75rem; margin-bottom: 1rem; }
.mf-sprint-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .75rem 1rem; }
.mf-sprint-head h3 { font-size: 1rem; font-weight: 650; margin: 0; }
.mf-sprint-head .mf-sprint-stats { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.mf-sprint-active { border-color: rgba(var(--bs-primary-rgb), .5); box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), .25); }
.mf-backlog-list { min-height: 46px; padding: .25rem .5rem .5rem; }
.mf-backlog-list.mf-drop-target { background: rgba(var(--bs-primary-rgb), .05); }
.mf-row { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: .45rem; border: 1px solid transparent; background: var(--mf-surface); cursor: pointer; }
.mf-row + .mf-row { border-top-color: var(--mf-border); border-radius: 0; }
.mf-row:hover { background: var(--mf-surface-2); }
.mf-row .mf-row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-row.mf-dragging { opacity: .4; }
.mf-cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 0 .45rem; height: 20px; border-radius: 10px; font-size: .72rem; font-weight: 700; }
.mf-cnt-todo { background: var(--mf-col-bg); color: var(--mf-muted); }
.mf-cnt-prog { background: rgba(59, 130, 246, .15); color: #2563eb; }
.mf-cnt-done { background: rgba(34, 197, 94, .15); color: #15803d; }

/* ---------- İş detayı ---------- */
.mf-issue { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 60vh; }
.mf-issue-main { padding: 1.25rem 1.5rem 2rem; min-width: 0; }
.mf-issue-side { padding: 1.25rem; background: var(--mf-surface-2); border-left: 1px solid var(--mf-border); }
.mf-issue-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; font-size: .85rem; color: var(--mf-muted); flex-wrap: wrap; }
.mf-issue-top .mf-top-actions { margin-left: auto; display: flex; gap: .25rem; }
.mf-title-input { font-size: 1.45rem; font-weight: 650; border: 1px solid transparent; background: transparent; width: 100%; padding: .2rem .4rem; margin-left: -.4rem; border-radius: .4rem; color: var(--mf-text); resize: none; overflow: hidden; line-height: 1.3; }
.mf-title-input:hover { background: var(--mf-surface-2); }
.mf-title-input:focus { outline: none; border-color: var(--mf-brand); background: var(--mf-surface); }
.mf-issue h4 { font-size: .9rem; font-weight: 650; margin: 1.5rem 0 .6rem; display: flex; align-items: center; gap: .45rem; }
.mf-desc { padding: .5rem .6rem; margin-left: -.6rem; border-radius: .45rem; cursor: text; min-height: 2.5rem; line-height: 1.55; }
.mf-desc:hover { background: var(--mf-surface-2); }
.mf-desc.mf-desc-empty { color: var(--mf-muted); }
.mf-rich ul { margin: .25rem 0 .25rem 1.1rem; padding: 0; }
.mf-rich code { background: var(--mf-col-bg); padding: .05rem .3rem; border-radius: .25rem; font-size: .85em; }
.mf-field { margin-bottom: 1rem; }
.mf-field > label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mf-muted); margin-bottom: .3rem; }
.mf-field .form-select, .mf-field .form-control { font-size: .88rem; }
.mf-progress { height: 6px; border-radius: 3px; background: var(--mf-col-bg); overflow: hidden; }
.mf-progress > span { display: block; height: 100%; background: #22c55e; transition: width .2s; }
.mf-check-item { display: flex; align-items: center; gap: .5rem; padding: .3rem .4rem; border-radius: .4rem; }
.mf-check-item:hover { background: var(--mf-surface-2); }
.mf-check-item .mf-check-text { flex: 1; }
.mf-check-item.done .mf-check-text { text-decoration: line-through; color: var(--mf-muted); }
.mf-check-item .mf-hover-show { opacity: 0; }
.mf-check-item:hover .mf-hover-show { opacity: 1; }
.mf-check-btn { width: 20px; height: 20px; border-radius: .3rem; border: 2px solid var(--mf-border); background: var(--mf-surface); display: inline-flex; align-items: center; justify-content: center; padding: 0; color: #fff; }
.done .mf-check-btn { background: #22c55e; border-color: #22c55e; }
.mf-check-btn .mf-i { width: 12px; height: 12px; stroke-width: 3; opacity: 0; }
.done .mf-check-btn .mf-i, .mf-check-btn:hover .mf-i { opacity: 1; }
.mf-check-btn:hover:not(:disabled) { border-color: #22c55e; color: #22c55e; }
.done .mf-check-btn:hover { color: #fff; }
.mf-attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.mf-attachment { border: 1px solid var(--mf-border); border-radius: .55rem; overflow: hidden; background: var(--mf-surface); position: relative; }
.mf-attachment-thumb { height: 90px; display: flex; align-items: center; justify-content: center; background: var(--mf-col-bg); color: var(--mf-muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; }
.mf-attachment-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mf-attachment-info { padding: .4rem .55rem; font-size: .78rem; }
.mf-attachment-info a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mf-attachment form { position: absolute; top: .3rem; right: .3rem; }
.mf-dropzone { border: 2px dashed var(--mf-border); border-radius: .55rem; padding: .8rem; text-align: center; color: var(--mf-muted); font-size: .85rem; cursor: pointer; }
.mf-dropzone.over { border-color: var(--mf-brand); background: rgba(var(--bs-primary-rgb), .06); color: var(--mf-brand); }
.mf-comment { display: flex; gap: .7rem; margin-bottom: 1rem; }
.mf-comment-body { flex: 1; min-width: 0; }
.mf-comment-meta { font-size: .82rem; margin-bottom: .15rem; }
.mf-comment-meta .mf-author { font-weight: 600; }
.mf-comment-text { line-height: 1.5; word-break: break-word; }
.mf-comment-actions { font-size: .78rem; display: flex; gap: .6rem; margin-top: .2rem; }
.mf-comment-actions button { border: 0; background: none; padding: 0; color: var(--mf-muted); }
.mf-comment-actions button:hover { color: var(--mf-text); text-decoration: underline; }
.mf-history { list-style: none; padding: 0; margin: 0; }
.mf-history li { display: flex; gap: .6rem; padding: .45rem 0; font-size: .85rem; border-bottom: 1px solid var(--mf-border); }
.mf-history li:last-child { border-bottom: 0; }
.mf-subtle-tabs .nav-link { padding: .3rem .7rem; font-size: .85rem; color: var(--mf-muted); }
.mf-subtle-tabs .nav-link.active { color: var(--mf-brand); background: rgba(var(--bs-primary-rgb), .1); }
.mf-label-picker { max-height: 260px; overflow: auto; min-width: 230px; }
.mf-label-picker label { display: flex; align-items: center; gap: .5rem; padding: .3rem .75rem; cursor: pointer; }
.mf-label-picker label:hover { background: var(--mf-surface-2); }
.mf-issue-modal { border: 0; overflow: hidden; }
.mf-issue-modal .modal-body { background: var(--mf-surface); }
.mf-child { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border: 1px solid var(--mf-border); border-radius: .4rem; margin-bottom: .3rem; background: var(--mf-surface); }

.btn-check:checked + .mf-color-pick,
.btn-check:checked + .mf-avatar { box-shadow: 0 0 0 2px var(--mf-surface), 0 0 0 4px var(--mf-text); }
.btn-check:focus-visible + .mf-color-pick { outline: 2px solid var(--mf-brand); outline-offset: 3px; }

/* ---------- Pano / çalışma alanı kartları ---------- */
.mf-board-tile { display: block; background: var(--mf-surface); border: 1px solid var(--mf-border); border-radius: .75rem; padding: 1rem; color: var(--mf-text); position: relative; overflow: hidden; height: 100%; transition: box-shadow .15s, transform .15s; }
.mf-board-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--tile, var(--mf-brand)); }
.mf-board-tile:hover { text-decoration: none; color: var(--mf-text); box-shadow: 0 6px 20px rgba(16, 24, 40, .1); transform: translateY(-2px); }
.mf-board-tile h3 { font-size: 1.02rem; font-weight: 650; margin: .25rem 0 .2rem; }
.mf-board-tile-new { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .3rem; border-style: dashed; color: var(--mf-muted); min-height: 120px; background: transparent; width: 100%; }
.mf-board-tile-new::before { display: none; }

/* ---------- Pano ana sayfası (dashboard) ---------- */
.mf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .85rem; margin-bottom: 1.25rem; }
.mf-kpi { background: var(--mf-surface); border: 1px solid var(--mf-border); border-radius: .75rem; padding: .9rem 1rem; }
.mf-kpi-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.mf-kpi-label { font-size: .8rem; color: var(--mf-muted); }
.mf-kpi-danger .mf-kpi-value { color: #e5484d; }
.mf-kpi-good .mf-kpi-value { color: #16a34a; }
.mf-list-item { display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border-bottom: 1px solid var(--mf-border); color: var(--mf-text); }
.mf-list-item:last-child { border-bottom: 0; }
.mf-list-item:hover { background: var(--mf-surface-2); text-decoration: none; color: var(--mf-text); }
.mf-list-item .mf-grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-feed-item { display: flex; gap: .65rem; padding: .6rem 1rem; border-bottom: 1px solid var(--mf-border); font-size: .86rem; }
.mf-feed-item:last-child { border-bottom: 0; }
.mf-feed-item time { color: var(--mf-muted); font-size: .76rem; }

/* ---------- Tablo listesi ---------- */
.mf-table { width: 100%; font-size: .87rem; }
.mf-table th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mf-muted); padding: .6rem .75rem; border-bottom: 1px solid var(--mf-border); white-space: nowrap; background: var(--mf-surface-2); }
.mf-table th a { color: inherit; }
.mf-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--mf-border); vertical-align: middle; }
.mf-table tbody tr { cursor: pointer; }
.mf-table tbody tr:hover { background: var(--mf-surface-2); }
.mf-table .mf-title-cell { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Raporlar ---------- */
.mf-bars { display: flex; flex-direction: column; gap: .55rem; }
.mf-bar-row { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: .6rem; font-size: .85rem; }
.mf-bar-row .mf-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-bar-track { height: 10px; background: var(--mf-col-bg); border-radius: 5px; overflow: hidden; display: flex; }
.mf-bar-track > span { display: block; height: 100%; }
.mf-bar-row .mf-bar-num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.mf-chart { width: 100%; height: auto; display: block; overflow: visible; }
.mf-chart text { fill: var(--mf-muted); font-size: 11px; }
.mf-chart .grid { stroke: var(--mf-border); stroke-width: 1; }
.mf-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--mf-muted); }
.mf-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; background: var(--c); vertical-align: -1px; }
.mf-donut-wrap { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Sistem yönetimi ---------- */
.mf-admin-bar { background: var(--mf-surface); border: 1px solid var(--mf-border); border-left: 4px solid #e5484d; border-radius: .75rem; padding: .85rem 1rem 0; margin-bottom: 1rem; }
.mf-admin-bar .mf-tabs { border-bottom: 0; }
.mf-admin-badge { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #e5484d; }

/* ---------- Bildirimler ---------- */
.mf-notif { display: flex; gap: .65rem; padding: .7rem 1rem; border-bottom: 1px solid var(--mf-border); color: var(--mf-text); font-size: .86rem; line-height: 1.4; }
.mf-notif:hover { background: var(--mf-surface-2); text-decoration: none; color: var(--mf-text); }
.mf-notif.unread { background: rgba(var(--bs-primary-rgb), .06); }
.mf-notif.unread::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mf-brand); flex-shrink: 0; margin-top: .4rem; }
.mf-notif time { display: block; font-size: .75rem; color: var(--mf-muted); margin-top: .1rem; }
.mf-notif-icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(var(--bs-primary-rgb), .12); color: var(--mf-brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Bildirim balonları (toast) ---------- */
.mf-toasts { position: fixed; bottom: 1rem; right: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; max-width: min(380px, calc(100vw - 2rem)); }
.mf-toast { background: #1f2937; color: #fff; border-radius: .6rem; padding: .7rem .9rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; animation: mf-in .2s ease-out; }
.mf-toast.error { background: #b42318; }
.mf-toast.success { background: #146c43; }
.mf-toast a { color: #fff; text-decoration: underline; }
.mf-toast button { margin-left: auto; border: 0; background: none; color: rgba(255, 255, 255, .7); padding: 0; }
@keyframes mf-in { from { opacity: 0; transform: translateY(8px); } }
.mf-flash { display: none; }

/* ---------- Giriş / kayıt ---------- */
.mf-auth-body { background: var(--mf-surface); }
.mf-auth { display: flex; min-height: 100vh; }
.mf-auth-side { flex: 0 0 44%; flex-direction: column; justify-content: space-between; padding: 3rem; color: #fff; background: radial-gradient(circle at 20% 20%, #3c6ee0 0, transparent 50%), linear-gradient(145deg, #1e3f8f, #2b59c3 60%, #3a78d6); }
.mf-auth-side .mf-brand { color: #fff; }
.mf-auth-side .mf-brand b { color: #bcd0ff; }
.mf-auth-side .mf-logo { color: rgba(255, 255, 255, .2); }
.mf-auth-side h2 { font-size: 2.3rem; font-weight: 700; letter-spacing: -.02em; }
.mf-auth-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; font-size: 1.02rem; }
.mf-auth-points .mf-i { margin-right: .5rem; }
.mf-auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.mf-auth-card { width: 100%; max-width: 400px; }
.mf-auth-card h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: .3rem; }

/* ---------- Tanıtım ---------- */
.mf-hero { max-width: 1100px; margin: 0 auto; padding: 4rem 1.25rem; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.mf-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.mf-hero h1 span { color: var(--mf-brand); }
.mf-hero-preview { background: var(--mf-col-bg); border-radius: 1rem; padding: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; box-shadow: 0 20px 50px rgba(16, 24, 40, .15); transform: rotate(-1.5deg); }
.mf-hero-preview .mf-card { cursor: default; }
.mf-features { max-width: 1100px; margin: 0 auto 4rem; padding: 0 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.mf-feature { background: var(--mf-surface); border: 1px solid var(--mf-border); border-radius: .85rem; padding: 1.25rem; }
.mf-feature .mf-i { width: 26px; height: 26px; color: var(--mf-brand); margin-bottom: .6rem; }
.mf-feature h3 { font-size: 1.02rem; font-weight: 650; }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 991.98px) {
    .mf-issue { grid-template-columns: 1fr; }
    .mf-issue-side { border-left: 0; border-top: 1px solid var(--mf-border); }
    .mf-hero { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .mf-topbar { gap: .5rem; padding: 0 .6rem; }
    .mf-brand span { display: none; }
    .mf-search kbd { display: none; }
    .mf-col { flex-basis: 85vw; }
    .mf-bar-row { grid-template-columns: 90px 1fr 32px; }
    .mf-issue-main { padding: 1rem; }
}
