/* =====================================================================
   Notlarım — Tasarım Sistemi
   ===================================================================== */

:root {
    --app-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --app-primary: #4f46e5;
    --app-primary-rgb: 79, 70, 229;
    --app-primary-hover: #4338ca;
    --app-primary-soft: rgba(79, 70, 229, .10);
    --app-bg: #f4f6fb;
    --app-surface: #ffffff;
    --app-surface-2: #f8fafc;
    --app-surface-3: #f1f5f9;
    --app-border: #e6e9f1;
    --app-border-strong: #d7dce7;
    --app-text: #0f172a;
    --app-text-2: #334155;
    --app-muted: #64748b;
    --app-sidebar-bg: #0f172a;
    --app-sidebar-text: #94a3b8;
    --app-sidebar-title: #475569;
    --app-sidebar-hover: rgba(255, 255, 255, .05);
    --app-sidebar-active: rgba(99, 102, 241, .16);
    --app-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
    --app-shadow: 0 6px 20px -6px rgba(15, 23, 42, .10);
    --app-shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, .22);
    --app-radius: 14px;
    --app-radius-sm: 10px;
    --sidebar-w: 264px;
    --topbar-h: 68px;

    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-link-color: #4f46e5;
    --bs-link-color-rgb: 79, 70, 229;
    --bs-link-hover-color: #4338ca;
    --bs-link-hover-color-rgb: 67, 56, 202;
    --bs-body-font-family: var(--app-font);
    --bs-body-font-size: .9rem;
    --bs-body-bg: var(--app-bg);
    --bs-body-color: var(--app-text);
    --bs-border-color: var(--app-border);
    --bs-secondary-color: var(--app-muted);
    --bs-tertiary-bg: var(--app-surface-2);
    --bs-emphasis-color: var(--app-text);
    --bs-heading-color: var(--app-text);
    --bs-border-radius: .6rem;
    --bs-border-radius-lg: .8rem;
    --bs-danger-rgb: 220, 38, 38;
    --bs-success-rgb: 5, 150, 105;
    --bs-warning-rgb: 217, 119, 6;
}

[data-bs-theme=dark] {
    --app-primary: #6366f1;
    --app-primary-rgb: 99, 102, 241;
    --app-primary-hover: #818cf8;
    --app-primary-soft: rgba(99, 102, 241, .16);
    --app-bg: #0b1020;
    --app-surface: #111a2e;
    --app-surface-2: #0e1628;
    --app-surface-3: #16213a;
    --app-border: #1e2a45;
    --app-border-strong: #2a3a5c;
    --app-text: #e2e8f0;
    --app-text-2: #cbd5e1;
    --app-muted: #8a97b1;
    --app-sidebar-bg: #080d1a;
    --app-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --app-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5);
    --app-shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, .6);

    --bs-primary: #6366f1;
    --bs-primary-rgb: 99, 102, 241;
    --bs-link-color: #818cf8;
    --bs-link-color-rgb: 129, 140, 248;
    --bs-link-hover-color: #a5b4fc;
    --bs-body-bg: var(--app-bg);
    --bs-body-color: var(--app-text);
    --bs-border-color: var(--app-border);
    --bs-secondary-color: var(--app-muted);
    --bs-tertiary-bg: var(--app-surface-2);
    --bs-secondary-bg: var(--app-surface-3);
    --bs-emphasis-color: #f8fafc;
    --bs-heading-color: var(--app-text);
    --bs-danger-rgb: 248, 113, 113;
    --bs-success-rgb: 52, 211, 153;
    --bs-warning-rgb: 251, 191, 36;
}

html, body { height: 100%; }

body {
    font-family: var(--app-font);
    background: var(--app-bg);
    color: var(--app-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
}

a { text-decoration: none; }
::selection { background: rgba(var(--app-primary-rgb), .2); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; }
.fw-semibold { font-weight: 600 !important; }
.text-muted { color: var(--app-muted) !important; }
.text-2 { color: var(--app-text-2); }
.small-2 { font-size: .78rem; }
.tabular { font-variant-numeric: tabular-nums; }
.text-primary { color: var(--app-primary) !important; }
.bg-surface { background: var(--app-surface) !important; }
.border-app { border-color: var(--app-border) !important; }
.min-w-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }

/* ---------- Scrollbar ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--app-border-strong) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--app-border-strong); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* =====================================================================
   Uygulama iskeleti
   ===================================================================== */
.app { display: flex; min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--app-sidebar-bg);
    color: var(--app-sidebar-text);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform .25s ease;
    border-right: 1px solid rgba(255, 255, 255, .04);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    height: var(--topbar-h);
    padding: 0 1.25rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.brand-logo {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #ec4899 100%);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, .7);
    flex-shrink: 0;
}

.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.1; }
.brand-sub { font-size: .7rem; color: #64748b; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem .75rem; }

.nav-section {
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--app-sidebar-title);
    padding: 1rem .75rem .45rem;
}
.nav-section:first-child { padding-top: .25rem; }

.nav-link-app {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    margin-bottom: 2px;
    border-radius: 9px;
    color: var(--app-sidebar-text);
    font-weight: 500;
    font-size: .875rem;
    position: relative;
    transition: background .15s, color .15s;
}
.nav-link-app i { font-size: 1.1rem; width: 1.25rem; text-align: center; opacity: .9; }
.nav-link-app:hover { background: var(--app-sidebar-hover); color: #e2e8f0; }
.nav-link-app.active { background: var(--app-sidebar-active); color: #fff; }
.nav-link-app.active i { color: #a5b4fc; opacity: 1; }
.nav-link-app.active::before {
    content: "";
    position: absolute;
    left: -.75rem; top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #818cf8;
}
.nav-link-app .nav-badge {
    margin-left: auto;
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #cbd5e1;
}
.nav-link-app .nav-badge.danger { background: rgba(239, 68, 68, .2); color: #fca5a5; }

.sidebar-footer { padding: .9rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.sidebar-user {
    display: flex; align-items: center; gap: .7rem;
    padding: .55rem; border-radius: 10px;
    background: rgba(255, 255, 255, .04);
}
.sidebar-user .name { color: #e2e8f0; font-weight: 600; font-size: .85rem; line-height: 1.2; }
.sidebar-user .role { font-size: .72rem; color: #64748b; }
.sidebar-user .btn-logout { margin-left: auto; color: #94a3b8; background: none; border: 0; padding: .35rem .45rem; border-radius: 8px; }
.sidebar-user .btn-logout:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(2, 6, 23, .55);
    backdrop-filter: blur(2px);
    z-index: 1035;
}

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

.topbar {
    position: sticky; top: 0;
    z-index: 1020;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.75rem;
    background: color-mix(in srgb, var(--app-bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--app-border);
}

.topbar-search { position: relative; flex: 1; max-width: 460px; }
.topbar-search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--app-muted); }
.topbar-search input {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    padding: 0 3.5rem 0 2.5rem;
    color: var(--app-text);
    font-size: .875rem;
    transition: border-color .15s, box-shadow .15s;
}
.topbar-search input:focus { outline: none; border-color: rgba(var(--app-primary-rgb), .5); box-shadow: 0 0 0 4px rgba(var(--app-primary-rgb), .1); }
.topbar-search kbd {
    position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
    font-size: .68rem; font-family: var(--app-font);
    background: var(--app-surface-3); color: var(--app-muted);
    border: 1px solid var(--app-border); border-radius: 6px; padding: .1rem .4rem;
}

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

.btn-icon {
    width: 40px; height: 40px;
    display: inline-grid; place-items: center;
    border-radius: 10px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    color: var(--app-text-2);
    font-size: 1.05rem;
    transition: all .15s;
}
.btn-icon:hover { background: var(--app-surface-3); color: var(--app-text); }
.btn-icon-sm { width: 32px; height: 32px; font-size: .9rem; border-radius: 8px; }
.btn-ghost {
    border: 0; background: transparent; color: var(--app-muted);
    width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center;
}
.btn-ghost:hover { background: var(--app-surface-3); color: var(--app-text); }
.btn-ghost.danger:hover { background: rgba(239, 68, 68, .1); color: #dc2626; }

.topbar-user { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem .25rem .25rem; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--app-text); }
.topbar-user:hover { background: var(--app-surface); border-color: var(--app-border); }

.content { padding: 1.75rem; flex: 1; }
.content-narrow { max-width: 980px; }

.app-footer { padding: 1rem 1.75rem; color: var(--app-muted); font-size: .78rem; border-top: 1px solid var(--app-border); }

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    body.sidebar-open .sidebar { transform: none; box-shadow: var(--app-shadow-lg); }
    body.sidebar-open .sidebar-backdrop { display: block; }
    .main { margin-left: 0; }
    .topbar { padding: 0 1rem; }
    .content { padding: 1.1rem; }
    .topbar-search kbd { display: none; }
}

/* =====================================================================
   Sayfa başlığı
   ===================================================================== */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.page-title { font-size: 1.5rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.page-subtitle { color: var(--app-muted); margin-top: .25rem; font-size: .875rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.breadcrumb-app { font-size: .8rem; color: var(--app-muted); margin-bottom: .35rem; display: flex; gap: .4rem; align-items: center; }
.breadcrumb-app a { color: var(--app-muted); }
.breadcrumb-app a:hover { color: var(--app-primary); }

/* =====================================================================
   Kartlar
   ===================================================================== */
.card {
    --bs-card-bg: var(--app-surface);
    --bs-card-border-color: var(--app-border);
    --bs-card-border-radius: var(--app-radius);
    --bs-card-inner-border-radius: calc(var(--app-radius) - 1px);
    --bs-card-cap-bg: transparent;
    --bs-card-spacer-y: 1.25rem;
    --bs-card-spacer-x: 1.25rem;
    box-shadow: var(--app-shadow-sm);
}
.card-header {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--app-border);
}
.card-title-app { font-size: .95rem; font-weight: 650; margin: 0; display: flex; align-items: center; gap: .5rem; }
.card-title-app i { color: var(--app-muted); }
.card-footer { background: transparent; border-top: 1px solid var(--app-border); }
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--app-shadow); border-color: var(--app-border-strong); }

/* İstatistik kartları */
.stat-card { padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; height: 100%; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: var(--app-muted); font-size: .8rem; font-weight: 600; }
.stat-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-foot { font-size: .78rem; color: var(--app-muted); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.stat-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; font-size: 1.15rem;
}
.ic-primary { background: rgba(79, 70, 229, .1); color: #4f46e5; }
.ic-success { background: rgba(16, 185, 129, .12); color: #059669; }
.ic-warning { background: rgba(245, 158, 11, .14); color: #d97706; }
.ic-danger { background: rgba(239, 68, 68, .12); color: #dc2626; }
.ic-info { background: rgba(14, 165, 233, .12); color: #0284c7; }
.ic-purple { background: rgba(168, 85, 247, .12); color: #9333ea; }
.ic-pink { background: rgba(236, 72, 153, .12); color: #db2777; }
[data-bs-theme=dark] .ic-primary { color: #a5b4fc; }
[data-bs-theme=dark] .ic-success { color: #6ee7b7; }
[data-bs-theme=dark] .ic-warning { color: #fcd34d; }
[data-bs-theme=dark] .ic-danger { color: #fca5a5; }
[data-bs-theme=dark] .ic-info { color: #7dd3fc; }
[data-bs-theme=dark] .ic-purple { color: #d8b4fe; }
[data-bs-theme=dark] .ic-pink { color: #f9a8d4; }

.trend { font-weight: 700; font-size: .75rem; padding: .1rem .4rem; border-radius: 6px; }
.trend.up { color: #059669; background: rgba(16, 185, 129, .12); }
.trend.down { color: #dc2626; background: rgba(239, 68, 68, .1); }

/* =====================================================================
   Rozetler (chip)
   ===================================================================== */
.chip {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .72rem; font-weight: 600;
    padding: .22rem .6rem;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.3;
}
.chip i { font-size: .78rem; }
.chip-primary { color: #4338ca; background: rgba(79, 70, 229, .1); }
.chip-success { color: #047857; background: rgba(16, 185, 129, .13); }
.chip-warning { color: #b45309; background: rgba(245, 158, 11, .15); }
.chip-danger { color: #b91c1c; background: rgba(239, 68, 68, .12); }
.chip-info { color: #0369a1; background: rgba(14, 165, 233, .13); }
.chip-secondary { color: #475569; background: rgba(100, 116, 139, .13); }
.chip-purple { color: #7e22ce; background: rgba(168, 85, 247, .13); }
.chip-outline { color: var(--app-text-2); background: transparent; border: 1px solid var(--app-border-strong); }
[data-bs-theme=dark] .chip-primary { color: #a5b4fc; }
[data-bs-theme=dark] .chip-success { color: #6ee7b7; }
[data-bs-theme=dark] .chip-warning { color: #fcd34d; }
[data-bs-theme=dark] .chip-danger { color: #fca5a5; }
[data-bs-theme=dark] .chip-info { color: #7dd3fc; }
[data-bs-theme=dark] .chip-secondary { color: #cbd5e1; }
[data-bs-theme=dark] .chip-purple { color: #d8b4fe; }

.tag {
    display: inline-block; font-size: .7rem; font-weight: 600;
    padding: .15rem .5rem; border-radius: 6px;
    background: var(--app-surface-3); color: var(--app-text-2);
    border: 1px solid var(--app-border);
}

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

/* =====================================================================
   Butonlar & formlar
   ===================================================================== */
.btn { font-weight: 600; font-size: .85rem; border-radius: 10px; padding: .5rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-sm { font-size: .78rem; padding: .35rem .7rem; border-radius: 8px; }
.btn-lg { font-size: .95rem; padding: .7rem 1.25rem; border-radius: 12px; }
.btn-primary {
    --bs-btn-bg: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-bg: var(--app-primary-hover);
    --bs-btn-hover-border-color: var(--app-primary-hover);
    --bs-btn-active-bg: #3730a3;
    --bs-btn-active-border-color: #3730a3;
    --bs-btn-disabled-bg: var(--app-primary);
    --bs-btn-disabled-border-color: var(--app-primary);
    --bs-btn-focus-shadow-rgb: var(--app-primary-rgb);
    box-shadow: 0 4px 12px -4px rgba(var(--app-primary-rgb), .55);
}
.btn-outline-primary {
    --bs-btn-color: var(--app-primary);
    --bs-btn-border-color: rgba(var(--app-primary-rgb), .45);
    --bs-btn-hover-bg: var(--app-primary);
    --bs-btn-hover-border-color: var(--app-primary);
    --bs-btn-active-bg: var(--app-primary);
    --bs-btn-active-border-color: var(--app-primary);
}
.btn-light-app {
    background: var(--app-surface); color: var(--app-text-2);
    border: 1px solid var(--app-border);
}
.btn-light-app:hover { background: var(--app-surface-3); color: var(--app-text); border-color: var(--app-border-strong); }
.btn-soft-primary { background: var(--app-primary-soft); color: var(--app-primary); border: 0; }
.btn-soft-primary:hover { background: var(--app-primary); color: #fff; }
.btn-soft-success { background: rgba(16, 185, 129, .12); color: #059669; border: 0; }
.btn-soft-success:hover { background: #059669; color: #fff; }
.btn-soft-danger { background: rgba(239, 68, 68, .1); color: #dc2626; border: 0; }
.btn-soft-danger:hover { background: #dc2626; color: #fff; }
.btn-success { --bs-btn-bg: #059669; --bs-btn-border-color: #059669; --bs-btn-hover-bg: #047857; --bs-btn-hover-border-color: #047857; }

.form-label { font-weight: 600; font-size: .8rem; color: var(--app-text-2); margin-bottom: .35rem; }
.form-control, .form-select {
    border-radius: 10px;
    border-color: var(--app-border-strong);
    background-color: var(--app-surface);
    color: var(--app-text);
    font-size: .875rem;
    padding: .55rem .8rem;
}
.form-select { padding-right: 2.25rem; }
.form-control-sm, .form-select-sm { padding: .35rem .65rem; font-size: .8rem; border-radius: 8px; }
.form-control:focus, .form-select:focus {
    border-color: rgba(var(--app-primary-rgb), .6);
    box-shadow: 0 0 0 4px rgba(var(--app-primary-rgb), .12);
}
.form-control::placeholder { color: #94a3b8; }
.form-check-input:checked { background-color: var(--app-primary); border-color: var(--app-primary); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(var(--app-primary-rgb), .15); border-color: rgba(var(--app-primary-rgb), .5); }
.form-text { font-size: .75rem; color: var(--app-muted); }
.input-group-text { background: var(--app-surface-3); border-color: var(--app-border-strong); color: var(--app-muted); border-radius: 10px; font-size: .85rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--app-muted); pointer-events: none; }
.input-icon > .form-control, .input-icon > .form-select { padding-left: 2.4rem; }
.field-validation-error, .text-danger.small { font-size: .76rem; }
.validation-summary-errors ul { margin: 0; padding-left: 1rem; }
.input-validation-error { border-color: #ef4444 !important; }

.form-section { padding: 1.25rem; border-bottom: 1px solid var(--app-border); }
.form-section:last-child { border-bottom: 0; }
.form-section-title { font-weight: 700; font-size: .85rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.form-section-title i { color: var(--app-primary); }

/* Renk seçici */
.renk-secici { display: flex; flex-wrap: wrap; gap: .5rem; }
.renk-secici input { display: none; }
.renk-secici label {
    width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
    border: 2px solid transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
    transition: transform .12s;
}
.renk-secici label:hover { transform: scale(1.1); }
.renk-secici input:checked + label { border-color: var(--app-text); }

/* Segmented filtre */
.seg {
    display: inline-flex; padding: 3px; gap: 2px;
    background: var(--app-surface-3);
    border: 1px solid var(--app-border);
    border-radius: 11px; flex-wrap: wrap;
}
.seg a, .seg button {
    padding: .38rem .8rem; border-radius: 8px; font-size: .8rem; font-weight: 600;
    color: var(--app-muted); border: 0; background: none; display: inline-flex; align-items: center; gap: .35rem;
}
.seg a:hover, .seg button:hover { color: var(--app-text); }
.seg a.active, .seg button.active { background: var(--app-surface); color: var(--app-text); box-shadow: var(--app-shadow-sm); }
.seg .count { font-size: .68rem; background: var(--app-surface-3); padding: 0 .4rem; border-radius: 999px; color: var(--app-muted); }
.seg .active .count { background: var(--app-primary-soft); color: var(--app-primary); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* =====================================================================
   Tablolar
   ===================================================================== */
.table-app { --bs-table-bg: transparent; --bs-table-hover-bg: var(--app-surface-2); margin: 0; font-size: .85rem; }
.table-app > thead th {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--app-muted);
    background: var(--app-surface-2);
    border-bottom: 1px solid var(--app-border);
    padding: .75rem 1rem;
    white-space: nowrap;
}
.table-app > tbody td { padding: .8rem 1rem; border-color: var(--app-border); vertical-align: middle; color: var(--app-text); }
.table-app > tbody tr:last-child td { border-bottom: 0; }
.table-app > tfoot td { padding: .8rem 1rem; font-weight: 700; background: var(--app-surface-2); border-top: 1px solid var(--app-border); }
.table-app .actions { white-space: nowrap; text-align: right; }
.table-app .row-link { color: var(--app-text); font-weight: 600; }
.table-app .row-link:hover { color: var(--app-primary); }
.table-responsive { border-radius: 0 0 var(--app-radius) var(--app-radius); }
.card > .table-responsive:first-child { border-radius: var(--app-radius); }

.amount { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.amount-lg { font-size: 1.05rem; font-weight: 700; }

/* =====================================================================
   Avatar
   ===================================================================== */
.avatar {
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-grid; place-items: center;
    color: #fff; font-weight: 700; font-size: .8rem;
    flex-shrink: 0; letter-spacing: .02em;
}
.avatar-sm { width: 30px; height: 30px; font-size: .7rem; border-radius: 8px; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; border-radius: 16px; }
.avatar-round { border-radius: 50%; }

/* =====================================================================
   İlerleme, liste öğeleri, boş durum
   ===================================================================== */
.progress-thin { height: 6px; border-radius: 999px; background: var(--app-surface-3); overflow: hidden; }
.progress-thin .bar { height: 100%; border-radius: 999px; background: var(--app-primary); transition: width .4s ease; }

.list-app { list-style: none; margin: 0; padding: 0; }
.list-app > li { padding: .85rem 1.25rem; border-bottom: 1px solid var(--app-border); display: flex; gap: .85rem; align-items: center; }
.list-app > li:last-child { border-bottom: 0; }
.list-app > li.hoverable:hover { background: var(--app-surface-2); }

.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--app-muted); }
.empty-state .empty-icon {
    width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px;
    display: grid; place-items: center; font-size: 1.6rem;
    background: var(--app-surface-3); color: var(--app-muted);
}
.empty-state h6 { color: var(--app-text); font-weight: 650; margin-bottom: .35rem; }
.empty-state p { font-size: .85rem; margin-bottom: 1rem; }

.divider-text { display: flex; align-items: center; gap: .75rem; color: var(--app-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin: 1rem 0 .75rem; }
.divider-text::after { content: ""; flex: 1; height: 1px; background: var(--app-border); }

/* Bilgi listesi (etiket-değer) */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed var(--app-border); font-size: .85rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list i { color: var(--app-muted); width: 1.1rem; text-align: center; margin-top: .1rem; }
.info-list .lbl { color: var(--app-muted); font-size: .72rem; display: block; }

/* Sekmeler */
.nav-tabs-app { border-bottom: 1px solid var(--app-border); gap: .25rem; flex-wrap: nowrap; overflow-x: auto; }
.nav-tabs-app .nav-link {
    border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    color: var(--app-muted); font-weight: 600; font-size: .85rem;
    padding: .8rem 1rem; display: flex; align-items: center; gap: .45rem; white-space: nowrap;
    margin-bottom: -1px; background: none;
}
.nav-tabs-app .nav-link:hover { color: var(--app-text); }
.nav-tabs-app .nav-link.active { color: var(--app-primary); border-bottom-color: var(--app-primary); background: none; }
.nav-tabs-app .nav-link .count { font-size: .68rem; background: var(--app-surface-3); padding: .05rem .45rem; border-radius: 999px; color: var(--app-muted); }
.nav-tabs-app .nav-link.active .count { background: var(--app-primary-soft); color: var(--app-primary); }

/* Dropdown & modal */
.dropdown-menu {
    --bs-dropdown-bg: var(--app-surface);
    --bs-dropdown-border-color: var(--app-border);
    --bs-dropdown-link-hover-bg: var(--app-surface-3);
    --bs-dropdown-link-active-bg: var(--app-primary);
    --bs-dropdown-font-size: .85rem;
    border-radius: 12px; padding: .4rem; box-shadow: var(--app-shadow-lg);
}
.dropdown-item { border-radius: 8px; padding: .5rem .7rem; display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.dropdown-item i { color: var(--app-muted); width: 1.1rem; text-align: center; }
.dropdown-item:active i { color: #fff; }
.dropdown-header { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

.modal-content { border: 1px solid var(--app-border); border-radius: 16px; background: var(--app-surface); box-shadow: var(--app-shadow-lg); }
.modal-header { border-bottom: 1px solid var(--app-border); padding: 1.1rem 1.4rem; }
.modal-title { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.modal-body { padding: 1.4rem; }
.modal-footer { border-top: 1px solid var(--app-border); padding: .9rem 1.4rem; }
.modal-backdrop.show { opacity: .45; }

/* Toast */
.toast-container { z-index: 1090; }
.toast-app {
    display: flex; align-items: flex-start; gap: .75rem;
    background: var(--app-surface); border: 1px solid var(--app-border);
    border-radius: 12px; box-shadow: var(--app-shadow-lg);
    padding: .85rem 1rem; min-width: 300px; max-width: 420px; font-size: .85rem;
}
.toast-app .t-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.toast-app .t-title { font-weight: 700; font-size: .82rem; }

/* =====================================================================
   Giriş sayfası
   ===================================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 600px at -10% -20%, #4f46e5 0%, transparent 60%),
                radial-gradient(900px 600px at 120% 120%, #db2777 0%, transparent 55%),
                #0b1020;
    color: #fff; padding: 3rem 3.5rem;
    display: flex; flex-direction: column; justify-content: space-between;
}
.auth-hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero h1 { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; max-width: 520px; }
.auth-hero p.lead { color: #c7d2fe; font-size: 1rem; max-width: 480px; }
.auth-feature { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; max-width: 460px; }
.auth-feature .fi {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 1.05rem;
}
.auth-feature strong { display: block; font-size: .92rem; }
.auth-feature span { color: #a5b4fc; font-size: .82rem; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--app-surface); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.auth-card .form-control { height: 46px; }
.pw-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--app-muted); padding: .35rem .5rem; }
@media (max-width: 991.98px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
}

/* =====================================================================
   Projeler
   ===================================================================== */
.proje-card { position: relative; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.proje-card .stripe { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.proje-card .card-body { display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.proje-card .title { font-size: 1rem; font-weight: 700; color: var(--app-text); line-height: 1.3; }
.proje-card .title:hover { color: var(--app-primary); }
.proje-card .desc { color: var(--app-muted); font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.proje-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--app-muted); flex-wrap: wrap; }
.proje-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.proje-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem; flex-shrink: 0; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(270px, 1fr)); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; align-items: start; }
.kanban-col { background: var(--app-surface-3); border: 1px solid var(--app-border); border-radius: 14px; display: flex; flex-direction: column; max-height: calc(100vh - 260px); min-height: 200px; }
.kanban-head { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem .6rem; font-weight: 700; font-size: .82rem; }
.kanban-head .count { margin-left: auto; font-size: .7rem; background: var(--app-surface); border: 1px solid var(--app-border); padding: .05rem .5rem; border-radius: 999px; color: var(--app-muted); }
.kanban-list { flex: 1; overflow-y: auto; padding: .25rem .6rem .6rem; min-height: 60px; display: flex; flex-direction: column; gap: .55rem; }
.kanban-card {
    background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 11px;
    padding: .75rem .85rem; cursor: grab; box-shadow: var(--app-shadow-sm);
    border-left: 3px solid var(--oncelik, #94a3b8);
    transition: box-shadow .15s, transform .15s;
}
.kanban-card:hover { box-shadow: var(--app-shadow); }
.kanban-card .k-title { font-weight: 600; font-size: .85rem; margin-bottom: .45rem; line-height: 1.35; color: var(--app-text); }
.kanban-card.done .k-title { text-decoration: line-through; color: var(--app-muted); }
.kanban-card .k-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .72rem; color: var(--app-muted); }
.kanban-ghost { opacity: .4; background: var(--app-primary-soft); border: 2px dashed var(--app-primary); }
.kanban-drag { transform: rotate(2deg); box-shadow: var(--app-shadow-lg) !important; }
.kanban-add { margin: 0 .6rem .6rem; border: 1px dashed var(--app-border-strong); background: transparent; color: var(--app-muted); border-radius: 10px; padding: .5rem; font-size: .8rem; font-weight: 600; }
.kanban-add:hover { background: var(--app-surface); color: var(--app-primary); border-color: var(--app-primary); }

/* =====================================================================
   Yapışkan notlar
   ===================================================================== */
.not-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; align-items: start; min-height: 40px; }

.not-kart {
    --not-bg: #fef9c3; --not-ust: #fde68a; --not-yazi: #422006; --not-cizgi: rgba(0, 0, 0, .08);
    position: relative;
    background: var(--not-bg);
    color: var(--not-yazi);
    border-radius: 4px 4px 18px 4px;
    padding: 1.1rem 1.1rem .75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 18px -10px rgba(0, 0, 0, .25);
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: grab;
    display: flex; flex-direction: column; gap: .5rem;
    min-height: 150px;
}
.not-kart::before {
    content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(-2deg);
    width: 72px; height: 16px; background: rgba(255, 255, 255, .55);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08); border-radius: 2px;
}
.not-kart:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 16px 30px -12px rgba(0, 0, 0, .35); }
.not-kart .not-baslik { font-weight: 700; font-size: .95rem; line-height: 1.3; padding-right: 1.5rem; word-break: break-word; }
.not-kart .not-icerik { font-size: .86rem; line-height: 1.55; max-height: 300px; overflow-y: auto; word-break: break-word; }
.not-kart .not-satir { white-space: pre-wrap; min-height: 1.3em; }
.not-kart .not-check { display: flex; gap: .45rem; align-items: flex-start; cursor: pointer; margin: .1rem 0; }
.not-kart .not-check input { margin-top: .25rem; accent-color: currentColor; cursor: pointer; }
.not-kart .not-check.done span { text-decoration: line-through; opacity: .55; }
.not-kart .not-etiketler { display: flex; flex-wrap: wrap; gap: .3rem; }
.not-kart .not-etiket { font-size: .68rem; font-weight: 600; padding: .1rem .45rem; border-radius: 5px; background: var(--not-cizgi); }
.not-kart .not-alt { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .7rem; opacity: .75; border-top: 1px solid var(--not-cizgi); padding-top: .5rem; margin-top: auto; }
.not-kart .not-aksiyon { display: flex; gap: .1rem; opacity: 0; transition: opacity .15s; }
.not-kart:hover .not-aksiyon, .not-kart:focus-within .not-aksiyon { opacity: 1; }
.not-kart .na-btn {
    border: 0; background: none; color: inherit; width: 28px; height: 28px; border-radius: 7px;
    display: inline-grid; place-items: center; font-size: .85rem;
}
.not-kart .na-btn:hover { background: var(--not-cizgi); }
.not-kart:hover, .not-kart:focus-within { z-index: 3; }
.not-kart .not-pin { position: absolute; top: .7rem; right: .7rem; font-size: .9rem; opacity: .7; }
.not-kart .not-link { font-size: .72rem; font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; color: inherit; opacity: .85; }
.not-kart .not-link:hover { text-decoration: underline; }
.not-kart .not-hatirlatma { font-size: .72rem; font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; background: var(--not-cizgi); padding: .15rem .5rem; border-radius: 6px; align-self: flex-start; }
.not-kart .not-hatirlatma.gecti { background: rgba(220, 38, 38, .15); color: #b91c1c; }
.not-ghost { opacity: .35; }

.not-renk-sari    { --not-bg: #fef9c3; --not-yazi: #422006; }
.not-renk-pembe   { --not-bg: #fce7f3; --not-yazi: #500724; }
.not-renk-mavi    { --not-bg: #dbeafe; --not-yazi: #172554; }
.not-renk-yesil   { --not-bg: #dcfce7; --not-yazi: #052e16; }
.not-renk-mor     { --not-bg: #ede9fe; --not-yazi: #2e1065; }
.not-renk-turuncu { --not-bg: #ffedd5; --not-yazi: #431407; }
.not-renk-beyaz   { --not-bg: #ffffff; --not-yazi: #111827; }
.not-renk-kirmizi { --not-bg: #fee2e2; --not-yazi: #450a0a; }
.not-renk-turkuaz { --not-bg: #ccfbf1; --not-yazi: #042f2e; }
.not-renk-lacivert{ --not-bg: #cfe0f5; --not-yazi: #0c2340; }
.not-renk-kahve   { --not-bg: #ede0d0; --not-yazi: #3b2a15; }
.not-renk-gri     { --not-bg: #f1f5f9; --not-yazi: #0f172a; }
[data-bs-theme=dark] .not-kart { --not-cizgi: rgba(255, 255, 255, .1); }
[data-bs-theme=dark] .not-kart::before { background: rgba(255, 255, 255, .15); }
[data-bs-theme=dark] .not-renk-sari    { --not-bg: #3a3212; --not-yazi: #fef3c7; }
[data-bs-theme=dark] .not-renk-pembe   { --not-bg: #3b1529; --not-yazi: #fce7f3; }
[data-bs-theme=dark] .not-renk-mavi    { --not-bg: #152544; --not-yazi: #dbeafe; }
[data-bs-theme=dark] .not-renk-yesil   { --not-bg: #11321f; --not-yazi: #dcfce7; }
[data-bs-theme=dark] .not-renk-mor     { --not-bg: #2a1b4a; --not-yazi: #ede9fe; }
[data-bs-theme=dark] .not-renk-turuncu { --not-bg: #3d2210; --not-yazi: #ffedd5; }
[data-bs-theme=dark] .not-renk-beyaz   { --not-bg: #202124; --not-yazi: #e8eaed; }
[data-bs-theme=dark] .not-renk-kirmizi { --not-bg: #45201e; --not-yazi: #fecaca; }
[data-bs-theme=dark] .not-renk-turkuaz { --not-bg: #10312e; --not-yazi: #99f6e4; }
[data-bs-theme=dark] .not-renk-lacivert{ --not-bg: #16263f; --not-yazi: #bfdbfe; }
[data-bs-theme=dark] .not-renk-kahve   { --not-bg: #35291a; --not-yazi: #e7d5bd; }
[data-bs-theme=dark] .not-renk-gri     { --not-bg: #1e293b; --not-yazi: #e2e8f0; }

.renk-nokta { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .1); cursor: pointer; display: inline-block; transition: transform .12s; padding: 0; }
.renk-nokta:hover { transform: scale(1.15); }
.renk-nokta.active { box-shadow: 0 0 0 2px var(--app-surface), 0 0 0 4px var(--app-primary); }
.rn-sari { background: #fde047; } .rn-pembe { background: #f9a8d4; } .rn-mavi { background: #93c5fd; }
.rn-yesil { background: #86efac; } .rn-mor { background: #c4b5fd; } .rn-turuncu { background: #fdba74; } .rn-gri { background: #cbd5e1; }
.rn-beyaz { background: #ffffff; } .rn-kirmizi { background: #fca5a5; } .rn-turkuaz { background: #5eead4; }
.rn-lacivert { background: #7ba7d7; } .rn-kahve { background: #d6bd9a; }

.mini-not { border-radius: 10px; padding: .75rem .9rem; background: var(--not-bg); color: var(--not-yazi); font-size: .82rem; }
.mini-not .t { font-weight: 700; margin-bottom: .2rem; }
.mini-not .c { opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }

/* =====================================================================
   Cari / Ekstre
   ===================================================================== */
.ledger-in { color: #059669; }
.ledger-out { color: #dc2626; }
[data-bs-theme=dark] .ledger-in { color: #34d399; }
[data-bs-theme=dark] .ledger-out { color: #f87171; }
.hareket-ikon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: .95rem; }

.summary-tile { padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--app-border); background: var(--app-surface); height: 100%; }
.summary-tile .lbl { font-size: .74rem; font-weight: 600; color: var(--app-muted); display: flex; align-items: center; gap: .35rem; }
.summary-tile .val { font-size: 1.25rem; font-weight: 700; margin-top: .3rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.hesap-ozet-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--app-surface-3); }
.hesap-ozet-bar span { display: block; height: 100%; }

.toplam-kutu { background: var(--app-surface-2); border: 1px solid var(--app-border); border-radius: 12px; padding: 1rem 1.1rem; }
.toplam-kutu .satir { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .85rem; }
.toplam-kutu .satir.genel { border-top: 1px solid var(--app-border); margin-top: .4rem; padding-top: .7rem; font-size: 1.1rem; font-weight: 800; }

/* Arama */
.arama-grup-baslik { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--app-muted); padding: .9rem 1.25rem .4rem; }
mark { background: rgba(250, 204, 21, .35); color: inherit; padding: 0 .1em; border-radius: 3px; }

/* Grafik */
.chart-box { position: relative; height: 300px; }
.chart-box-sm { position: relative; height: 240px; }
.legend-dot { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--app-muted); font-weight: 600; }
.legend-dot::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* Hata sayfası */
.error-code { font-size: 5rem; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(135deg, #6366f1, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* =====================================================================
   Yazdırma (Ekstre)
   ===================================================================== */
.print-page { background: #e5e7eb; min-height: 100vh; padding: 2rem 1rem; color: #111827; }
.print-toolbar { max-width: 210mm; margin: 0 auto 1rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
.print-sheet { background: #fff; max-width: 210mm; margin: 0 auto; padding: 16mm 14mm; box-shadow: 0 10px 40px rgba(0, 0, 0, .15); border-radius: 4px; font-size: 12px; }
.print-sheet h1 { font-size: 20px; letter-spacing: .08em; margin: 0; }
.print-sheet .muted { color: #6b7280; }
.print-sheet table { width: 100%; border-collapse: collapse; }
.print-sheet th { background: #f3f4f6; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 6px 8px; border-bottom: 2px solid #d1d5db; }
.print-sheet td { padding: 6px 8px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.print-sheet .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.print-sheet tfoot td { font-weight: 700; background: #f9fafb; border-top: 2px solid #d1d5db; }
.print-sheet .box { border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px 12px; }
.print-sheet .box .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }

@media print {
    @page { size: A4; margin: 12mm; }
    body { background: #fff !important; }
    .print-page { background: #fff; padding: 0; }
    .print-toolbar, .no-print { display: none !important; }
    .print-sheet { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
}

/* =====================================================================
   Google Drive dosya yöneticisi
   ===================================================================== */
.drive-sayfa { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 991.98px) { .drive-sayfa { grid-template-columns: 1fr; } }
.drive-yan { position: sticky; top: calc(var(--topbar-h) + 1rem); }
@media (max-width: 991.98px) { .drive-yan { position: static; } }
.drive-hesap { display: flex; gap: .75rem; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--app-border); }
.drive-hesap img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.drive-nav { padding: .75rem; display: flex; flex-direction: column; gap: 2px; }
.drive-nav button {
    display: flex; align-items: center; gap: .7rem; width: 100%;
    padding: .55rem .8rem; border-radius: 9px; border: 0; background: none;
    color: var(--app-text-2); font-weight: 500; font-size: .86rem; text-align: left;
}
.drive-nav button i { font-size: 1.05rem; color: var(--app-muted); }
.drive-nav button:hover { background: var(--app-surface-3); }
.drive-nav button.active { background: var(--app-primary-soft); color: var(--app-primary); font-weight: 600; }
.drive-nav button.active i { color: var(--app-primary); }
.drive-kota { padding: 1rem 1.1rem; border-top: 1px solid var(--app-border); }

.drive { position: relative; min-height: 460px; display: flex; flex-direction: column; }
.drive.kompakt { min-height: 300px; }
.drive-gomulu { margin: 1rem; border: 1px solid var(--app-border); border-radius: 12px; overflow: hidden; }
.drive-arac { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--app-border); flex-wrap: wrap; }
.drive-arac-sag { margin-left: auto; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.drive-arac .seg button { padding: .3rem .55rem; }
.drive-ara input { width: 220px; }
@media (max-width: 575.98px) { .drive-ara input { width: 150px; } }
.drive-yol { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; min-width: 0; font-size: .95rem; }
.drive-yol-oge { padding: .3rem .55rem; border-radius: 8px; color: var(--app-muted); font-weight: 600; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.drive-yol-oge:hover, a.drive-yol-oge.hedef-ustunde { background: var(--app-surface-3); color: var(--app-text); }
.drive-yol-oge.aktif { color: var(--app-text); font-weight: 700; }
.drive-yol-ayrac { color: var(--app-muted); font-size: .65rem; }
.dropdown-item.active i { color: #fff; }
.dropdown-item:not(.active) .bi-check2 { visibility: hidden; }
.drive-secim { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 1rem; background: var(--app-primary-soft); color: var(--app-primary); font-weight: 600; font-size: .85rem; flex-wrap: wrap; border-bottom: 1px solid var(--app-border); }
.drive-govde { flex: 1; }
.drive-tablo tbody tr { cursor: default; user-select: none; -webkit-user-select: none; }
.drive-tablo tbody tr.secili > td { background: rgba(var(--app-primary-rgb), .08); }
.drive-tablo tbody tr.hedef-ustunde > td { background: rgba(var(--app-primary-rgb), .18); }
.drive-ikon { font-size: 1.25rem; width: 1.6rem; text-align: center; flex-shrink: 0; line-height: 1; }
.drive-ikon-sm { font-size: .95rem; flex-shrink: 0; }
.drive-ad { color: var(--app-text); font-weight: 500; }
.drive-ad:hover { color: var(--app-primary); text-decoration: underline; }
.drive-bolum { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--app-muted); padding: 1rem 1rem .55rem; }
.drive-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; padding: 0 1rem 1rem; }
.drive-kart { border: 1px solid var(--app-border); border-radius: 12px; background: var(--app-surface); overflow: hidden; cursor: default; user-select: none; -webkit-user-select: none; transition: box-shadow .15s, border-color .15s; }
.drive-kart:hover { box-shadow: var(--app-shadow); border-color: var(--app-border-strong); }
.drive-kart.secili { border-color: var(--app-primary); box-shadow: 0 0 0 2px rgba(var(--app-primary-rgb), .25); }
.drive-kart.hedef-ustunde { border-color: var(--app-primary); background: var(--app-primary-soft); }
.drive-kart.klasor { display: flex; align-items: center; gap: .6rem; padding: .6rem .5rem .6rem .8rem; font-weight: 600; font-size: .85rem; }
.drive-kart.klasor > i:first-child { font-size: 1.3rem; }
.drive-kart-onizleme { position: relative; height: 124px; display: grid; place-items: center; background: var(--app-surface-3); font-size: 2.8rem; overflow: hidden; cursor: pointer; }
.drive-kart-onizleme img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--app-surface-3); }
.drive-kart-alt { display: flex; align-items: center; gap: .45rem; padding: .5rem .4rem .5rem .7rem; font-size: .82rem; font-weight: 500; border-top: 1px solid var(--app-border); }
.drive-birak { position: absolute; inset: .5rem; display: none; place-items: center; text-align: center; background: rgba(var(--app-primary-rgb), .07); border: 2px dashed var(--app-primary); border-radius: var(--app-radius); color: var(--app-primary); z-index: 5; pointer-events: none; backdrop-filter: blur(1px); }
.drive-birak i { font-size: 2.6rem; }
.drive.surukleniyor .drive-birak { display: grid; }
.drive-menu { position: fixed; z-index: 1080; min-width: 240px; margin: 0; }

.drive-yukleme { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 370px; max-width: calc(100vw - 2rem); background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 14px; box-shadow: var(--app-shadow-lg); z-index: 1075; overflow: hidden; }
.dy-baslik { display: flex; align-items: center; justify-content: space-between; padding: .7rem .6rem .7rem 1rem; background: var(--app-sidebar-bg); color: #fff; font-weight: 600; font-size: .85rem; }
.dy-baslik button { background: none; border: 0; color: #cbd5e1; padding: .2rem .45rem; border-radius: 6px; }
.dy-baslik button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.dy-liste { max-height: 320px; overflow-y: auto; }
.drive-yukleme.kucuk .dy-liste { display: none; }
.dy-oge { display: flex; gap: .7rem; align-items: center; padding: .65rem 1rem; border-bottom: 1px solid var(--app-border); }
.dy-oge:last-child { border-bottom: 0; }
.dy-oge .bar.hata { background: #ef4444; }
.dy-oge .bar.tamam { background: #10b981; }

.iskelet { background: linear-gradient(90deg, var(--app-surface-3) 25%, var(--app-surface-2) 50%, var(--app-surface-3) 75%); background-size: 200% 100%; animation: iskelet 1.2s infinite linear; border-radius: 6px; height: 14px; }
@keyframes iskelet { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.klasor-secici-liste { height: 340px; overflow-y: auto; border: 1px solid var(--app-border); border-radius: 10px; }
.klasor-secici-liste > button { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .6rem .85rem; border: 0; background: none; border-bottom: 1px solid var(--app-border); text-align: left; color: var(--app-text); font-size: .86rem; }
.klasor-secici-liste > button:hover { background: var(--app-surface-3); }

.onizleme-govde { background: #0b1020; min-height: 55vh; display: grid; place-items: center; border-radius: 0 0 16px 16px; overflow: hidden; }
.onizleme-govde img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.onizleme-cerceve { width: 100%; height: 78vh; border: 0; display: block; background: #fff; }
.onizleme-medya { max-width: 100%; max-height: 78vh; }
.drive-detay-onizleme { position: relative; height: 170px; border-radius: 12px; background: var(--app-surface-3); display: grid; place-items: center; font-size: 4rem; overflow: hidden; }
.drive-detay-onizleme img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.google-drive-logo { width: 72px; height: auto; }
.drive-logo-sm .google-drive-logo { width: 20px; margin-right: .15rem; }
.baglan-kart { max-width: 720px; margin: 1rem auto; text-align: center; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; box-shadow: var(--app-shadow-sm); }
.btn-google:hover { background: #f8fafc; border-color: #c6c9ce; color: #1f1f1f; }
[data-bs-theme=dark] .btn-google { background: #131314; color: #e3e3e3; border-color: #5f6368; }
[data-bs-theme=dark] .btn-google:hover { background: #1e1f20; color: #fff; }
.kurulum-adimlari { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.kurulum-adimlari li { padding: .45rem 0; font-size: .87rem; color: var(--app-text-2); }
.kurulum-adimlari li::marker { font-weight: 700; color: var(--app-primary); }

/* =====================================================================
   Gelir & Gider
   ===================================================================== */
.kat-ikon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 1rem; }
.kat-ikon-lg { width: 48px; height: 48px; border-radius: 14px; font-size: 1.35rem; }
.modal-title .kat-ikon { width: 34px; height: 34px; font-size: .95rem; margin-right: .6rem; }
.modal-title { display: flex; align-items: center; }

/* Kategoriler sayfası */
.kat-liste, .kat-alt { list-style: none; margin: 0; padding: 0; }
.kat-liste > li { border-bottom: 1px solid var(--app-border); }
.kat-liste > li:last-child { border-bottom: 0; }
.kat-satir { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem .75rem .6rem; }
.kat-satir:hover { background: var(--app-surface-2); }
.kat-satir.pasif { opacity: .55; }
.kat-alt > li .kat-satir { padding-left: 2.4rem; padding-top: .45rem; padding-bottom: .45rem; }
.kat-alt > li .kat-ikon { width: 28px; height: 28px; font-size: .8rem; border-radius: 8px; }
.kat-tut { color: var(--app-muted); cursor: grab; opacity: .35; padding: 0 .1rem; }
.kat-satir:hover .kat-tut { opacity: 1; }
.ikon-secici { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: .35rem; max-height: 170px; overflow-y: auto; padding: .15rem; }
.ikon-secici button { height: 38px; border: 1px solid var(--app-border); border-radius: 9px; background: var(--app-surface); color: var(--app-text-2); font-size: 1.05rem; display: grid; place-items: center; }
.ikon-secici button:hover { background: var(--app-surface-3); }
.ikon-secici button.active { background: var(--r, var(--app-primary)); border-color: var(--r, var(--app-primary)); color: #fff; }
.renk-ozel { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--app-border-strong); display: grid; place-items: center; cursor: pointer; color: var(--app-muted); font-size: .72rem; overflow: hidden; margin: 0; }
.renk-ozel input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Kayıt formu: kategori seçici */
.kat-grid { columns: 230px; column-gap: .75rem; }
.kat-grup { break-inside: avoid; margin-bottom: .75rem; }
.kat-tile {
    display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .65rem; margin: 0;
    border: 1px solid var(--app-border); border-radius: 12px; background: var(--app-surface);
    font-weight: 600; font-size: .86rem; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s;
}
.kat-tile .kat-ikon { width: 32px; height: 32px; font-size: .9rem; background: color-mix(in srgb, var(--r) 14%, transparent); color: var(--r); }
.kat-tile:hover { border-color: var(--r); }
.btn-check:checked + .kat-tile { border-color: var(--r); background: color-mix(in srgb, var(--r) 8%, var(--app-surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--r) 20%, transparent); }
.kat-altlar { display: flex; flex-wrap: wrap; gap: .35rem; padding: .45rem 0 0 .35rem; }
.kat-altlar:empty { display: none; }
.kat-chip {
    display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; margin: 0; border-radius: 999px;
    border: 1px solid var(--app-border); background: var(--app-surface); color: var(--app-text-2);
    font-size: .76rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.kat-chip i { color: var(--r); }
.kat-chip:hover { border-color: var(--r); }
.btn-check:checked + .kat-chip { background: var(--r); border-color: var(--r); color: #fff; }
.btn-check:checked + .kat-chip i { color: #fff; }
.btn-check:focus-visible + .kat-tile, .btn-check:focus-visible + .kat-chip { outline: 2px solid var(--r); outline-offset: 2px; }
.gg-ozet-tutar { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 1rem 0 .25rem; font-variant-numeric: tabular-nums; }

/* Özet sayfası */
.gg-kategori-satir { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--app-border); color: inherit; }
.gg-kategori-satir:last-child { border-bottom: 0; }
.gg-kategori-satir:hover { background: var(--app-surface-2); color: inherit; }
.gg-oran-bar { height: 6px; border-radius: 999px; background: var(--app-surface-3); overflow: hidden; }
.gg-oran-bar > span { display: block; height: 100%; border-radius: 999px; }
.gg-net-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--app-surface-3); }
.gg-net-bar span { display: block; height: 100%; }
.table-app tr.gun-baslik td { background: var(--app-surface-2); font-size: .78rem; padding-top: .45rem; padding-bottom: .45rem; color: var(--app-text-2); }
.table-app tr.gun-baslik:hover td { background: var(--app-surface-2); }

/* =====================================================================
   Google Dokümanlar
   ===================================================================== */
.dokuman-sayfa {
    display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h) - 7rem); min-height: 520px;
    background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--app-radius);
    overflow: hidden; box-shadow: var(--app-shadow-sm);
}
.dokuman-arac { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; border-bottom: 1px solid var(--app-border); flex-wrap: wrap; }
.dokuman-arac-sag { display: flex; align-items: center; gap: .35rem; margin-left: auto; flex-wrap: wrap; }
.dokuman-arac .seg button { padding: .25rem .6rem; }
.dokuman-ikon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.dokuman-ikon-buyuk { font-size: 3rem; line-height: 1; }
.dokuman-baslik {
    border: 1px solid transparent; background: none; padding: .05rem .35rem; margin-left: -.35rem; border-radius: 6px;
    font-weight: 650; font-size: 1rem; color: var(--app-text); max-width: 100%; text-align: left;
}
.dokuman-baslik:hover, .dokuman-baslik:focus-visible { border-color: var(--app-border-strong); outline: none; }
.dokuman-uyari { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .9rem; background: rgba(14, 165, 233, .08); border-bottom: 1px solid var(--app-border); color: var(--app-text-2); }
.dokuman-cerceve { position: relative; flex: 1; background: #f8f9fa; }
.dokuman-cerceve iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.dokuman-yukleniyor { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; background: var(--app-surface); }
body.dokuman-odak { overflow: hidden; }
body.dokuman-odak .dokuman-sayfa { position: fixed; inset: 0; z-index: 1040; height: auto; border: 0; border-radius: 0; }
@media (max-width: 991.98px) { .dokuman-sayfa { height: calc(100vh - var(--topbar-h) - 5rem); } }

.dokuman-yeni { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .9rem; }
.dokuman-yeni-kart {
    display: flex; flex-direction: column; gap: .65rem; padding: 1rem; text-align: left; color: var(--app-text);
    border: 1px solid var(--app-border); border-radius: 14px; background: var(--app-surface); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dokuman-yeni-kart:hover { border-color: var(--r); transform: translateY(-2px); box-shadow: 0 10px 24px -14px var(--r); }
.dokuman-yeni-kart .dyk-ikon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--r) 14%, transparent); color: var(--r); }
.dokuman-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
/* Kartta overflow:hidden yok; aksi halde ⋮ menüsü kartın içinde kırpılıyor. Köşeleri önizleme kendisi yuvarlar. */
.dokuman-kart { display: flex; flex-direction: column; border: 1px solid var(--app-border); border-radius: 14px; background: var(--app-surface); cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.dokuman-kart:hover { border-color: var(--app-border-strong); box-shadow: var(--app-shadow); }
.dokuman-kart-onizleme { position: relative; height: 150px; display: grid; place-items: center; font-size: 3rem; background: var(--app-surface-3); border-bottom: 1px solid var(--app-border); border-radius: 13px 13px 0 0; overflow: hidden; }
.dokuman-kart-alt .dropdown-menu { min-width: 14rem; }
.dokuman-kart-onizleme img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #fff; }
.dokuman-kart-alt { display: flex; gap: .5rem; align-items: flex-start; padding: .6rem .5rem .6rem .75rem; }

/* Gizlilik politikası (herkese açık) */
.yasal-sayfa { min-height: 100vh; background: var(--app-bg); padding: 3rem 1rem; }
.yasal-kart { max-width: 820px; margin: 0 auto; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--app-radius); box-shadow: var(--app-shadow); padding: 2.5rem; }
.yasal-kart h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .25rem; }
.yasal-kart h2 { font-size: 1.05rem; font-weight: 700; margin: 2rem 0 .6rem; }
.yasal-kart p, .yasal-kart li { color: var(--app-text-2); line-height: 1.7; font-size: .92rem; }
.yasal-kart ul { padding-left: 1.2rem; }
.yasal-vurgu { background: var(--app-primary-soft); border-left: 3px solid var(--app-primary); border-radius: var(--app-radius-sm); padding: 1rem 1.25rem; margin: 1rem 0; }
.yasal-vurgu p { margin: 0; }
@media (max-width: 575.98px) { .yasal-kart { padding: 1.5rem; } .yasal-sayfa { padding: 1.5rem 1rem; } }

/* Doküman seçimi ve toplu işlemler */
.dokuman-kart { position: relative; }
.dokuman-sec {
    position: absolute; top: .55rem; left: .55rem; z-index: 3; width: 30px; height: 30px; margin: 0;
    display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .2); opacity: 0; transition: opacity .12s; cursor: pointer;
}
[data-bs-theme=dark] .dokuman-sec { background: rgba(30, 41, 59, .94); }
.dokuman-sec .form-check-input { margin: 0; cursor: pointer; }
.dokuman-kart:hover .dokuman-sec, .dokuman-izgara.secim-modu .dokuman-sec, .dokuman-kart.secili .dokuman-sec { opacity: 1; }
@media (hover: none) { .dokuman-sec { opacity: 1; } }
.dokuman-kart.secili { border-color: var(--app-primary); box-shadow: 0 0 0 2px rgba(var(--app-primary-rgb), .3); }
.dokuman-kart.secili .dokuman-kart-onizleme::after { content: ""; position: absolute; inset: 0; background: rgba(var(--app-primary-rgb), .1); }
.dokuman-izgara.secim-modu .dokuman-kart { user-select: none; -webkit-user-select: none; }
.dokuman-rozet { position: absolute; top: .6rem; right: .6rem; z-index: 2; font-size: .7rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.dokuman-rozet-ikon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--app-surface); color: var(--app-muted); }
.dokuman-secim {
    position: sticky; top: calc(var(--topbar-h) + .5rem); z-index: 6; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    padding: .55rem .6rem .55rem .9rem; margin-bottom: 1rem; border-radius: 12px; background: var(--app-primary); color: #fff;
    box-shadow: var(--app-shadow-lg); font-weight: 600; font-size: .88rem;
}
.dokuman-secim .form-check-input { border-color: rgba(255, 255, 255, .7); background-color: transparent; }
.dokuman-secim .form-check-input:checked, .dokuman-secim .form-check-input:indeterminate { background-color: #fff; border-color: #fff; filter: invert(1) hue-rotate(180deg); }
.btn-secim { background: rgba(255, 255, 255, .16); color: #fff; border: 0; font-weight: 600; }
.btn-secim:hover, .btn-secim:focus-visible { background: rgba(255, 255, 255, .28); color: #fff; }
.btn-secim-tehlike:hover { background: #ef4444; }

/* =====================================================================
   Kişi girişi (e-posta çipleri) — paylaşım ve e-posta alıcıları
   ===================================================================== */
.kisi-girisi {
    position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; min-height: 38px; padding: .25rem .5rem;
    border: 1px solid var(--app-border-strong); border-radius: var(--app-radius-sm); background: var(--app-surface); cursor: text;
}
.kisi-girisi:focus-within { border-color: var(--app-primary); box-shadow: 0 0 0 3px rgba(var(--app-primary-rgb), .15); }
.kisi-girisi input { flex: 1; min-width: 150px; border: 0; outline: 0; background: transparent; padding: .2rem .1rem; color: var(--app-text); font-size: .9rem; }
.kisi-girisi input:disabled { cursor: not-allowed; }
.kisi-cip {
    display: inline-flex; align-items: center; gap: .15rem; max-width: 100%; padding: .1rem .15rem .1rem .6rem; border-radius: 999px;
    background: var(--app-surface-3); border: 1px solid var(--app-border); font-size: .82rem; font-weight: 500; color: var(--app-text);
}
.kisi-cip.hatali { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .45); color: #b91c1c; }
[data-bs-theme=dark] .kisi-cip.hatali { color: #fca5a5; }
.kisi-cip button { border: 0; background: none; padding: 0 .15rem; color: var(--app-muted); line-height: 1; border-radius: 50%; }
.kisi-cip button:hover { color: var(--app-text); background: var(--app-border); }
.kisi-oneri {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1090; margin: 0; padding: .3rem; list-style: none;
    background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 12px; box-shadow: var(--app-shadow-lg); max-height: 290px; overflow-y: auto;
}
.kisi-oneri li { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; }
.kisi-oneri li.aktif, .kisi-oneri li:hover { background: var(--app-primary-soft); }
.kisi-oneri .avatar { width: 30px; height: 30px; font-size: .75rem; flex-shrink: 0; }

/* Paylaşım penceresi */
.paylas-bolum { font-size: .78rem; font-weight: 700; color: var(--app-text-2); margin: 1.1rem 0 .35rem; }
.paylas-liste { max-height: 250px; overflow-y: auto; }
.paylas-kisi { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; }
.paylas-kisi img, .paylas-kisi .avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; object-fit: cover; font-size: .75rem; }
.paylas-genel { display: flex; gap: .75rem; align-items: center; padding: .7rem .8rem; border-radius: 12px; background: var(--app-surface-2); border: 1px solid var(--app-border); }
.paylas-genel-ikon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--app-surface-3); color: var(--app-text-2); font-size: 1.05rem; }
.paylas-genel-ikon.acik { background: rgba(16, 185, 129, .15); color: #059669; }
.paylas-genel-sec { width: auto; max-width: 100%; border: 0; background-color: transparent; padding-left: 0; box-shadow: none !important; }

/* =====================================================================
   E-posta
   ===================================================================== */
.nav-sayac { margin-left: auto; min-width: 20px; padding: .05rem .42rem; border-radius: 999px; background: var(--app-primary); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1.5; text-align: center; }
.mail-uygulama { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.25rem; height: calc(100vh - var(--topbar-h) - 7rem); min-height: 560px; }
.mail-yan { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.mail-hesap-sec {
    width: 100%; display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; border: 1px solid var(--app-border);
    border-radius: 10px; background: var(--app-surface); text-align: left; font-size: .82rem; font-weight: 600; color: var(--app-text);
}
.mail-hesap-sec:hover { background: var(--app-surface-2); }
.mail-renk { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.mail-klasorler { flex: 1; overflow-y: auto; padding: .25rem .6rem .75rem; display: flex; flex-direction: column; gap: 1px; }
.mail-klasorler > button {
    display: flex; align-items: center; gap: .65rem; width: 100%; padding: .46rem .7rem .46rem calc(.7rem + var(--seviye, 0) * .9rem);
    border: 0; border-radius: 9px; background: none; color: var(--app-text-2); font-size: .86rem; font-weight: 500; text-align: left; flex-shrink: 0;
}
.mail-klasorler > button i { color: var(--app-muted); font-size: 1rem; }
.mail-klasorler > button:hover { background: var(--app-surface-3); }
.mail-klasorler > button.active { background: var(--app-primary-soft); color: var(--app-primary); font-weight: 650; }
.mail-klasorler > button.active i { color: var(--app-primary); }
.mail-klasorler > button.okunmamis { font-weight: 700; color: var(--app-text); }
.mail-sayi { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--app-text-2); }
.mail-klasorler > button.active .mail-sayi { color: var(--app-primary); }
.mail-klasor-ayrac { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--app-muted); padding: .9rem .7rem .3rem; }
.mail-yan-alt { border-top: 1px solid var(--app-border); padding: .65rem 1rem; }
.mail-tasi-menu { max-height: 320px; overflow-y: auto; }

.mail-ana { display: grid; grid-template-columns: minmax(340px, 42%) minmax(0, 1fr); min-height: 0; overflow: hidden; }
.mail-liste-bolme { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--app-border); }
.mail-arac { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-bottom: 1px solid var(--app-border); min-height: 50px; flex-wrap: wrap; }
.mail-arac .seg button { padding: .22rem .55rem; font-size: .78rem; }
.mail-arac-secim { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.mail-ara { padding: .5rem .75rem; border-bottom: 1px solid var(--app-border); }
.mail-liste { flex: 1; overflow-y: auto; }
.mail-satir {
    position: relative; display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); align-items: start; gap: .55rem;
    padding: .7rem 1.4rem .7rem .7rem; border-bottom: 1px solid var(--app-border); cursor: pointer; user-select: none; -webkit-user-select: none;
}
.mail-satir:hover { background: var(--app-surface-2); }
.mail-satir.secili { background: rgba(var(--app-primary-rgb), .07); }
.mail-satir.acik { background: rgba(var(--app-primary-rgb), .12); }
.mail-satir.acik::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--app-primary); }
.mail-satir .form-check-input { margin-top: .55rem; }
.mail-yildiz { border: 0; background: none; padding: .42rem .05rem 0; color: var(--app-muted); line-height: 1; opacity: .55; }
.mail-satir:hover .mail-yildiz, .mail-yildiz.aktif { opacity: 1; }
.mail-yildiz:hover, .mail-yildiz.aktif { color: #f59e0b; }
.mail-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .74rem; font-weight: 700; flex-shrink: 0; }
.mail-avatar-lg { width: 42px; height: 42px; font-size: .88rem; }
.mail-satir-govde { min-width: 0; }
.mail-satir-ust { display: flex; align-items: baseline; gap: .4rem; }
.mail-kimden { flex: 1; min-width: 0; font-size: .86rem; font-weight: 500; color: var(--app-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-tarih { font-size: .74rem; color: var(--app-muted); white-space: nowrap; }
.mail-konu { font-size: .84rem; color: var(--app-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-konu i { margin-right: .25rem; color: var(--app-muted); }
.mail-onizleme { font-size: .78rem; color: var(--app-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.mail-satir.okunmamis .mail-kimden, .mail-satir.okunmamis .mail-konu { font-weight: 700; color: var(--app-text); }
.mail-satir.okunmamis .mail-tarih { color: var(--app-primary); font-weight: 700; }
.mail-satir.okunmamis::after { content: ""; position: absolute; right: .6rem; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--app-primary); }

.mail-okuma-bolme { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; background: var(--app-surface); }
.mail-okuma-bos { margin: auto; text-align: center; color: var(--app-muted); padding: 2rem; max-width: 460px; }
.mail-okuma-bos kbd { font-size: .7rem; }
.mail-okuma-arac { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .5rem; padding: .5rem .9rem; background: var(--app-surface); border-bottom: 1px solid var(--app-border); flex-wrap: wrap; }
.mail-okuma-icerik { padding: 1.1rem 1.4rem 1.6rem; }
.mail-okuma-konu { font-size: 1.3rem; font-weight: 750; letter-spacing: -.01em; margin: 0 0 1rem; overflow-wrap: anywhere; }
.mail-gonderen { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.mail-alicilar span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-uzak-uyari { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .5rem .8rem; margin-bottom: .9rem; border-radius: 10px; background: rgba(245, 158, 11, .1); color: var(--app-text-2); font-size: .82rem; }
.mail-govde-kap { border: 1px solid var(--app-border); border-radius: 12px; overflow: hidden; background: #fff; }
.mail-govde { display: block; width: 100%; min-height: 120px; border: 0; background: #fff; }
.mail-ekler { margin-top: 1.1rem; }
.mail-ek-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.mail-ek { display: flex; align-items: center; gap: .6rem; padding: .55rem .5rem .55rem .75rem; border: 1px solid var(--app-border); border-radius: 10px; background: var(--app-surface); }
.mail-ek > i { font-size: 1.5rem; }

@media (min-width: 1400px) { .mail-geri { display: none !important; } }
@media (max-width: 1399.98px) {
    .mail-ana { grid-template-columns: 1fr; }
    .mail-ana.okuyor .mail-liste-bolme { display: none; }
    .mail-ana:not(.okuyor) .mail-okuma-bolme { display: none; }
    .mail-liste-bolme { border-right: 0; }
}
@media (max-width: 991.98px) {
    .mail-uygulama { grid-template-columns: 1fr; height: auto; min-height: 0; }
    .mail-yan { overflow: visible; }
    .mail-klasorler { flex-direction: row; overflow-x: auto; padding-bottom: .6rem; }
    .mail-klasorler > button { width: auto; white-space: nowrap; padding-left: .7rem; }
    .mail-klasor-ayrac, .mail-yan-alt { display: none; }
    .mail-ana { height: calc(100vh - var(--topbar-h) - 3rem); min-height: 520px; }
}

/* E-posta hesapları */
.mail-hesap-satir { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--app-border); }
.mail-hesap-satir:last-child { border-bottom: 0; }
.mail-hesap-ikon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.15rem; background: color-mix(in srgb, var(--r) 14%, transparent); color: var(--r); }
.mail-secenek { transition: border-color .15s, box-shadow .15s; }
.mail-secenek:hover { border-color: var(--app-border-strong); box-shadow: var(--app-shadow); }
.hazir-secici { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.hazir-secici button {
    display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border: 1px solid var(--app-border); border-radius: 12px;
    background: var(--app-surface); color: var(--app-text); text-align: left; font-weight: 600; font-size: .86rem;
}
.hazir-secici button i { font-size: 1.25rem; }
.hazir-secici button small { display: block; font-weight: 400; font-size: .72rem; color: var(--app-muted); }
.hazir-secici button:hover { border-color: var(--app-border-strong); }
.hazir-secici button.active { border-color: var(--app-primary); background: var(--app-primary-soft); }
.mail-renk-secici { display: flex; flex-wrap: wrap; gap: .45rem; }
.mail-renk-secici label { position: relative; margin: 0; cursor: pointer; }
.mail-renk-secici input { position: absolute; opacity: 0; }
.mail-renk-secici span { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--r); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.mail-renk-secici input:checked + span { outline: 2px solid var(--r); outline-offset: 2px; }
.mail-renk-secici input:focus-visible + span { outline: 2px solid var(--app-primary); outline-offset: 2px; }

/* Yazma ekranı */
.mail-yaz { position: relative; max-width: 1040px; }
.mail-yaz-alan { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: .75rem; padding: .35rem 1.1rem; border-bottom: 1px solid var(--app-border); }
.mail-yaz-alan > label { font-size: .82rem; font-weight: 600; color: var(--app-text-2); margin: 0; }
.mail-yaz-alan .kisi-girisi { border: 0; box-shadow: none !important; padding-left: 0; background: transparent; }
.mail-yaz-alan > .form-control, .mail-yaz-alan > .form-select { border: 0; box-shadow: none !important; padding-left: 0; background-color: transparent; }
.mail-yaz-alan > .form-select { width: auto; max-width: 100%; font-weight: 600; }
.editor-arac { display: flex; flex-wrap: wrap; gap: .15rem; padding: .4rem .8rem; border-bottom: 1px solid var(--app-border); background: var(--app-surface-2); }
.editor-arac button, .editor-arac label { position: relative; width: 32px; height: 30px; display: grid; place-items: center; margin: 0; border: 0; border-radius: 7px; background: none; color: var(--app-text-2); cursor: pointer; }
.editor-arac button:hover, .editor-arac label:hover { background: var(--app-surface-3); color: var(--app-text); }
.editor-arac button.aktif { background: var(--app-primary-soft); color: var(--app-primary); }
.editor-arac .ayrac { width: 1px; background: var(--app-border); margin: .3rem .3rem; }
.editor-arac input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* Alıcılar iletiyi beyaz zeminde görür: düzenleyici temadan bağımsız açık renkte */
.mail-editor {
    min-height: 340px; max-height: 62vh; overflow-y: auto; padding: 1rem 1.25rem; outline: none; background: #fff; color: #1f2937;
    font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere;
}
.mail-editor p { margin: 0 0 .5rem; }
.mail-editor:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.mail-editor blockquote { margin: 0 0 0 .8ex; border-left: 2px solid #d1d5db; padding-left: 1ex; color: #4b5563; }
.mail-editor img { max-width: 100%; height: auto; }
.mail-editor a { color: #2563eb; }
.mail-editor .imza { color: #6b7280; }
.mail-yaz-ekler { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem 1.1rem; border-top: 1px solid var(--app-border); }
.mail-yaz-ekler:empty { display: none; }
.mail-yaz-ek { display: inline-flex; align-items: center; gap: .45rem; max-width: 300px; padding: .3rem .45rem .3rem .7rem; border: 1px solid var(--app-border); border-radius: 999px; font-size: .8rem; background: var(--app-surface-2); }
.mail-yaz-ek.kapali { opacity: .5; text-decoration: line-through; }
.mail-yaz-alt { display: flex; align-items: center; gap: .5rem; padding: .75rem 1.1rem; flex-wrap: wrap; border-top: 1px solid var(--app-border); }
.mail-yaz-birak { position: absolute; inset: 0; z-index: 5; display: none; place-items: center; background: rgba(var(--app-primary-rgb), .08); border: 2px dashed var(--app-primary); border-radius: var(--app-radius); color: var(--app-primary); font-weight: 700; pointer-events: none; }
.mail-yaz.surukleniyor .mail-yaz-birak { display: grid; }

/* =====================================================================
   Kütüphane düzeni — Yazılar ve Video Listesi ortak
   (sol panel: görünümler, kategoriler, etiketler · kategori yönetimi · etiket girişi · sayfalama)
   ===================================================================== */
.yazi-duzen { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.yazi-yan { position: sticky; top: calc(var(--topbar-h) + 1rem); }
@media (max-width: 991.98px) {
    .yazi-duzen { grid-template-columns: 1fr; }
    .yazi-yan { position: static; }
    .yazi-yan .yazi-nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

.yazi-nav { padding: .5rem; display: grid; gap: 2px; }
.yazi-nav a, .yazi-kat {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem .7rem; border-radius: 9px;
    color: var(--app-text-2); font-weight: 500; font-size: .86rem;
}
.yazi-nav a i, .yazi-kat i { color: var(--app-muted); width: 1.1rem; text-align: center; }
.yazi-nav a:hover, .yazi-kat:hover { background: var(--app-surface-3); color: var(--app-text); }
.yazi-nav a.active, .yazi-kat.active { background: var(--app-primary-soft); color: var(--app-primary); font-weight: 600; }
.yazi-nav a.active i { color: var(--app-primary); }
.yazi-nav .sayi, .yazi-kat .sayi { margin-left: auto; font-size: .72rem; color: var(--app-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.yazi-yan-bolum { border-top: 1px solid var(--app-border); padding: .7rem .5rem .6rem; }
.yazi-yan-baslik {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 .3rem .3rem .7rem; font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--app-muted);
}
.yazi-yan-baslik .btn-ghost { width: 26px; height: 26px; }
.yazi-etiketler { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .6rem .3rem; }

.sayfalama { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .35rem; margin-top: 1.5rem; }

.kat-satir { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px dashed var(--app-border); }
.kat-satir:last-child { border-bottom: 0; }
.kat-nokta { width: 22px; height: 22px; border-radius: 50%; border: 0; flex-shrink: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.kat-renkler { display: grid; grid-template-columns: repeat(5, 24px); gap: .35rem; }
.kat-renk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.kat-renk.active { border-color: var(--app-text); }
[data-kat-sil].onay { width: auto; padding: 0 .5rem; background: rgba(239, 68, 68, .12); color: #dc2626; }

.etiket-girisi {
    display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; min-height: 36px; padding: .3rem .45rem; cursor: text;
    border: 1px solid var(--app-border-strong); border-radius: 8px; background: var(--app-surface);
}
.etiket-girisi:focus-within { border-color: rgba(var(--app-primary-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--app-primary-rgb), .12); }
.etiket-girisi input { flex: 1; min-width: 90px; border: 0; outline: 0; background: transparent; font-size: .8rem; color: var(--app-text); padding: .1rem .2rem; }
.etiket-cip {
    display: inline-flex; align-items: center; gap: .1rem; padding: .12rem .2rem .12rem .5rem; border-radius: 999px;
    background: var(--app-primary-soft); color: var(--app-primary); font-size: .74rem; font-weight: 600;
}
.etiket-cip button { border: 0; background: none; color: inherit; padding: 0 .15rem; line-height: 1; opacity: .65; }
.etiket-cip button:hover { opacity: 1; }

/* =====================================================================
   Gösterge paneli: ajanda (takvim + görevler + hatırlatmalar)
   ===================================================================== */
.ajanda-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 1.75rem; }
.ajanda-liste li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed var(--app-border); min-width: 0; }
.ajanda-saat { width: 50px; flex-shrink: 0; font-weight: 700; font-size: .86rem; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ajanda-saat small { display: block; font-weight: 500; color: var(--app-muted); font-size: .72rem; }
.ajanda-saat.tum { font-size: .66rem; color: var(--app-muted); text-transform: uppercase; letter-spacing: .04em; }
.ajanda-cizgi { width: 4px; align-self: stretch; border-radius: 4px; flex-shrink: 0; }
.ajanda-baslik { display: block; font-weight: 600; color: var(--app-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.ajanda-baslik:hover { color: var(--app-primary); }
.ajanda-alt { font-size: .75rem; color: var(--app-muted); display: flex; gap: .3rem; align-items: center; min-width: 0; }
.ajanda-bos { color: var(--app-muted); font-size: .86rem; padding: .7rem 0; display: flex; gap: .5rem; align-items: center; }
.ajanda-uyari { font-size: .8rem; color: #b45309; background: rgba(245, 158, 11, .1); border-radius: 8px; padding: .4rem .65rem; margin: .4rem 0; display: flex; gap: .45rem; }
.ajanda-ipucu { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--app-muted); padding: .6rem 0 .3rem; border-top: 1px solid var(--app-border); margin-top: .35rem; }
.ajanda-ipucu a { margin-left: auto; font-weight: 600; }

/* Küçük animasyon */
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
