/* ════════════════════════════════════════════════
   DESIGN TOKENS & RESET
   ════════════════════════════════════════════════ */
:root {
    --primary-dark: #1A2B4A; /* Syntec Navy */
    --primary-blue: #2563EB; /* Accent Blue */
    --accent-teal: #0891B2;  /* Accent Teal */
    --success: #10B981;      /* Success Green */
    --warning: #F97316;      /* Warning Orange */
    --danger: #EF4444;       /* Critical Red */
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-500: #64748B;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --white: #FFFFFF;
    --font-family: 'Inter', 'Sarabun', -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(26,43,74,0.06), 0 2px 6px rgba(26,43,74,0.04);
    --shadow-lg: 0 10px 30px rgba(26,43,74,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Ensure Google Fonts inherit to all input, select, textarea, button fields */
input, select, textarea, button {
    font-family: var(--font-family);
}

body {
    font-family: var(--font-family);
    background: radial-gradient(circle at 10% 20%, rgba(37,99,235,0.08) 0%, transparent 45%),
                radial-gradient(circle at 90% 10%, rgba(245,158,11,0.08) 0%, transparent 45%),
                radial-gradient(circle at 80% 90%, rgba(16,185,129,0.08) 0%, transparent 45%),
                radial-gradient(circle at 10% 80%, rgba(236,72,153,0.08) 0%, transparent 45%),
                linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    background-attachment: fixed;
    color: var(--slate-800);
    font-size: 14.5px; /* Slightly larger size for improved readability */
    line-height: 1.6;  /* Improved vertical spacing for English/Thai mixed characters */
    overflow-x: hidden;
    min-height: 100vh;
}

/* ════════════════════════════════════════════════
   LAYOUT STRUCTURE
   ════════════════════════════════════════════════ */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background-color: var(--primary-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0,0,0,0.05);
}

.sidebar-header {
    margin-bottom: 40px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.2s ease;
}

.logo-area:hover {
    opacity: 0.85;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -1px;
}

.logo-text h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 10px;
    color: var(--slate-300);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--slate-300);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--white);
    background-color: rgba(255,255,255,0.05);
}

.nav-item.active {
    color: var(--white);
    background-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.2);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 13px;
    font-weight: 600;
}

.user-info span {
    font-size: 11px;
    color: var(--slate-300);
}

/* MAIN CONTENT */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 40px;
    min-width: 0; /* Prevents flex children from breaking width */
}

/* HEADER */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header-title h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.header-title p {
    font-size: 13px;
    color: var(--slate-500);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ════════════════════════════════════════════════
   UI COMPONENTS
   ════════════════════════════════════════════════ */

/* SYNC INDICATOR */
.sync-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background-color: var(--white);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.sync-indicator .indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sync-indicator.synced .indicator-dot {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.sync-indicator.syncing .indicator-dot {
    background-color: var(--warning);
    box-shadow: 0 0 8px var(--warning);
    animation: pulse 1.5s infinite;
}

.sync-indicator.error .indicator-dot {
    background-color: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn i {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #1D4ED8);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--slate-50);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #DC2626;
}

.btn.icon-only {
    padding: 10px;
}

/* ════════════════════════════════════════════════
   TAB: DASHBOARD
   ════════════════════════════════════════════════ */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* KPI CARD GRID */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.kpi-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid rgba(26,43,74,0.06);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-icon-wrapper i {
    width: 24px;
    height: 24px;
}

.kpi-icon-wrapper.blue { background-color: rgba(37,99,235,0.1); color: var(--primary-blue); }
.kpi-icon-wrapper.orange { background-color: rgba(249,115,22,0.1); color: var(--warning); }
.kpi-icon-wrapper.green { background-color: rgba(16,185,129,0.1); color: var(--success); }
.kpi-icon-wrapper.grey { background-color: rgba(100,116,139,0.1); color: var(--slate-500); }
.kpi-icon-wrapper.red { background-color: rgba(239,68,68,0.1); color: var(--danger); }

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 2px 0;
}

.kpi-subtext {
    font-size: 11px;
    color: var(--slate-500);
}

/* OVERALL PROGRESS PANEL */
.overall-progress-panel {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(26,43,74,0.06);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.progress-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}

.progress-panel-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

.progress-panel-header p {
    font-size: 12px;
    color: var(--slate-500);
}

.progress-panel-percentage {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.progress-panel-bar-container {
    height: 10px;
    background-color: var(--slate-100);
    border-radius: 5px;
    overflow: hidden;
}

.progress-panel-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal), var(--primary-blue));
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CHARTS ROW */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(26,43,74,0.06);
    box-shadow: var(--shadow-sm);
}

.chart-card.double-width {
    grid-column: span 1;
}

.chart-header {
    margin-bottom: 20px;
}

.chart-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

.canvas-container {
    position: relative;
    height: 250px;
    width: 100%;
}

/* BOTTOM ROW panels */
.dashboard-double-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(26,43,74,0.06);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.panel-header {
    margin-bottom: 20px;
}

.title-with-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-with-badge h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

.panel-subtitle {
    font-size: 12px;
    color: var(--slate-500);
}

/* AT RISK ACTIONS LIST */
.panel-body {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
}

.at-risk-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: var(--radius-sm);
    background-color: rgba(239,68,68,0.03);
    border: 1px solid rgba(239,68,68,0.1);
    margin-bottom: 8px;
    transition: var(--transition);
}

.at-risk-item:hover {
    background-color: rgba(239,68,68,0.05);
}

.at-risk-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.at-risk-name {
    font-weight: 600;
    color: var(--slate-800);
}

.at-risk-desc {
    font-size: 12px;
    color: var(--slate-500);
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.at-risk-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--danger);
    background-color: rgba(239,68,68,0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.empty-alert-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: var(--slate-500);
    gap: 8px;
}

.empty-alert-state i {
    width: 32px;
    height: 32px;
    color: var(--success);
}

/* TEAM WORKLOAD SUMMARY */
.workload-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-100);
}

.workload-item:last-child {
    border-bottom: none;
}

.workload-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.workload-member {
    font-weight: 600;
}

.workload-count {
    color: var(--slate-500);
}

.workload-progress-bar {
    height: 6px;
    background-color: var(--slate-100);
    border-radius: 3px;
    overflow: hidden;
}

.workload-progress-fill {
    height: 100%;
    border-radius: 3px;
}

/* ════════════════════════════════════════════════
   TAB: PROJECTS LIST
   ════════════════════════════════════════════════ */

/* FILTER BAR */
.filter-bar {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    border: 1px solid rgba(26,43,74,0.06);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-500);
    width: 18px;
    height: 18px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    font-family: var(--font-family);
    font-size: 13.5px;
    outline: none;
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.filter-selects {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-selects select {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    font-family: var(--font-family);
    font-size: 13.5px;
    outline: none;
    background-color: var(--white);
    color: var(--slate-700);
    transition: var(--transition);
}

.filter-selects select:focus {
    border-color: var(--primary-blue);
}

/* TABLE */
.table-container {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(26,43,74,0.06);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.project-table th {
    background-color: var(--slate-50);
    padding: 16px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--slate-200);
}

.project-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
}

.project-table tr:last-child td {
    border-bottom: none;
}

.project-table tr:hover td {
    background-color: var(--slate-50);
}

/* Project names */
.project-title-cell {
    font-weight: 600;
    color: var(--slate-800);
    line-height: 1.4;
}

/* Progress bar inside cells */
.table-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-progress-bar {
    width: 60px;
    height: 6px;
    background-color: var(--slate-100);
    border-radius: 3px;
    overflow: hidden;
}

.table-progress-fill {
    height: 100%;
    border-radius: 3px;
}

.table-progress-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-700);
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
}

.badge-success { background-color: rgba(16,185,129,0.1); color: var(--success); }
.badge-warning { background-color: rgba(249,115,22,0.1); color: var(--warning); }
.badge-danger { background-color: rgba(239,68,68,0.1); color: var(--danger); }
.badge-info { background-color: rgba(37,99,235,0.1); color: var(--primary-blue); }
.badge-secondary { background-color: var(--slate-100); color: var(--slate-500); }

/* Assignee Pill */
.assignee-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--slate-100);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.assignee-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 9px;
}

.assignee-name {
    color: var(--slate-700);
    font-weight: 600;
}

/* Action icons */
.actions-cell {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    color: var(--slate-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: var(--slate-100);
}

.action-btn.btn-edit:hover { color: var(--primary-blue); }
.action-btn.btn-delete:hover { color: var(--danger); }

.action-btn i {
    width: 16px;
    height: 16px;
}

/* Empty State Table View */
.empty-state-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--slate-500);
    gap: 12px;
}

.empty-state-view i {
    width: 48px;
    height: 48px;
    color: var(--slate-300);
}

.empty-state-view.hidden {
    display: none;
}

/* ════════════════════════════════════════════════
   TAB: DIS TEAM (ORG CHART + DETAILS)
   ════════════════════════════════════════════════ */
.team-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.org-chart-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid rgba(26,43,74,0.06);
    box-shadow: var(--shadow-sm);
}

.org-chart-header {
    margin-bottom: 24px;
}

.org-chart-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

.org-chart-header p {
    font-size: 12px;
    color: var(--slate-500);
}

.org-chart-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* Chart hierarchy styling */
.org-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.org-node {
    background-color: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.org-node:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.org-node.active {
    border-color: var(--primary-blue);
    background-color: rgba(37,99,235,0.02);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.avatar-square {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
}

.avatar-square.blue { background-color: #1e3a8a; }
.avatar-square.darkblue { background-color: #2563eb; }
.avatar-square.teal { background-color: #0891b2; }
.avatar-square.green { background-color: #16a34a; }
.avatar-square.orange { background-color: #ea580c; }
.avatar-square.pink { background-color: #db2777; }

.node-info h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-800);
}

.node-info span {
    font-size: 10.5px;
    color: var(--slate-500);
}

.org-staff-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    width: 100%;
    border-top: 1px solid var(--slate-100);
    padding-top: 20px;
}

.staff-group-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.staff-group-box h6 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-500);
    border-bottom: 2px solid var(--slate-100);
    padding-bottom: 6px;
}

.staff-group-nodes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Profile Detail side panel */
.member-detail-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid rgba(26,43,74,0.06);
    box-shadow: var(--shadow-sm);
    min-height: 480px;
}

.empty-detail-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
    color: var(--slate-500);
    gap: 12px;
}

.empty-detail-state i {
    width: 48px;
    height: 48px;
    color: var(--slate-300);
}

.member-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.avatar-large {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.member-profile-title h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}

.member-profile-title span {
    display: block;
    font-size: 12px;
    color: var(--slate-500);
}

.member-profile-title .badge {
    margin-top: 6px;
}

/* Stats */
.member-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.m-stat-box {
    background-color: var(--slate-50);
    border: 1px solid var(--slate-100);
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.m-stat-box .val {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
}

.m-stat-box .val.text-green { color: var(--success); }
.m-stat-box .val.text-orange { color: var(--warning); }

.m-stat-box .lbl {
    font-size: 11px;
    color: var(--slate-500);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Project Lists assigned */
.panel-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-500);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 6px;
}

.member-projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 650px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Detailed Project Card Styles in DIS Team panel */
.team-project-card {
    background-color: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-project-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--slate-300);
    transform: translateY(-1px);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.card-project-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-dark);
    line-height: 1.4;
}

.card-pie-container {
    flex-shrink: 0;
}

/* Progress Pie Chart */
.pie-progress {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

.pie-progress-inner {
    width: 34px;
    height: 34px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    font-weight: 800;
    color: var(--slate-700);
}

/* Details Table */
.card-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    margin-bottom: 4px;
}

.card-details-table td {
    padding: 6px 0;
    border-bottom: 1px dashed var(--slate-100);
    vertical-align: middle;
}

.card-details-table tr:last-child td {
    border-bottom: none;
}

.card-details-table .label {
    color: var(--slate-500);
    font-weight: 600;
    width: 40%;
}

.card-details-table .value {
    color: var(--slate-800);
    font-weight: 700;
    text-align: right;
}

/* Card details sub-sections (Notes, Milestone, Next step) */
.card-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: var(--slate-50);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-100);
}

.card-section-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--slate-500);
    letter-spacing: 0.5px;
}

.card-section-value {
    font-size: 11.5px;
    color: var(--slate-700);
    line-height: 1.4;
    white-space: pre-wrap;
}

.m-proj-name {
    font-weight: 600;
    color: var(--slate-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.m-proj-pct {
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-500);
}

.member-detail-content.hidden {
    display: none;
}

/* ════════════════════════════════════════════════
   TAB: DATA SYNC
   ════════════════════════════════════════════════ */
.sync-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sync-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid rgba(26,43,74,0.06);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sync-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.sync-icon i {
    width: 28px;
    height: 28px;
}

.sync-icon.blue { background-color: rgba(37,99,235,0.1); color: var(--primary-blue); }
.sync-icon.green { background-color: rgba(16,185,129,0.1); color: var(--success); }
.sync-icon.orange { background-color: rgba(249,115,22,0.1); color: var(--warning); }

.sync-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.sync-info p {
    font-size: 13px;
    color: var(--slate-500);
    line-height: 1.6;
    margin-bottom: 20px;
}

.file-path-badge {
    background-color: var(--slate-100);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 11.5px;
    color: var(--slate-700);
    word-break: break-all;
}

/* ════════════════════════════════════════════════
   MODALS & TOASTS
   ════════════════════════════════════════════════ */

/* MODAL */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(15,25,35,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.open .modal-card {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--slate-500);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-close-modal:hover {
    background-color: var(--slate-100);
}

.btn-close-modal i {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 70vh;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: var(--slate-50);
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-700);
    text-transform: uppercase;
}

.form-group label .required {
    color: var(--danger);
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    font-family: var(--font-family);
    font-size: 13.5px;
    outline: none;
    background-color: var(--white);
    color: var(--slate-800);
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.progress-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.progress-input-wrapper input {
    flex: 1;
    padding: 10px 32px 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    font-family: var(--font-family);
    font-size: 13.5px;
    outline: none;
    transition: var(--transition);
}

.progress-input-wrapper input:focus {
    border-color: var(--primary-blue);
}

.progress-input-wrapper .input-suffix {
    position: absolute;
    right: 14px;
    font-weight: 700;
    color: var(--slate-500);
}

/* Date input custom styles */
.form-group input[type="date"] {
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    font-family: var(--font-family);
    font-size: 13.5px;
    outline: none;
}

/* TOAST notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--slate-800);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1100;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success { background-color: var(--slate-800); border-left: 4px solid var(--success); }
.toast.error { background-color: var(--slate-800); border-left: 4px solid var(--danger); }
.toast.info { background-color: var(--slate-800); border-left: 4px solid var(--primary-blue); }

.toast i {
    width: 20px;
    height: 20px;
}
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--primary-blue); }

.toast-message {
    font-size: 13.5px;
    font-weight: 600;
}

/* ANIMATIONS */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════
   TODAY CONTAINER
   ════════════════════════════════════════════════ */
.today-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background-color: var(--white);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}
.today-container i {
    color: var(--primary-blue);
    width: 20px;
    height: 20px;
}
.today-text {
    display: flex;
    flex-direction: column;
}
.today-day {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-dark);
}
.today-week {
    font-size: 11px;
    color: var(--slate-500);
}

/* ════════════════════════════════════════════════
   EISENHOWER MATRIX
   ════════════════════════════════════════════════ */
/* Analysis Section Grid Layout */
.grid-analysis {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-top: 16px;
    align-items: stretch;
}

.overdue-card, .eisenhower-card {
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

/* Overdue Tracker Layout */
.overdue-body-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    flex: 1;
}

.overdue-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-100);
    padding: 12px;
    border-radius: var(--radius-sm);
    height: 100%;
}

.group-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
    overflow-y: auto;
    max-height: 280px;
}

.overdue-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    background-color: var(--white);
    border: 1px solid var(--slate-200);
    cursor: pointer;
    transition: var(--transition);
}

.overdue-item:hover {
    border-color: var(--slate-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.overdue-name {
    font-weight: 600;
    color: var(--slate-800);
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    flex: 1;
    margin-right: 8px;
}

.overdue-meta {
    font-size: 11px;
    color: var(--slate-500);
    font-weight: 700;
    white-space: nowrap;
}

.overdue-meta.red { color: var(--danger); }
.overdue-meta.orange { color: var(--warning); }

/* ════════════════════════════════════════════════
   EISENHOWER MATRIX
   ════════════════════════════════════════════════ */
.eisenhower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    flex: 1;
    min-height: 320px;
}

.eisenhower-quadrant {
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    transition: var(--transition);
}

.eisenhower-quadrant:hover {
    box-shadow: var(--shadow-sm);
}

.q-urgent-important { border-left: 4px solid var(--danger); background-color: rgba(239,68,68,0.01); }
.q-important-noturgent { border-left: 4px solid var(--primary-blue); background-color: rgba(37,99,235,0.01); }
.q-urgent-notimportant { border-left: 4px solid var(--warning); background-color: rgba(249,115,22,0.01); }
.q-noturgent-notimportant { border-left: 4px solid var(--slate-500); background-color: rgba(100,116,139,0.01); }

.quadrant-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.q-urgent-important .quadrant-title { color: var(--danger); }
.q-important-noturgent .quadrant-title { color: var(--primary-blue); }
.q-urgent-notimportant .quadrant-title { color: var(--warning); }
.q-noturgent-notimportant .quadrant-title { color: var(--slate-700); }

.quadrant-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 140px;
}

.matrix-item {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 4px;
    background-color: var(--white);
    border: 1px solid var(--slate-200);
    font-weight: 600;
    color: var(--slate-800);
    cursor: pointer;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    transition: var(--transition);
}

.matrix-item:hover {
    border-color: var(--slate-300);
    transform: translateX(2px);
}

/* ════════════════════════════════════════════════
   MILESTONE TIMELINE
   ════════════════════════════════════════════════ */
.milestone-timeline-card {
    grid-column: span 1;
}
.milestone-timeline {
    position: relative;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.milestone-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-color: var(--slate-200);
}
.timeline-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.timeline-dot {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--slate-300);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--slate-200);
}
.timeline-dot.completed { background-color: var(--success); box-shadow: 0 0 0 2px rgba(16,185,129,0.2); }
.timeline-dot.inprogress { background-color: var(--primary-blue); box-shadow: 0 0 0 2px rgba(37,99,235,0.2); }
.timeline-dot.overdue { background-color: var(--danger); box-shadow: 0 0 0 2px rgba(239,68,68,0.2); }

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.timeline-title {
    font-weight: 600;
    color: var(--slate-800);
    font-size: 13px;
    line-height: 1.4;
}
.timeline-date-label {
    font-size: 11px;
    color: var(--slate-500);
}
.timeline-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ════════════════════════════════════════════════
   PROJECT EXPLORER (TABLE & KANBAN)
   ════════════════════════════════════════════════ */
.project-explorer-panel {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}
.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.explorer-title-area h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}
.explorer-toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Toggle Buttons */
.view-toggle-buttons {
    display: flex;
    background-color: var(--slate-100);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
}
.view-toggle-buttons .toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate-500);
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}
.view-toggle-buttons .toggle-btn:hover {
    color: var(--slate-800);
}
.view-toggle-buttons .toggle-btn.active {
    color: var(--primary-dark);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}
.view-toggle-buttons .toggle-btn i {
    width: 16px;
    height: 16px;
}

/* Status Filter Buttons */
.status-filter-buttons {
    display: flex;
    gap: 6px;
}
.status-filter-buttons .filter-btn {
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate-500);
    background-color: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.status-filter-buttons .filter-btn:hover {
    background-color: var(--slate-50);
    color: var(--slate-800);
}
.status-filter-buttons .filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

.explorer-view-container {
    opacity: 1;
    transition: opacity 0.2s ease;
}
.explorer-view-container.hidden {
    display: none !important;
    opacity: 0;
}

/* ════════════════════════════════════════════════
   KANBAN BOARD VIEW
   ════════════════════════════════════════════════ */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
    min-height: 400px;
}
.kanban-column {
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}
.kanban-column.drag-over {
    background-color: rgba(37,99,235,0.03);
    border-style: dashed;
    border-color: var(--primary-blue);
}
.kanban-column .column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 13.5px;
    border-bottom: 2px solid var(--slate-200);
    padding-bottom: 8px;
}
.kanban-column .column-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.kanban-column .column-header .dot.grey { background-color: var(--slate-500); }
.kanban-column .column-header .dot.blue { background-color: var(--primary-blue); }
.kanban-column .column-header .dot.green { background-color: var(--success); }

.kanban-column .column-header .count-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-500);
    background-color: var(--slate-200);
    padding: 2px 6px;
    border-radius: 10px;
}
.kanban-column .column-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 320px;
    overflow-y: auto;
}

/* Kanban Cards */
.kanban-card {
    background-color: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    padding: 14px;
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kanban-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--slate-300);
}
.kanban-card.dragging {
    opacity: 0.5;
    transform: scale(0.98) rotate(1deg);
    cursor: grabbing;
}
.kanban-card-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--slate-800);
    line-height: 1.4;
}
.kanban-card-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.kanban-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    color: var(--slate-500);
}
.kanban-progress-bar {
    height: 4px;
    background-color: var(--slate-100);
    border-radius: 2px;
    overflow: hidden;
}
.kanban-progress-fill {
    height: 100%;
    border-radius: 2px;
}
.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--slate-100);
    padding-top: 8px;
    margin-top: 4px;
}
.kanban-card-badges {
    display: flex;
    gap: 4px;
}
.kanban-card-badges .badge {
    padding: 2px 6px;
    font-size: 9.5px;
}

.reveal {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* RESPONSIVENESS */
@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .team-layout {
        grid-template-columns: 1fr;
    }
    .grid-analysis {
        grid-template-columns: 1fr;
    }
    .sync-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Landscape & Portrait Breakpoint */
@media (max-width: 992px) {
    .sidebar {
        width: 72px;
        padding: 16px 8px;
    }
    .sidebar-header .logo-text,
    .sidebar .nav-item span,
    .sidebar-footer .user-info {
        display: none;
    }
    .sidebar .logo-icon {
        margin: 0 auto;
    }
    .sidebar .nav-item {
        justify-content: center;
        padding: 12px;
    }
    .main-content {
        margin-left: 72px;
        padding: 24px;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-double-row {
        grid-template-columns: 1fr;
    }
    .org-staff-grid {
        grid-template-columns: 1fr;
    }
    .kanban-board {
        grid-template-columns: 1fr;
    }
    .sync-grid {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    .filter-selects {
        flex-wrap: wrap;
        width: 100%;
    }
    .filter-selects select {
        flex: 1;
        min-width: 120px;
    }
}

/* Small Tablets / Large Phones Breakpoint */
@media (max-width: 768px) {
    .overdue-body-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .org-node {
        padding: 8px 12px !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
}

/* Smartphones Breakpoint */
@media (max-width: 576px) {
    .sidebar {
        width: 100vw;
        height: 60px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        flex-direction: row;
        padding: 0 10px;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-right: none;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        border-radius: 0;
        z-index: 1000;
    }
    .sidebar-header,
    .sidebar-footer {
        display: none !important;
    }
    .sidebar-nav {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        height: 100%;
        gap: 0;
    }
    .nav-item {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2px;
        padding: 6px;
        font-size: 9.5px;
        color: var(--slate-300);
        flex: 1;
        text-align: center;
        box-shadow: none !important;
        background-color: transparent !important;
        border-radius: var(--radius-sm);
    }
    .sidebar .nav-item span {
        display: block !important;
    }
    .nav-item.active {
        color: var(--white);
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    .nav-item i {
        width: 18px;
        height: 18px;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 16px 16px 80px 16px !important;
    }
    .main-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 24px;
    }
    .header-title h1 {
        font-size: 22px;
    }
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .today-container,
    .sync-indicator,
    .header-actions button {
        width: 100% !important;
        justify-content: center;
    }
    .kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .kpi-card {
        padding: 16px;
    }
    .grid-analysis {
        gap: 16px;
    }
    .eisenhower-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto;
    }
    .org-staff-grid {
        grid-template-columns: 1fr !important;
    }
    .team-filter-bar {
        flex-direction: column;
        align-items: stretch !important;
    }
    .team-filter-bar select {
        width: 100% !important;
    }
    .explorer-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }
    .explorer-toolbar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }
    .view-toggle-buttons,
    .status-filter-buttons {
        width: 100%;
        display: flex;
    }
    .view-toggle-buttons button,
    .status-filter-buttons button {
        flex: 1;
        justify-content: center;
        text-align: center;
        padding: 8px 4px;
        font-size: 11px;
    }
    .modal-card {
        width: calc(100% - 24px) !important;
        margin: 12px !important;
    }
    .modal-body {
        padding: 16px !important;
    }
    .modal-footer {
        padding: 12px 16px !important;
    }
}

/* INLINE TABLE EDITING STYLES */
.inline-select {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 24px 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    outline: none;
    cursor: pointer;
    background-color: var(--white);
    color: var(--slate-700);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    transition: var(--transition);
}

.inline-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

/* Status specific stylings */
.inline-select[data-value="Not Started"] { background-color: var(--slate-100); color: var(--slate-700); }
.inline-select[data-value="In Progress"] { background-color: rgba(37,99,235,0.1); color: var(--primary-blue); }
.inline-select[data-value="Completed"] { background-color: rgba(16,185,129,0.1); color: var(--success); }

/* Health specific stylings */
.inline-select[data-value="On-track"] { background-color: rgba(16,185,129,0.1); color: var(--success); }
.inline-select[data-value="At risk"] { background-color: rgba(239,68,68,0.1); color: var(--danger); }

/* Priority specific stylings */
.inline-select[data-value="Important"] { background-color: rgba(245,158,11,0.1); color: var(--warning); }
.inline-select[data-value="Medium"] { background-color: var(--slate-100); color: var(--slate-700); }
.inline-select[data-value="Low"] { background-color: var(--slate-100); color: var(--slate-700); }

/* Assignee specific styling */
.inline-select.assignee-select {
    padding: 6px 20px 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    max-width: 140px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.project-title-cell.editable-cell-text {
    cursor: text;
    border-bottom: 1px dashed var(--slate-200);
    padding-bottom: 2px;
    display: inline-block;
}

.project-title-cell.editable-cell-text:focus {
    outline: none;
    border-bottom-color: var(--primary-blue);
    background-color: rgba(37,99,235,0.02);
}

/* COLLAPSIBLE SIDEBAR MENU STYLES */
.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--slate-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-right: 12px;
}
.sidebar-toggle-btn:hover {
    background-color: var(--slate-200);
    color: var(--primary-dark);
}
.sidebar-toggle-btn i {
    width: 22px;
    height: 22px;
}

/* Sidebar transition settings */
.sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

/* Collapsed state rules */
body.sidebar-collapsed .sidebar {
    transform: translateX(-260px);
}
body.sidebar-collapsed .main-content {
    margin-left: 0 !important;
}

@media (max-width: 992px) {
    body.sidebar-collapsed .sidebar {
        transform: translateX(-72px);
    }
}

/* Hide toggle button on mobile since it uses bottom navigation */
@media (max-width: 576px) {
    .sidebar-toggle-btn {
        display: none !important;
    }
}
