/* ── EzeMind Project Manager ─────────────────────────── */
:root {
    --bg-primary: #0b1120;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-card-hover: #1e2a3f;
    --bg-input: #0f1729;
    --border: #1e3a5f;
    --border-light: #263a54;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #eab308;
    --orange: #f97316;
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --pink: #ec4899;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --transition: 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Login Screen ────────────────────────────────────── */
.login-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-primary); }
.login-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 380px; max-width: 90vw; text-align: center; }
.login-box h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; color: var(--accent); }
.login-box .subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; }
.login-box .pin-label { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; text-align: left; }
.pin-inputs { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.pin-inputs input { width: 56px; height: 64px; text-align: center; font-size: 28px; font-weight: 700; background: var(--bg-input); border: 2px solid var(--border); border-radius: var(--radius); color: var(--text-primary); outline: none; transition: var(--transition); -moz-appearance: textfield; }
.pin-inputs input::-webkit-outer-spin-button, .pin-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pin-inputs input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }
.login-error { color: var(--danger); font-size: 13px; margin-bottom: 16px; min-height: 20px; }

/* ── Layout ──────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar { width: 200px; background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 0; flex-shrink: 0; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; }
.sidebar-brand { padding: 0 20px; height: 56px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sidebar-brand h1 { font-size: 20px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; line-height: 1; }
.sidebar-brand .sub { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-top: 3px; line-height: 1; }
.sidebar-nav { flex: 1; padding: 12px 10px 0; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); text-decoration: none; margin-bottom: 2px; }
.sidebar-nav a:hover { background: var(--bg-card); color: var(--text-primary); }
.sidebar-nav a.active { background: var(--accent); color: white; }
.sidebar-nav a .icon { font-size: 16px; width: 20px; text-align: center; }
.nav-icon { width: 22px; height: 22px; border-radius: 4px; background: rgba(255,255,255,0.08); display: inline-flex !important; align-items: center; justify-content: center; font-size: 11px !important; font-weight: 800; letter-spacing: 0; }
.sidebar-nav a.active .nav-icon { background: rgba(255,255,255,0.2); }
.sidebar-footer { padding: 12px 14px; border-top: 1px solid var(--border); flex-shrink: 0; }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sidebar-user .avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: white; flex-shrink: 0; }
.sidebar-user .name { font-size: 13px; font-weight: 600; }
.sidebar-user .role { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }
.sidebar-user-actions { display: flex; gap: 6px; }
.sidebar-user-actions .btn { font-size: 11px; padding: 4px 0; flex: 1; justify-content: center; }

.main-content { margin-left: 200px; flex: 1; padding: 0; min-height: 100vh; }

/* ── Top Bar ─────────────────────────────────────────── */
.top-bar { display: flex; align-items: center; gap: 16px; padding: 0 24px; height: 56px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.search-wrap { position: relative; flex: 0 0 320px; }
.search-wrap .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border: 2px solid var(--text-muted); border-radius: 50%; display: block; }
.search-wrap .icon::after { content: ''; position: absolute; width: 2px; height: 6px; background: var(--text-muted); border-radius: 1px; top: 10px; left: 9px; transform: rotate(-45deg); }
.search-wrap input { width: 100%; padding: 9px 14px 9px 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; color: var(--text-primary); font-size: 13px; outline: none; transition: var(--transition); }
.search-wrap input:focus { border-color: var(--accent); }
.search-wrap input::placeholder { color: var(--text-muted); }
.top-filters { display: flex; gap: 8px; flex: 1; justify-content: flex-end; align-items: center; flex-wrap: wrap; }

/* ── Filter Dropdowns ────────────────────────────────── */
.filter-select { padding: 7px 28px 7px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; color: var(--text-primary); font-size: 12px; font-weight: 500; outline: none; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; transition: var(--transition); }
.filter-select:focus, .filter-select:hover { border-color: var(--accent); }
.filter-select option { background: var(--bg-card); color: var(--text-primary); }
.clear-filters { padding: 7px 14px; background: transparent; border: 1px solid var(--border); border-radius: 20px; color: var(--text-muted); font-size: 12px; cursor: pointer; transition: var(--transition); }
.clear-filters:hover { border-color: var(--danger); color: var(--danger); }

/* ── Buttons ─────────────────────────────────────────── */
.btn { padding: 8px 16px; border: none; border-radius: var(--radius); cursor: pointer; font-size: 13px; font-weight: 600; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #16a34a; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-secondary { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 6px 8px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; border-radius: var(--radius); transition: var(--transition); }
.btn-icon:hover { background: var(--bg-card); color: var(--text-primary); }
.btn-icon.danger:hover { color: var(--danger); }

/* ── Page Content ────────────────────────────────────── */
.page { display: none; padding: 24px 24px 60px; }
.page.active { display: block; }
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

/* ── Stat Cards ──────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; transition: var(--transition); }
.stat-card:hover { border-color: var(--border-light); transform: translateY(-1px); }
.stat-card .value { font-size: 28px; font-weight: 800; line-height: 1; }
.stat-card .label { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card.critical .value { color: var(--danger); }
.stat-card.high .value { color: var(--orange); }
.stat-card.progress .value { color: var(--accent); }
.stat-card.hours .value { color: var(--purple); }
.stat-card.security .value { color: var(--warning); }
.stat-card.done .value { color: var(--success); }

/* ── Dashboard Charts ────────────────────────────────── */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.dash-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.dash-panel h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 16px; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bar-label { font-size: 13px; font-weight: 600; min-width: 70px; }
.bar-track { flex: 1; height: 8px; background: var(--bg-input); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.bar-count { font-size: 13px; font-weight: 700; min-width: 30px; text-align: right; }

/* ── Priority badges / colors ────────────────────────── */
.priority-critical { color: var(--danger); }
.priority-high { color: var(--orange); }
.priority-medium { color: var(--warning); }
.priority-low { color: var(--success); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-critical { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-high { background: rgba(249,115,22,0.15); color: #fb923c; }
.badge-medium { background: rgba(234,179,8,0.15); color: #facc15; }
.badge-low { background: rgba(34,197,94,0.15); color: #4ade80; }

/* ── Status badges ───────────────────────────────────── */
.status-select { padding: 4px 24px 4px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; border: none; outline: none; cursor: pointer; appearance: none; -webkit-appearance: none; background-repeat: no-repeat; background-position: right 6px center; background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='currentColor' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.status-backlog { background: rgba(100,116,139,0.2); color: #94a3b8; }
.status-quoted { background: rgba(139,92,246,0.2); color: #a78bfa; }
.status-approved { background: rgba(59,130,246,0.2); color: #60a5fa; }
.status-in-progress { background: rgba(249,115,22,0.2); color: #fb923c; }
.status-testing { background: rgba(6,182,212,0.2); color: #22d3ee; }
.status-done { background: rgba(34,197,94,0.2); color: #4ade80; }
.status-archived { background: rgba(71,85,105,0.2); color: #64748b; }

/* ── Type icons ──────────────────────────────────────── */
.type-icon { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; cursor: default; }
.type-bug { background: rgba(249,115,22,0.15); color: var(--orange); }
.type-feature { background: rgba(6,182,212,0.15); color: var(--cyan); }
.type-enhancement { background: rgba(234,179,8,0.15); color: var(--warning); }
.type-security { background: rgba(239,68,68,0.15); color: var(--danger); }

/* ── Table ───────────────────────────────────────────── */
.table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 10px 14px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); background: var(--bg-secondary); cursor: pointer; user-select: none; white-space: nowrap; }
thead th:hover { color: var(--text-primary); }
thead th .sort-arrow { font-size: 10px; margin-left: 4px; }
tbody td { padding: 10px 14px; border-bottom: 1px solid rgba(30,58,95,0.3); font-size: 13px; vertical-align: middle; transition: var(--transition); }
tbody tr { transition: var(--transition); }
tbody tr:hover { background: var(--bg-card-hover); }
tbody tr.row-done { opacity: 0.5; }
.col-num { width: 50px; color: var(--text-muted); font-weight: 500; }
.col-priority { width: 80px; }
.col-type { width: 44px; text-align: center; }
.col-status { width: 120px; }
.col-desc { min-width: 200px; }
.col-module { width: 100px; color: var(--text-secondary); }
.col-assigned { width: 120px; }
.col-hours { width: 60px; text-align: center; color: var(--text-secondary); }
.col-blocker { width: 160px; }
.col-security { width: 140px; }
.col-actions { width: 90px; text-align: right; white-space: nowrap; }
.blocker-text { color: var(--pink); font-style: italic; font-size: 12px; }
.security-text { color: var(--warning); font-size: 12px; }
.cell-edit { cursor: pointer; padding: 2px 4px; border-radius: 3px; min-height: 20px; transition: var(--transition); outline: none; }
.cell-edit:hover { background: rgba(59,130,246,0.1); }
.cell-edit:focus { background: rgba(59,130,246,0.15); outline: 1px solid var(--accent); }

/* ── Assignee Tags ───────────────────────────────────── */
.assignee-pills { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.assignee-pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; color: white; }
.assignee-pill .remove { cursor: pointer; opacity: 0.6; margin-left: 2px; font-size: 12px; }
.assignee-pill .remove:hover { opacity: 1; }
.add-pill { cursor: pointer; padding: 2px 7px; font-size: 13px; color: var(--text-muted); border: 1px dashed var(--border); border-radius: 10px; transition: var(--transition); }
.add-pill:hover { color: var(--accent); border-color: var(--accent); }

/* ── Kanban Board ────────────────────────────────────── */
.kanban-container { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px; min-height: calc(100vh - 150px); }
.kanban-col { flex: 0 0 260px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; max-height: calc(100vh - 150px); }
.kanban-col-header { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.kanban-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.kanban-col-count { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.kanban-col-body { padding: 12px; flex: 1; overflow-y: auto; }
.kanban-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; cursor: grab; transition: var(--transition); position: relative; }
.kanban-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.kanban-card.dragging { opacity: 0.5; }
.kanban-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kanban-card-num { font-size: 11px; color: var(--text-muted); }
.kanban-card-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.kanban-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11px; color: var(--text-muted); }
.kanban-card-project { display: flex; align-items: center; gap: 4px; }
.kanban-card-project .dot { width: 8px; height: 8px; border-radius: 50%; }
.kanban-card-blocker { background: rgba(236,72,153,0.15); color: var(--pink); padding: 4px 8px; border-radius: 4px; font-size: 10px; margin-top: 6px; }

/* ── Project Drilldown ───────────────────────────────── */
.drilldown-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.drilldown-back { padding: 6px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-secondary); cursor: pointer; font-size: 13px; transition: var(--transition); }
.drilldown-back:hover { color: var(--text-primary); border-color: var(--accent); }
.drilldown-title { font-size: 22px; font-weight: 700; }
.project-select-dd { padding: 8px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 14px; outline: none; cursor: pointer; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; cursor: pointer; transition: var(--transition); border-left: 4px solid; }
.project-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.project-card .count { font-size: 28px; font-weight: 800; color: var(--accent); }
.project-card .name { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* ── Blocked Items ───────────────────────────────────── */
.blocked-panel { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--danger); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; }
.blocked-panel h3 { color: var(--danger); font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.5px; }
.blocked-item { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(30,58,95,0.3); }
.blocked-item:last-child { border-bottom: none; }
.blocked-item .num { color: var(--text-muted); font-size: 13px; min-width: 30px; }
.blocked-item .title { flex: 1; font-size: 13px; }
.blocked-item .reason { color: var(--pink); font-style: italic; font-size: 12px; text-align: right; }

/* ── Modal ───────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; width: 560px; max-width: 94vw; max-height: 90vh; overflow-y: auto; animation: modalIn 0.2s ease-out; }
@keyframes modalIn { from { opacity:0; transform: translateY(-20px) scale(0.97); } to { opacity:1; transform: translateY(0) scale(1); } }
.modal h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.modal label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.modal input, .modal textarea, .modal select { width: 100%; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 14px; font-family: inherit; outline: none; transition: var(--transition); margin-bottom: 14px; }
.modal input:focus, .modal textarea:focus, .modal select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.modal textarea { resize: vertical; min-height: 70px; }
.modal select { cursor: pointer; appearance: auto; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.modal-confirm-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.modal-confirm-text strong { color: var(--text-primary); }

/* ── Checkbox Multi-Select (Assignees in modal) ──────── */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.checkbox-group label { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg-input); border: 2px solid var(--border); border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s ease; position: relative; }
.checkbox-group label:hover { border-color: var(--accent); background: rgba(59,130,246,0.08); }
.checkbox-group label.checked { background: var(--accent); border-color: var(--accent); color: white; font-weight: 700; }
.checkbox-group label.checked::before { content: "\2713\00a0"; font-size: 11px; font-weight: 800; }
.checkbox-group .assignee-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.checkbox-group label.checked .assignee-dot { background: white !important; }
.checkbox-group input[type="checkbox"] { display: none; }

/* ── Dropdown (assignee context menu) ────────────────── */
.ctx-dropdown { position: fixed; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.4); padding: 4px; z-index: 200; min-width: 140px; }
.ctx-dropdown div { padding: 8px 14px; cursor: pointer; border-radius: 4px; font-size: 13px; color: var(--text-secondary); transition: var(--transition); }
.ctx-dropdown div:hover { background: var(--accent); color: white; }

/* ── Admin Panel ─────────────────────────────────────── */
.admin-section { margin-bottom: 32px; }
.admin-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.admin-card .header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.admin-card .user-name { font-size: 15px; font-weight: 700; }
.admin-card .user-role { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; text-transform: uppercase; }
.admin-card .user-role.admin { background: rgba(239,68,68,0.15); color: #f87171; }
.admin-card .user-role.manager { background: rgba(139,92,246,0.15); color: #a78bfa; }
.admin-card .user-role.member { background: rgba(59,130,246,0.15); color: #60a5fa; }
.admin-card .detail { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.admin-card .vis-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.admin-card .vis-tag { padding: 2px 8px; background: var(--bg-input); border-radius: 10px; font-size: 11px; color: var(--text-secondary); }
.admin-card .actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ── Task Updates Feed ────────────────────────────────── */
.updates-section { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 16px; }
.updates-section h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 12px; }
.updates-compose { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.updates-compose textarea { flex: 1; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 13px; font-family: inherit; outline: none; resize: vertical; min-height: 60px; transition: var(--transition); }
.updates-compose textarea:focus { border-color: var(--accent); }
.updates-compose .compose-actions { display: flex; flex-direction: column; gap: 6px; }
.paste-hint { font-size: 10px; color: var(--text-muted); text-align: center; margin-top: 4px; }
.paste-preview { margin: 8px 0; position: relative; display: inline-block; }
.paste-preview img { max-width: 200px; max-height: 120px; border-radius: var(--radius); border: 1px solid var(--border); }
.paste-preview .remove-img { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: var(--danger); color: white; border: none; border-radius: 50%; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
.updates-feed { max-height: 300px; overflow-y: auto; }
.update-item { padding: 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; }
.update-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.update-item-user { font-size: 12px; font-weight: 700; }
.update-item-time { font-size: 11px; color: var(--text-muted); }
.update-item-content { font-size: 13px; color: var(--text-secondary); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.update-item-image { margin-top: 8px; }
.update-item-image img { max-width: 100%; max-height: 300px; border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; }
.update-item-image img:hover { border-color: var(--accent); }
.update-delete { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 4px; transition: var(--transition); }
.update-delete:hover { color: var(--danger); background: rgba(239,68,68,0.1); }
.no-updates { color: var(--text-muted); font-size: 13px; font-style: italic; padding: 12px 0; }
/* Image lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000; align-items: center; justify-content: center; cursor: pointer; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }

/* ── Footer Bar ──────────────────────────────────────── */
.footer-bar { position: fixed; bottom: 0; left: 200px; right: 0; padding: 0 24px; height: 44px; background: var(--bg-secondary); border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); z-index: 30; }

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .sidebar { width: 60px; }
    .sidebar-brand h1, .sidebar-brand .sub, .sidebar-nav a span:not(.icon), .sidebar-user .name, .sidebar-user .role { display: none; }
    .sidebar-nav a { justify-content: center; padding: 12px; }
    .main-content { margin-left: 60px; }
    .footer-bar { left: 60px; }
    .dash-grid { grid-template-columns: 1fr; }
    .kanban-col { flex: 0 0 220px; }
}

/* ── Drag & Drop visual ─────────────────────────────── */
.kanban-col-body.drag-over { background: rgba(59,130,246,0.05); border: 2px dashed var(--accent); border-radius: var(--radius); }

/* ── Tooltip ─────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding: 4px 8px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 4px; font-size: 11px; color: var(--text-primary); white-space: nowrap; z-index: 100; }

/* ── Additional Status Colors ────────────────────────── */
.status-code-review { background: rgba(168,85,247,0.2); color: #c084fc; }
.status-review { background: rgba(139,92,246,0.2); color: #a78bfa; }
.status-lead { background: rgba(234,179,8,0.2); color: #facc15; }
.status-contacted { background: rgba(249,115,22,0.2); color: #fb923c; }
.status-proposal { background: rgba(59,130,246,0.2); color: #60a5fa; }
.status-negotiation { background: rgba(139,92,246,0.2); color: #a78bfa; }
.status-won { background: rgba(34,197,94,0.2); color: #4ade80; }
.status-lost { background: rgba(239,68,68,0.2); color: #f87171; }

/* ── Updates Section ─────────────────────────────────── */
.updates-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.updates-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text-secondary); }
.updates-compose { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.updates-compose textarea { width: 100%; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 13px; font-family: inherit; outline: none; resize: vertical; min-height: 60px; transition: var(--transition); }
.updates-compose textarea:focus { border-color: var(--accent); }
.compose-actions { display: flex; flex-direction: column; gap: 6px; }
.updates-feed { max-height: 400px; overflow-y: auto; }
.update-item { padding: 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; }
.update-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.update-item-user { font-weight: 700; font-size: 13px; }
.update-item-time { font-size: 11px; color: var(--text-muted); }
.update-item-content { font-size: 13px; color: var(--text-secondary); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.update-item-image { margin-top: 8px; }
.update-item-image img { max-width: 100%; max-height: 200px; border-radius: var(--radius); cursor: pointer; border: 1px solid var(--border); }
.update-delete { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 0 4px; margin-left: 8px; }
.update-delete:hover { color: var(--danger); }
.no-updates { text-align: center; padding: 20px; color: var(--text-muted); font-size: 13px; }
.paste-preview { position: relative; display: inline-block; margin-top: 8px; }
.paste-preview img { max-width: 200px; max-height: 120px; border-radius: var(--radius); border: 1px solid var(--border); }
.paste-preview .remove-img { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: white; border: none; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ── Lightbox ────────────────────────────────────────── */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000; align-items: center; justify-content: center; cursor: pointer; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }

/* ── Blocked Panel Title ─────────────────────────────── */
.blocked-title { color: var(--danger); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
