/* ============================================================
   MDIX Dashboard — clean & simple, Jira-inspired
   ============================================================ */
:root {
    --primary: #0052cc;
    --primary-dark: #0747a6;
    --primary-soft: #deebff;
    --bg: #f4f5f7;
    --surface: #ffffff;
    --border: #dfe1e6;
    --border-soft: #ebecf0;
    --text: #172b4d;
    --text-muted: #6b778c;
    --text-faint: #97a0af;
    --success: #36b37e;
    --success-soft: #e3fcef;
    --warning: #ffab00;
    --warning-soft: #fffae6;
    --danger: #de350b;
    --danger-soft: #ffebe6;
    --purple: #6554c0;
    --purple-soft: #eae6ff;
    --orange: #f0662f;
    --orange-soft: #fff3eb;
    --radius: 8px;
    --shadow-sm: 0 1px 2px rgba(9, 30, 66, 0.08);
    --shadow-md: 0 4px 12px rgba(9, 30, 66, 0.12);
    --shadow-lg: 0 12px 32px rgba(9, 30, 66, 0.2);
    --nav-h: 56px;
}

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

html { -webkit-font-smoothing: antialiased; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
b { font-weight: 600; }

/* ---------------- Logo & navbar ---------------- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.2px;
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--primary), #2684ff);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.logo-sub { font-weight: 500; opacity: 0.75; font-size: 13px; }

.navbar {
    height: var(--nav-h);
    background: linear-gradient(90deg, #09326c 0%, var(--primary-dark) 45%, var(--primary) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(9, 30, 66, 0.25);
}
.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.navbar .logo { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 7px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-link.is-active { background: rgba(255, 255, 255, 0.2); color: #fff; }

.nav-user { display: flex; align-items: center; gap: 10px; }

/* ---------------- Notifikasi (bell + panel) ---------------- */
.nav-notif { position: relative; }
.nav-icon-btn {
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.15s;
}
.nav-icon-btn:hover { background: rgba(255, 255, 255, 0.25); }
.notif-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 0 2px #0747a6;
}
.notif-panel[hidden] { display: none; }
.notif-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 370px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 120;
    overflow: hidden;
    color: var(--text);
}
.notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
}
.notif-panel-head h3 { font-size: 14px; }
.notif-head-actions { display: flex; align-items: center; gap: 6px; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
    cursor: pointer;
    transition: background 0.12s;
}
.notif-item:hover { background: #fafbfc; }
.notif-item.is-unread { background: #f0f6ff; }
.notif-item.is-unread:hover { background: #e6f0ff; }
.notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.notif-icon-info { background: var(--primary-soft); }
.notif-icon-deadline { background: var(--warning-soft); }
.notif-icon-warning { background: var(--danger-soft); }
.notif-body { flex: 1; min-width: 0; }
.notif-title {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 4px; }
.notif-msg {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-meta {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.notif-empty { padding: 24px; text-align: center; color: var(--text-faint); font-size: 13px; }
.notif-foot { padding: 10px 14px; border-top: 1px solid var(--border-soft); }
.nav-user-info { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.nav-user-name { font-weight: 600; font-size: 13px; }
.nav-user-role { font-size: 11px; color: rgba(255, 255, 255, 0.7); }

/* ---------------- Avatar ---------------- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}
.avatar-pm { background: linear-gradient(135deg, #2684ff, #0052cc); }
.avatar-admin { background: linear-gradient(135deg, #00b8d9, #0065ff); }
.avatar-pic { background: linear-gradient(135deg, #00c7e6, #008da6); }
.avatar-member { background: linear-gradient(135deg, #8777d9, var(--purple)); }

/* ---------------- Container & page head ---------------- */
.container { max-width: 1240px; margin: 0 auto; padding: 24px; }
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.page-sub { color: var(--text-muted); margin-top: 2px; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.12s, box-shadow 0.12s, background 0.15s, opacity 0.15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(0.95); }
.btn.is-danger { color: var(--danger); border-color: #ffbdad; }
.btn.is-danger:hover { background: var(--danger-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn.is-pulse { animation: btnPulse 0.6s ease; }
@keyframes btnPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* ---------------- Login page ---------------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 600px at 20% -10%, #e8f0fe 0%, var(--bg) 55%);
    padding: 24px;
}
.login-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 24px; }
.login-brand { text-align: center; }
.login-brand .logo { font-size: 22px; }
.login-brand .logo-mark { width: 38px; height: 38px; font-size: 18px; }
.login-tagline { color: var(--text-muted); margin-top: 8px; }
.login-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
    margin-top: 10px;
    max-width: 380px;
}
.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}
.login-card h1 { font-size: 20px; margin-bottom: 18px; }
.login-demo {
    margin-top: 18px;
    padding: 12px 14px;
    background: var(--primary-soft);
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.login-demo b { color: var(--primary); }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
input[type="text"], input[type="password"], input[type="date"], textarea, select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fafbfc;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}
textarea { resize: vertical; }
.check-row { display: flex; gap: 20px; }
.check-wrap { flex-wrap: wrap; gap: 10px 22px; }
.check-label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; user-select: none; }
.check-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.form-error {
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid #ffbdad;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ---------------- Stats ---------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    user-select: none;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #c1c7d0; }
.stat-card:active { transform: translateY(0); }
.stat-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.stat-card.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.18);
    background: #f7fbff;
}
.stat-card.is-active .stat-label { color: var(--primary); font-weight: 700; }
.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--primary-soft);
}
.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -0.5px; }
.stat-label { font-size: 12.5px; color: var(--text-muted); }

/* ---------------- Toolbar / filters ---------------- */
.board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.filter-tabs { display: flex; gap: 4px; background: #e9ecf1; padding: 3px; border-radius: 8px; }
.filter-tab {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.filter-mine { font-size: 13px; color: var(--text-muted); }

/* ---------------- Board ---------------- */
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}
.board-col {
    background: #ebecf0;
    border-radius: 10px;
    padding: 12px;
    min-height: 320px;
}
.col-head { padding: 4px 6px 10px; }
.col-title { display: flex; align-items: center; gap: 8px; }
.col-icon { font-size: 16px; }
.col-title h2 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.2px; }
.col-count {
    background: var(--border);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 9px;
}
.col-hint { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.col-body { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 280px); overflow-y: auto; padding: 2px 2px 6px; }
.col-empty {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 26px 12px;
    text-align: center;
    color: var(--text-faint);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.4);
}

/* ---------------- Task card ---------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 14px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #c1c7d0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-title { font-size: 14.5px; font-weight: 700; margin-bottom: 3px; letter-spacing: -0.2px; }
.card-client { font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; }
.card-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.card-assignee { font-size: 12.5px; font-weight: 600; }
.card-assignee.is-muted { color: var(--text-faint); font-weight: 500; font-style: italic; }
.card-time { font-size: 12px; color: var(--text-muted); margin-left: auto; text-align: right; }
.card-time .elapsed { color: var(--primary); font-variant-numeric: tabular-nums; }
.card-actions { display: flex; align-items: center; gap: 6px; }
.card-wait { font-size: 12px; color: var(--text-faint); font-style: italic; }
.card-admin-actions { margin-left: auto; display: inline-flex; gap: 4px; }
.icon-btn {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--bg); border-color: #c1c7d0; }
.icon-btn.is-danger:hover { background: var(--danger-soft); border-color: #ffbdad; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-blue { background: #deebff; color: #0052cc; }
.badge-green { background: var(--success-soft); color: #006644; }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-teal { background: #e6fcff; color: #008da6; }

.card-deadline {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 20px;
}
.card-deadline.is-overdue { background: var(--danger-soft); color: var(--danger); }

.btn-claim { background: var(--primary-soft); color: var(--primary); }
.btn-claim:hover { background: #c5d8f7; }
.btn-finish { background: var(--success-soft); color: #006644; }
.btn-finish:hover { background: #b7e5cf; }

/* ---------------- Projects: toolbar search & filter tanggal ---------------- */
.proj-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 420px;
}
.search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    opacity: 0.55;
    pointer-events: none;
}
.search-box input {
    padding-left: 32px;
}
.proj-date-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}
.date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
}
.date-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.date-sep { color: var(--text-faint); }
.date-filter input {
    width: 138px;
    padding: 5px 8px;
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
}
.date-filter input:focus {
    border: none;
    box-shadow: none;
    background: transparent;
}
.proj-count {
    font-size: 12.5px;
    color: var(--text-faint);
    margin-left: auto;
}

/* ---------------- Laporan (admin) ---------------- */
.laporan-actions { display: flex; align-items: center; gap: 10px; }
.laporan-actions .filter-tabs a { text-decoration: none; display: inline-flex; align-items: center; }
.laporan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel-head {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    font-weight: 700;
}
.laporan-projects { margin-bottom: 24px; }
@media (max-width: 900px) {
    .laporan-grid { grid-template-columns: 1fr; }
}
@media print {
    .navbar, .laporan-actions, .board-toolbar, .toast-wrap, .notif-panel { display: none !important; }
    body { background: #fff; }
    .container { padding: 0; }
    .panel, .stat-card { box-shadow: none; border-color: #ddd; }
    .page-head { margin-bottom: 12px; }
}

/* ---------------- Panel & table (Projects) ---------------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}
.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-faint);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover { background: #fafbfc; }
.t-title { font-weight: 700; }
tr[data-project] .t-title { cursor: pointer; }
tr[data-project] .t-title:hover { color: var(--primary); text-decoration: underline; }
.t-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.t-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.table-empty { text-align: center; color: var(--text-faint); padding: 30px; font-style: italic; }
.progress { width: 110px; height: 6px; background: var(--border-soft); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), #2684ff); border-radius: 4px; transition: width 0.4s ease; }
.chip { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.member-cell { display: flex; align-items: center; gap: 10px; }
.t-workers { display: flex; flex-direction: column; gap: 6px; }
.worker { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.worker-name { font-weight: 600; }
.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
td code { background: var(--bg); border: 1px solid var(--border-soft); border-radius: 5px; padding: 1px 7px; font-size: 12.5px; color: var(--text); }
.chip-open { background: var(--primary-soft); color: var(--primary); }
.chip-pic { background: #e6fcff; color: #008da6; }
.chip-progress { background: var(--warning-soft); color: #974f0c; }
.chip-revisi { background: #fff3eb; color: var(--danger); border: 1px solid #ffbdad; }
.chip-pending { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.chip-done { background: var(--success-soft); color: #006644; }
.status-toggle { margin-top: 6px; display: block; }

/* ---------------- Modal ---------------- */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 30, 66, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}
.modal {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    padding: 22px 24px;
}
.modal-lg { max-width: 640px; max-height: calc(100vh - 60px); overflow-y: auto; }

/* ---------------- Detail brief (modal) ---------------- */
.pd-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pd-client { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.pd-section-title {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-faint);
    font-weight: 700;
    margin: 14px 0 8px;
}
.pd-desc {
    background: #fafbfc;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}
.pd-tasks { display: flex; flex-direction: column; gap: 8px; }
.pd-task {
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}
.pd-task-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pd-task-status { font-size: 12px; font-weight: 700; white-space: nowrap; }
.pd-task-status.is-available { color: var(--text-faint); }
.pd-task-status.is-in_progress { color: #974f0c; }
.pd-task-status.is-done { color: #006644; }
.pd-task-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
.pd-who { display: inline-flex; align-items: center; gap: 6px; }
.pd-time { margin-left: auto; }
.pd-time b { color: var(--primary); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h2 { font-size: 17px; }
.modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 5px;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------------- Popup notifikasi (dari PM/Admin) ---------------- */
.notif-popup {
    position: fixed;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 260;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    width: 430px;
    max-width: calc(100vw - 32px);
    display: flex;
    gap: 12px;
    padding: 15px 16px;
}
.notif-popup.np-warning { border-left-color: var(--danger); }
.notif-popup.np-deadline { border-left-color: var(--warning); }
.np-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}
.np-icon-info { background: var(--primary-soft); }
.np-icon-deadline { background: var(--warning-soft); }
.np-icon-warning { background: var(--danger-soft); }
.np-body { flex: 1; min-width: 0; }
.np-kicker { font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; }
.np-kicker b { color: var(--primary); }
.np-title {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 4px;
    padding-right: 20px;
    letter-spacing: -0.2px;
}
.np-msg {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 130px;
    overflow-y: auto;
}
.np-project { margin-top: 7px; font-size: 12px; color: var(--text-faint); }
.np-actions { display: flex; gap: 8px; margin-top: 11px; }
.np-x {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    color: var(--text-faint);
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 5px;
}
.np-x:hover { background: var(--bg); color: var(--text); }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
    background: var(--text);
    color: #fff;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}
.toast.is-error { background: var(--danger); }

/* ---------------- Install page ---------------- */
.install-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.install-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 32px;
    max-width: 460px;
    width: 100%;
}
.install-card h1 { margin: 14px 0; }
.install-msg { padding: 8px 12px; border-radius: 6px; background: var(--success-soft); color: #006644; margin-bottom: 8px; }
.install-msg.is-error { background: var(--danger-soft); color: var(--danger); }
.install-note { color: var(--text-muted); font-size: 13px; margin: 14px 0; }
.install-note code { background: var(--bg); padding: 1px 6px; border-radius: 4px; }

/* ---------------- Scrollbar ---------------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c1c7d0; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: #97a0af; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .board { grid-template-columns: 1fr; }
    .nav-inner { gap: 12px; padding: 0 16px; }
    .nav-user-info { display: none; }
    .container { padding: 16px; }
}