/* ═══════════════════════════════════════════════════
   MDD Work - İş Takip Platformu
   Koyu tema · Fluent Design esintili arayüz
   ═══════════════════════════════════════════════════ */
:root {
    /* Marka (koyu tema moru) */
    --brand: #9d5bd2;
    --brand-dark: #8445bd;
    --brand-darker: #6d37a0;
    --brand-light: rgba(157, 91, 210, .16);
    --brand-lighter: rgba(157, 91, 210, .07);

    /* Koyu nötr palet */
    --bg: #1b1a1f;
    --surface: #242329;
    --surface-2: #2d2c34;
    --border: #37363f;
    --border-strong: #4a4954;
    --text: #f2f1f4;
    --text-secondary: #b6b4c0;
    --text-muted: #85838f;
    --header-bg: #141318;

    /* Anlamsal renkler (koyu zemin uyumlu) */
    --success: #6ccb5f;
    --success-bg: rgba(108, 203, 95, .13);
    --warning: #f2c661;
    --warning-bg: rgba(242, 198, 97, .13);
    --danger: #f1707b;
    --danger-bg: rgba(241, 112, 123, .13);
    --info: #6cb8f6;
    --info-bg: rgba(108, 184, 246, .13);

    --radius: 8px;
    --radius-sm: 4px;
    --shadow-2: 0 1px 2px rgba(0,0,0,.3);
    --shadow-4: 0 2px 6px rgba(0,0,0,.35);
    --shadow-16: 0 8px 24px rgba(0,0,0,.5);

    --header-h: 52px;
    --sidebar-w: 220px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'Segoe UI Web (West European)', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.icon { vertical-align: -3px; flex-shrink: 0; }

::selection { background: var(--brand-light); }

/* ═══ Üst uygulama çubuğu ═══ */
.app-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    z-index: 300;
}

.app-brand {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
}
.app-brand:hover { background: rgba(255,255,255,.07); }
.app-logo { height: 22px; width: auto; display: block; }

.app-header-right { margin-left: auto; position: relative; }

.app-user {
    display: flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background .12s;
}
.app-user:hover { background: rgba(255,255,255,.07); }
.app-user-name { font-weight: 600; }

.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}
.avatar-sm { width: 30px; height: 30px; font-size: 13px; }
.avatar-header { width: 30px; height: 30px; font-size: 13px; }

/* Kullanıcı menüsü */
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-16);
    border: 1px solid var(--border-strong);
    overflow: hidden;
    color: var(--text);
}
.user-dropdown.open { display: block; animation: dropIn .14s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.user-dropdown-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.user-dropdown-head strong { display: block; font-size: 14px; }
.user-dropdown-head small { color: var(--text-muted); font-size: 12px; }
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--text);
    font-size: 14px;
}
.user-dropdown a:hover { background: var(--surface-2); text-decoration: none; }
.user-dropdown .dropdown-danger { color: var(--danger); }

/* ═══ Yerleşim ═══ */
.layout { display: flex; padding-top: var(--header-h); min-height: 100vh; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }

.content { padding: 24px 32px 56px; max-width: 1400px; }

.page-title {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -.2px;
}

/* ═══ Kenar menüsü ═══ */
.sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--header-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform .2s ease;
}

.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: background .12s, color .12s;
}
.sidebar-nav a .icon { color: var(--text-muted); }
.sidebar-nav a:hover { background: rgba(255,255,255,.05); color: var(--text); text-decoration: none; }
.sidebar-nav a.active {
    background: var(--brand-light);
    color: #fff;
    font-weight: 600;
}
.sidebar-nav a.active .icon { color: var(--brand); }
.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0; top: 25%;
    height: 50%;
    width: 3px;
    border-radius: 2px;
    background: var(--brand);
}

.sidebar-sep { height: 1px; background: var(--border); margin: 8px 12px; }

.sidebar-foot {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(0,0,0,.55);
    z-index: 150;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.menu-toggle:hover { background: rgba(255,255,255,.07); }

/* ═══ Kartlar ═══ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title .icon { color: var(--brand); }
.table-card { padding: 4px 0; overflow-x: auto; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 14px;
}
.section-head h2 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.section-head h2 .icon { color: var(--brand); }
.section-head a { font-size: 13px; font-weight: 600; }

/* ═══ Panel grid ═══ */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
    align-items: start;
}
.card-wide { grid-column: 1 / -1; }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-lg { width: 14px; height: 14px; }

/* ═══ Mini görev listeleri ═══ */
.task-mini-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.task-mini-list li { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.task-mini-list li:last-child { border-bottom: none; padding-bottom: 0; }
.task-mini-title { font-weight: 600; color: var(--text); font-size: 14px; }
.task-mini-title:hover { color: var(--brand); text-decoration: none; }
.task-mini-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 5px;
    flex-wrap: wrap;
}

/* ═══ Aktivite listesi ═══ */
.activity-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.activity-list li { display: flex; gap: 12px; align-items: flex-start; }
.activity-list small { display: block; margin-top: 1px; font-size: 12px; }

/* ═══ Tablolar ═══ */
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th {
    text-align: left;
    padding: 11px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td { padding: 12px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: var(--surface-2); }
.table-link { font-weight: 600; color: var(--text); }
.table-link:hover { color: var(--brand); text-decoration: none; }
.row-overdue { background: rgba(241, 112, 123, .05); }
.row-inactive { opacity: .5; }
.table-user { display: flex; align-items: center; gap: 10px; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ═══ Rozetler ═══ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.5;
}
.badge-pending     { background: var(--warning-bg); color: var(--warning); }
.badge-in_progress { background: var(--info-bg); color: var(--info); }
.badge-completed   { background: var(--success-bg); color: var(--success); }
.badge-cancelled   { background: rgba(255,255,255,.07); color: var(--text-secondary); }
.badge-overdue     { background: var(--danger-bg); color: var(--danger); margin-left: 6px; }
.badge-p-low    { background: rgba(255,255,255,.07); color: var(--text-secondary); }
.badge-p-normal { background: var(--info-bg); color: var(--info); }
.badge-p-high   { background: var(--warning-bg); color: var(--warning); }
.badge-p-urgent { background: var(--danger-bg); color: var(--danger); }
.badge-proj-active    { background: var(--info-bg); color: var(--info); }
.badge-proj-completed { background: var(--success-bg); color: var(--success); }
.badge-proj-archived  { background: rgba(255,255,255,.07); color: var(--text-secondary); }
.badge-admin   { background: var(--brand-light); color: var(--brand); }
.badge-manager { background: var(--info-bg); color: var(--info); }

/* ═══ Butonlar ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s, border-color .12s;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1.45;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { background: var(--brand-darker); }
.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--border); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border-strong); }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }

.link-danger {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    text-decoration: underline;
}

/* ═══ Formlar ═══ */
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color .12s, box-shadow .12s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}
.form-group input:disabled { background: var(--surface-2); color: var(--text-muted); }
.form-group input[type="color"] { height: 40px; padding: 3px; cursor: pointer; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ═══ Sayfa üstü eylem çubuğu ═══ */
.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-bar input[type="text"],
.filter-bar select {
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
}
.filter-bar input[type="text"] { min-width: 190px; }
.filter-bar input::placeholder { color: var(--text-muted); }
.filter-bar input:focus, .filter-bar select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

/* ═══ Sekmeler ═══ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}
.tab {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: color .12s, background .12s;
}
.tab:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-count {
    background: var(--surface-2);
    color: var(--text-secondary);
    border-radius: 99px;
    padding: 1px 8px;
    font-size: 11.5px;
}
.tab.active .tab-count { background: var(--brand-light); color: var(--brand); }

/* ═══ Proje sayfaları (OneNote tarzı) ═══ */
.pages-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
    align-items: start;
}
.pages-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
}
.pages-list-head { margin-bottom: 10px; }
.pages-nav { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.pages-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    transition: background .12s, color .12s;
}
.pages-nav a .icon { color: var(--text-muted); }
.pages-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.pages-nav a.active { background: var(--brand-light); color: #fff; font-weight: 600; }
.pages-nav a.active .icon { color: var(--brand); }
.pages-nav .page-sub a { padding-left: 32px; font-size: 13px; }

.page-content { min-height: 340px; }
.page-content-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.page-content-head h2 { font-size: 20px; font-weight: 700; }
.page-content-meta { font-size: 12.5px; color: var(--text-muted); margin-bottom: 16px; }
.page-body {
    font-size: 14.5px;
    line-height: 1.7;
    white-space: normal;
    word-wrap: break-word;
}

/* ═══ Proje kartları ═══ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    padding: 18px 20px;
    color: var(--text);
    border-top: 4px solid var(--project-color, var(--brand));
    transition: box-shadow .15s, border-color .15s, background .15s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.project-card:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    border-top-color: var(--project-color, var(--brand));
    text-decoration: none;
}
.project-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.project-card-head h3 { font-size: 15.5px; font-weight: 600; }
.project-desc { font-size: 13px; color: var(--text-secondary); flex: 1; }
.project-card-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); }
.project-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.project-header-card { border-top: 4px solid var(--project-color, var(--brand)); }
.project-sub { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; font-size: 13px; }

/* ═══ Görev detayı ═══ */
.task-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 18px;
    align-items: start;
}
.breadcrumb { margin-bottom: 14px; font-size: 13.5px; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--text-secondary); font-weight: 500; }
.breadcrumb a:hover { color: var(--brand); text-decoration: none; }
.task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.task-title-lg { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.task-done { text-decoration: line-through; color: var(--text-muted); }
.task-head-actions { display: flex; gap: 8px; flex-shrink: 0; }
.task-description {
    margin: 16px 0;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.task-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.status-quick {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.status-quick .meta-label { margin: 0; }

/* ═══ Yorumlar ═══ */
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.comment-list li { display: flex; gap: 12px; }
.comment-body {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
}
.comment-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.comment-head strong { font-size: 13.5px; }
.comment-form { display: flex; gap: 10px; align-items: flex-end; }
.comment-form textarea {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    background: var(--bg);
    color: var(--text);
}
.comment-form textarea::placeholder { color: var(--text-muted); }
.comment-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

/* ═══ Dosyalar ═══ */
.file-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.file-list li { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.file-list li:last-child { border-bottom: none; }
.file-name { font-weight: 600; word-break: break-all; display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.file-name:hover { color: var(--brand); text-decoration: none; }
.file-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.upload-form { display: flex; flex-direction: column; gap: 8px; }
.upload-form input[type="file"] { font-size: 13px; color: var(--text-secondary); }

/* ═══ Modal ═══ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 400;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
    overflow-y: auto;
}
.modal.open { display: flex; }
.modal-box {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    width: 100%;
    max-width: 520px;
    padding: 24px;
    box-shadow: var(--shadow-16);
    animation: modalIn .16s ease;
}
.modal-lg { max-width: 680px; }
.modal-sm { max-width: 400px; }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-10px) scale(.99); }
    to   { opacity: 1; transform: none; }
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ═══ Uyarılar ═══ */
.alert {
    padding: 12px 32px;
    font-size: 13.5px;
    font-weight: 500;
    border-left: 4px solid transparent;
}
.auth-card .alert, .modal .alert {
    margin: 0 0 16px;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}
.alert-success { background: var(--success-bg); color: var(--success); border-left-color: var(--success); }
.alert-error   { background: var(--danger-bg); color: var(--danger); border-left-color: var(--danger); }
.flash-auto { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══ Giriş / kurulum sayfaları ═══ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    padding: 20px;
}
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-16);
}
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.auth-logo img { height: 34px; width: auto; max-width: 100%; }
.auth-sub {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}
.auth-card h2 { font-size: 17px; margin-bottom: 6px; }
.auth-card form { margin-top: 8px; }

/* ═══ Görev panosu (sürükle-bırak) ═══ */
.board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: start;
}
.board-col {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
}
.board-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 2px 4px 10px;
}
.board-col-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 40px;
    border-radius: var(--radius-sm);
    transition: background .12s;
}
.board-col-body.drag-over {
    background: var(--brand-lighter);
    outline: 2px dashed var(--brand);
    outline-offset: 2px;
}
.task-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    cursor: grab;
    transition: border-color .12s, background .12s;
}
.task-card:hover { border-color: var(--border-strong); background: var(--border); }
.task-card:active { cursor: grabbing; }
.task-card.dragging { opacity: .45; }
.task-card.card-overdue { border-left: 3px solid var(--danger); }
.task-card-title { font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.task-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 7px;
}
.board-hint {
    margin-top: 14px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ═══ Satır içi hızlı ekleme formları ═══ */
.quick-add { margin-top: 10px; }
.quick-add input[type="text"] {
    width: 100%;
    padding: 8px 11px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: transparent;
    color: var(--text);
    transition: border-color .12s, background .12s;
}
.quick-add input[type="text"]::placeholder { color: var(--text-muted); }
.quick-add input[type="text"]:focus {
    outline: none;
    border-style: solid;
    border-color: var(--brand);
    background: var(--bg);
}
.pages-list .quick-add { margin: 0 0 10px; }

.inline-create {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 18px;
    color: var(--text-muted);
}
.inline-create input[type="text"] {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
}
.inline-create input[type="text"]::placeholder { color: var(--text-muted); }
.inline-create input[type="text"]:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}
.inline-create input[type="color"] {
    width: 42px;
    height: 38px;
    padding: 3px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    cursor: pointer;
}

/* Sayfa listesi sürükleme */
.pages-nav li { border-radius: var(--radius-sm); }
.pages-nav li.dragging { opacity: .45; }
.pages-nav li[draggable]:hover { cursor: grab; }
.pages-hint { font-size: 11.5px; margin-top: 10px; padding: 0 4px; }

.hidden { display: none !important; }

/* ═══ Yardımcılar ═══ */
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); font-weight: 600; }
.empty-state { color: var(--text-muted); text-align: center; padding: 26px 10px; font-size: 13.5px; }

/* ═══ Duyarlı tasarım ═══ */
@media (max-width: 1100px) {
    .board { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .task-detail-grid { grid-template-columns: 1fr; }
    .pages-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .board { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-16); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .main { margin-left: 0; }
    .menu-toggle { display: flex; }
    .app-user-name { display: none; }
    .content { padding: 18px 16px 44px; }
    .page-title { font-size: 20px; }
    .alert { padding: 12px 16px; }
    .form-row { grid-template-columns: 1fr; }
    .page-actions { flex-direction: column; align-items: stretch; }
    .page-actions .btn { width: 100%; }
    .filter-bar input[type="text"] { min-width: 0; flex: 1; }
    .auth-card { padding: 30px 24px; }
}
