/* ============================================================
   RENTODO — tek CSS dosyası
   Palet: Renware marka renkleri (renware.com.tr)
     Cyan #35C5F4 · Blue #528CCA · Green #61CE70 · Navy #0A1628
   Fontlar self-host edilir (assets/fonts), harici istek yok.
   ============================================================ */

/* ---------- Fontlar ---------- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/space-grotesk-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/space-grotesk-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/space-grotesk-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/space-grotesk-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Token'lar ---------- */

:root {
    --bg: #EEF1F5;
    --card: #FFFFFF;
    --sidebar-bg: #0A1628;
    --sidebar-hover: #0D2847;
    --sidebar-text: #B9C6D8;
    --text: #22344C;
    --text-2: #64748B;
    --brand: #528CCA;            /* Renware Blue: linkler, vurgular */
    --brand-strong: #3D6FAE;     /* birincil buton */
    --brand-strong-hover: #33619B;
    --accent: #35C5F4;           /* Renware Cyan: aktif durumlar */
    --green: #61CE70;            /* Renware Green: ilerleme */
    --p-acil: #DC2626;
    --p-yuksek: #EA580C;
    --p-orta: #CA8A04;
    --p-dusuk: #94A3B8;
    --next: #F59E0B;
    --next-bg: #FFFBEB;
    --success: #2E9E52;
    --danger: #DC2626;
    --border: #DFE5EC;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(10, 22, 40, .06);
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; }

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

button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

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

code {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: .9em;
    background: #ECF0F5;
    padding: 2px 5px;
    border-radius: 5px;
    word-break: break-all;
}

/* ---------- Yerleşim ---------- */

.layout { display: flex; min-height: 100vh; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.content { flex: 1; padding: 20px 24px 40px; max-width: 1440px; width: 100%; }

/* ---------- Sidebar ---------- */

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 16px 0 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo { padding: 2px 18px 16px; }
.sidebar-logo a { display: block; }
.sidebar-logo img { width: 128px; height: auto; display: block; }

.sidebar-nav { display: flex; flex-direction: column; gap: 1px; padding: 0 10px; }

.nav-link {
    display: block;
    padding: 7px 12px;
    border-radius: 7px;
    color: var(--sidebar-text);
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--sidebar-hover); color: #FFFFFF; text-decoration: none; }
.nav-link.active { background: rgba(53, 197, 244, .14); color: #FFFFFF; box-shadow: inset 2px 0 0 var(--accent); }

.sidebar-section-title {
    margin: 20px 18px 6px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5B6B80;
}

.room-list { display: flex; flex-direction: column; gap: 1px; padding: 0 10px; }

.room-list-empty {
    padding: 7px 12px;
    font-size: 13px;
    color: #5B6B80;
}

.room-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 7px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: background .15s;
}
.room-link:hover { background: var(--sidebar-hover); color: #FFFFFF; text-decoration: none; }
.room-link.active { background: rgba(53, 197, 244, .14); color: #FFFFFF; box-shadow: inset 2px 0 0 var(--accent); }

.room-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-badges { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
}
.badge-open { background: rgba(255, 255, 255, .12); color: #D6E0EC; }
.badge-alert { background: var(--p-acil); color: #FFFFFF; min-width: 16px; height: 16px; }
.badge-unread { background: var(--accent); color: #06283D; }

.btn-new-room {
    margin: 8px 18px 0;
    padding: 7px 12px;
    border: 1px dashed rgba(185, 198, 216, .35);
    border-radius: 7px;
    background: none;
    color: var(--sidebar-text);
    font-weight: 500;
    text-align: left;
    transition: border-color .15s, color .15s;
}
.btn-new-room:hover { border-color: var(--accent); color: #FFFFFF; }

.sidebar-archive { margin: 16px 10px 0; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sidebar-archive summary {
    padding: 5px 8px;
    font-size: 12px;
    color: #5B6B80;
    cursor: pointer;
    border-radius: 6px;
}
.sidebar-archive summary:hover { color: var(--sidebar-text); }
.room-link.archived { opacity: .7; font-size: 13px; }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, .55);
    z-index: 40;
}

/* ---------- Üst bar ---------- */

.topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 24px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.page-title { font-size: 17px; flex-shrink: 0; }

.hamburger { display: none; background: none; border: none; padding: 6px; }
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    border-radius: 2px;
}

.topbar-search { margin-left: auto; }
.topbar-search input {
    width: 210px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--bg);
}
.topbar-search input:focus { background: var(--card); border-color: var(--brand); }

.topbar-user { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.topbar-username { font-weight: 500; }
.logout-link { color: var(--text-2); font-size: 13px; }

/* ---------- Kartlar, butonlar, formlar ---------- */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    margin-bottom: 16px;
}

.card-title { font-size: 15px; margin-bottom: 10px; }

.narrow-card { max-width: 640px; }

.muted { color: var(--text-2); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 15px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 500;
    line-height: 1.4;
    transition: background .15s, border-color .15s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--brand-strong); color: #FFFFFF; }
.btn-primary:hover { background: var(--brand-strong-hover); }

.btn-ghost { background: none; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg); }

.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-danger:hover { background: #B91C1C; }

.btn-sm { padding: 4px 10px; font-size: 13px; }

.btn-block { width: 100%; }

.btn[disabled] { opacity: .55; cursor: not-allowed; }

.field { display: block; margin-bottom: 12px; }

.field-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
}

.field input[type="text"],
.field input[type="password"],
.field input[type="search"],
.field input[type="date"],
.field select,
.field textarea,
.stack-form input,
.stack-form select,
.stack-form textarea {
    width: 100%;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--card);
    transition: border-color .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }

.form-error {
    background: rgba(220, 38, 38, .07);
    color: var(--danger);
    border-radius: 7px;
    padding: 9px 13px;
    margin-bottom: 12px;
    font-size: 13px;
}

.checkbox-row { display: flex; align-items: center; gap: 7px; font-weight: 400; cursor: pointer; }
.checkbox-row input { accent-color: var(--brand); width: 15px; height: 15px; }

.assignee-picker { display: flex; flex-wrap: wrap; gap: 5px 14px; padding: 3px 0; }

/* ---------- Öncelik etiketleri, avatarlar, rozetler ---------- */

.pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}
.pill-acil   { color: var(--p-acil);   background: rgba(220, 38, 38, .09); }
.pill-yuksek { color: var(--p-yuksek); background: rgba(234, 88, 12, .09); }
.pill-orta   { color: var(--p-orta);   background: rgba(202, 138, 4, .09); }
.pill-dusuk  { color: #64748B;         background: rgba(148, 163, 184, .14); }

.room-tag {
    display: inline-flex;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: var(--brand);
    background: rgba(82, 140, 202, .1);
    white-space: nowrap;
}

.avatars { display: inline-flex; }
.avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(82, 140, 202, .16);
    color: #33619B;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card);
    margin-left: -6px;
}
.avatar:first-child { margin-left: 0; }

.deadline-chip { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.deadline-chip.soon { color: var(--p-orta); font-weight: 500; }
.deadline-chip.overdue { color: var(--p-acil); font-weight: 500; }

.comment-count { font-size: 11.5px; color: var(--text-2); white-space: nowrap; }

/* ---------- Görev satırları ---------- */

.task-list { display: flex; flex-direction: column; gap: 6px; }

.task-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--p-orta);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px 12px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.task-row:hover { border-color: #C9D3E0; box-shadow: 0 2px 6px rgba(10, 22, 40, .09); }

a.task-row, a.task-row:hover { color: inherit; text-decoration: none; }

.task-row.p-acil   { border-left-color: var(--p-acil); }
.task-row.p-yuksek { border-left-color: var(--p-yuksek); }
.task-row.p-orta   { border-left-color: var(--p-orta); }
.task-row.p-dusuk  { border-left-color: var(--p-dusuk); }

.task-row.is-next { background: var(--next-bg); }
.task-row.overdue-row .task-title { color: var(--p-acil); }

.task-check {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--success);
    cursor: pointer;
}
.task-check[disabled] { cursor: not-allowed; }

.task-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.task-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }

.next-star { color: var(--next); font-size: 14px; flex-shrink: 0; }

.task-meta { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

.task-row.completed { opacity: .72; border-left-color: var(--success); }
.task-row.completed .task-title { text-decoration: line-through; color: var(--text-2); font-weight: 400; }

.completed-info { font-size: 12px; color: var(--success); white-space: nowrap; }

.empty-note {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px 15px;
    color: var(--text-2);
}

/* ---------- Bölüm başlıkları ---------- */

.section { margin-bottom: 20px; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.section-title { font-size: 14.5px; }
.section-link { font-size: 12.5px; }

/* ---------- Dashboard ---------- */

.quickadd-form {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1fr auto;
    gap: 8px;
    align-items: end;
}
.quickadd-form .field { margin-bottom: 0; }
.quickadd-assignees { grid-column: 1 / -1; }

/* Acil + Gecikenler yan yana */
.dash-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}
.dash-cols .section { margin-bottom: 20px; min-width: 0; }
.dash-cols .task-title { white-space: normal; }

/* ---------- Oda sayfası ---------- */

.room-head { margin-bottom: 16px; }
.room-head-top { display: flex; align-items: flex-start; gap: 14px; }
.room-head-title { flex: 1; min-width: 0; }
.room-head h2 { font-size: 19px; }
.room-desc { color: var(--text-2); margin-top: 2px; }
.room-menu { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }

.archived-banner {
    background: rgba(202, 138, 4, .1);
    color: #854D0E;
    border-radius: 7px;
    padding: 9px 13px;
    margin-bottom: 14px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.progress-wrap { margin-top: 10px; }
.progress-text { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.progress-bar {
    height: 6px;
    background: #DDE4EC;
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 999px;
}

.room-grid {
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: 18px;
    align-items: start;
}

.completed-details { margin-top: 14px; }
.completed-details summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-2);
    padding: 7px 4px;
    border-radius: 6px;
}
.completed-details .task-list { margin-top: 6px; }

/* ---------- Sekmeli panel: Sohbet | Notlar ---------- */

.side-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    max-height: calc(100vh - 190px);
    position: sticky;
    top: 66px;
}

.tabs { display: flex; border-bottom: 1px solid var(--border); }
.tab-btn {
    flex: 1;
    padding: 10px 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tab-btn.active { color: var(--brand); border-bottom-color: var(--accent); }

.tab-unread {
    background: var(--accent);
    color: #06283D;
    border-radius: 999px;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.tab-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tab-panel[hidden] { display: none; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.chat-empty { color: var(--text-2); font-size: 13px; text-align: center; margin: auto; }

.msg { max-width: 85%; align-self: flex-start; }
.msg.mine { align-self: flex-end; }

.msg-head { font-size: 11px; color: var(--text-2); margin: 0 4px 2px; }
.msg.mine .msg-head { text-align: right; }

.msg-body {
    background: #EDF1F6;
    border-radius: 11px;
    border-top-left-radius: 4px;
    padding: 7px 11px;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.msg.mine .msg-body {
    background: rgba(82, 140, 202, .14);
    border-top-left-radius: 11px;
    border-top-right-radius: 4px;
}

.chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border);
    align-items: flex-end;
}
.chat-form textarea {
    flex: 1;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    resize: none;
    max-height: 110px;
}

.notes-panel { padding: 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.notes-panel textarea {
    flex: 1;
    min-height: 260px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    resize: vertical;
}
.notes-meta { font-size: 12px; color: var(--text-2); }

/* ---------- Modallar ---------- */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, .55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 36px 16px;
    z-index: 100;
    overflow-y: auto;
}
.modal-backdrop[hidden] { display: none; }

.modal {
    background: var(--card);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(10, 22, 40, .3);
    width: 100%;
    max-width: 620px;
    padding: 18px 20px;
}
.modal-sm { max-width: 420px; }

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.modal-head h3 { font-size: 16px; }

.modal-close {
    background: none;
    border: none;
    font-size: 21px;
    line-height: 1;
    color: var(--text-2);
    padding: 2px 8px;
    border-radius: 6px;
}
.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 16px;
}
.modal-actions .btn-danger { margin-right: auto; }

.confirm-text { color: var(--text-2); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .span-2 { grid-column: 1 / -1; }

/* Modal sekmeleri (Detay | Geçmiş) */
.modal-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.modal-tab-btn {
    padding: 6px 13px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: var(--text-2);
}
.modal-tab-btn.active { color: var(--brand); border-bottom-color: var(--accent); }

.history-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.history-item { font-size: 13px; display: flex; gap: 10px; justify-content: space-between; }
.history-when { color: var(--text-2); white-space: nowrap; font-size: 12px; }

/* Yorumlar */
.comments-block { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.comments-title { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 9px; }
.comment-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 11px; max-height: 260px; overflow-y: auto; }
.comment-item { background: var(--bg); border-radius: 7px; padding: 7px 11px; }
.comment-head { font-size: 11.5px; color: var(--text-2); margin-bottom: 2px; }
.comment-head strong { color: var(--text); }
.comment-body { white-space: pre-wrap; word-wrap: break-word; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form textarea {
    flex: 1;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    resize: vertical;
    min-height: 36px;
}

/* ---------- Toast ---------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    background: #0D2847;
    color: #F0F5FA;
    padding: 9px 17px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(10, 22, 40, .35);
    font-size: 13px;
    z-index: 200;
    transition: opacity .15s;
}
.toast.error { background: var(--danger); }

/* ---------- Kim Ne Yapıyor ---------- */

.team-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.team-summary-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px 14px;
}
.team-summary-item .name { font-weight: 600; margin-bottom: 2px; }
.team-summary-item .stats { font-size: 12px; color: var(--text-2); }
.team-summary-item .stats .stat-acil { color: var(--p-acil); font-weight: 500; }
.team-summary-item .stats .stat-late { color: var(--p-yuksek); font-weight: 500; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    align-items: start;
}
.team-col-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
}
.team-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--p-orta);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px 12px;
    margin-bottom: 6px;
    display: block;
    color: inherit;
}
.team-card:hover { text-decoration: none; border-color: #C9D3E0; box-shadow: 0 2px 6px rgba(10, 22, 40, .09); color: inherit; }
.team-card.p-acil { border-left-color: var(--p-acil); }
.team-card.p-yuksek { border-left-color: var(--p-yuksek); }
.team-card.p-orta { border-left-color: var(--p-orta); }
.team-card.p-dusuk { border-left-color: var(--p-dusuk); }
.team-card.is-next { background: var(--next-bg); }
.team-card-title { font-weight: 500; margin-bottom: 4px; }
.team-card-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

/* ---------- Aktivite ---------- */

.activity-list { display: flex; flex-direction: column; }
.activity-item {
    padding: 8px 2px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 14px;
}
.activity-item:last-child { border-bottom: none; }
.activity-when { color: var(--text-2); font-size: 12px; white-space: nowrap; }

/* ---------- Arama ---------- */

.search-group { margin-bottom: 20px; }
.search-group h3 { font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.search-hit {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 9px 13px;
    margin-bottom: 6px;
    color: inherit;
}
.search-hit:hover { text-decoration: none; border-color: #C9D3E0; box-shadow: 0 2px 6px rgba(10, 22, 40, .09); color: inherit; }
.search-hit-title { font-weight: 500; }
.search-hit-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ---------- Login ---------- */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--sidebar-bg);
}
.login-card {
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(10, 22, 40, .4);
    width: 100%;
    max-width: 380px;
    padding: 32px 30px;
}
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.login-logo img { width: 170px; height: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform .2s ease;
        height: 100%;
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { display: block; }

    .hamburger { display: block; }

    .topbar { padding: 9px 14px; gap: 10px; }
    .topbar-search { display: none; }
    .content { padding: 14px 14px 36px; }

    .room-grid { grid-template-columns: 1fr; }
    .side-panel { position: static; max-height: none; min-height: 380px; }

    .dash-cols { grid-template-columns: 1fr; gap: 0; }

    .quickadd-form { grid-template-columns: 1fr 1fr; }
    .quickadd-form .qa-title { grid-column: 1 / -1; }
    .quickadd-form .qa-submit { grid-column: 1 / -1; }

    .form-grid { grid-template-columns: 1fr; }

    .task-meta .avatars { display: none; }
    .task-title { white-space: normal; }
}
