/* CEO Command Center — Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #0F1A2E;
  --navy-light: #1A2A44;
  --navy-mid: #243351;
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --cream: #FAF8F5;
  --green: #34D399;
  --red: #EF4444;
  --orange: #F59E0B;
  --blue: #3B82F6;
  --purple: #A855F7;
  --gray: #94A3B8;
  --card-bg: #1E2D45;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 60px;
  /* Row tints */
  --row-overdue-bg: rgba(239,68,68,0.08);
  --row-today-bg: rgba(245,158,11,0.08);
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--navy); color: var(--cream); }
a { color: inherit; text-decoration: none; }

/* ---- Sidebar ---- */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-width);
  background: var(--navy-light); border-right: 1px solid rgba(196,162,101,0.15);
  padding: 24px 0; overflow-y: auto; z-index: 100;
  transform: translateX(0); transition: width 0.25s ease, transform 0.3s ease;
}
.sidebar.collapsed { width: var(--sidebar-collapsed-width); }
.sidebar.collapsed .sidebar-logo span,
.sidebar.collapsed .nav-section,
.sidebar.collapsed .nav-item span:not(.icon),
.sidebar.collapsed .nav-badge { display: none; }
.sidebar.collapsed .sidebar-logo { padding: 0 0 16px; text-align: center; }
.sidebar.collapsed .sidebar-logo h1 { font-size: 14px; }
.sidebar.collapsed .nav-item { padding: 12px 0; justify-content: center; gap: 0; border-left: none; }
.sidebar.collapsed .nav-item .icon { width: auto; font-size: 20px; }
.sidebar-toggle {
  position: absolute; top: 12px; right: -14px; width: 28px; height: 28px;
  background: var(--navy-light); border: 1px solid rgba(196,162,101,0.2);
  border-radius: 50%; color: var(--gold); cursor: pointer; z-index: 101;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: transform 0.25s ease, opacity 0.15s;
  opacity: 0;
}
.sidebar:hover .sidebar-toggle, .sidebar-toggle:focus { opacity: 1; }
.sidebar.collapsed .sidebar-toggle { opacity: 1; transform: rotate(180deg); right: -14px; }
.sidebar-logo {
  padding: 0 24px 24px; border-bottom: 1px solid rgba(196,162,101,0.1);
  margin-bottom: 16px;
}
.sidebar-logo h1 { font-size: 18px; color: var(--gold); font-weight: 700; letter-spacing: 0.5px; }
.sidebar-logo span { font-size: 11px; color: var(--gray); display: block; margin-top: 2px; }
.nav-section { padding: 8px 16px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray); margin-top: 8px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 24px;
  color: rgba(250,248,245,0.7); cursor: pointer; transition: all 0.15s;
  font-size: 14px; text-decoration: none; border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(196,162,101,0.08); color: var(--cream); }
.nav-item.active { background: rgba(196,162,101,0.12); color: var(--gold); border-left-color: var(--gold); }
.nav-item .icon { width: 20px; text-align: center; font-size: 16px; }
.nav-badge {
  margin-left: auto; background: var(--red); color: white; font-size: 11px;
  padding: 1px 7px; border-radius: 10px; font-weight: 600;
}

/* Mobile hamburger */
.mobile-header {
  display: none; position: fixed; top: 0; left: 0; right: 0; height: 56px;
  background: var(--navy-light); border-bottom: 1px solid rgba(196,162,101,0.15);
  z-index: 90; padding: 0 16px; align-items: center; justify-content: space-between;
}
.mobile-header h1 { font-size: 16px; color: var(--gold); font-weight: 700; }
.hamburger {
  background: none; border: none; color: var(--gold); font-size: 24px; cursor: pointer;
  padding: 8px;
}
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 95;
}

/* ---- Main Content ---- */
.main { margin-left: var(--sidebar-width); padding: 24px 32px 100px; min-height: 100vh; transition: margin-left 0.25s ease; }
body.sidebar-collapsed .main { margin-left: var(--sidebar-collapsed-width); }

/* ---- Top Bar ---- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid rgba(196,162,101,0.1);
}
.topbar h2 { font-size: 24px; font-weight: 600; }
.topbar-right { display: flex; gap: 12px; align-items: center; }
.topbar-date { color: var(--gray); font-size: 13px; margin-top: 4px; }
.topbar-period {
  background: rgba(196,162,101,0.15); color: var(--gold); padding: 4px 12px;
  border-radius: 6px; font-size: 12px; font-weight: 600;
}

/* ---- Company Tabs ---- */
.company-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.company-tab {
  padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: var(--gray);
}
.company-tab:hover { border-color: rgba(196,162,101,0.3); color: var(--cream); }
.company-tab.active { background: rgba(196,162,101,0.15); border-color: var(--gold); color: var(--gold); }

/* ---- Dashboard Cards ---- */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.dash-card {
  background: var(--card-bg); border-radius: 12px; padding: 20px;
  border: 1px solid rgba(196,162,101,0.08);
}
.dash-card h3 { font-size: 13px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.stat-big { font-size: 32px; font-weight: 700; color: var(--cream); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12px; color: var(--gray); margin-top: 2px; }
.stat-change { font-size: 12px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-up { color: var(--green); }
.stat-down { color: var(--red); }

/* ---- Section Header ---- */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.section-header h2 { font-size: 18px; font-weight: 600; }
.section-header a { color: var(--gold); font-size: 13px; text-decoration: none; }

/* ---- Two Column Layout ---- */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 28px; }

/* ---- Meeting Items ---- */
.meeting-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.meeting-item:last-child { border-bottom: none; }
.meeting-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.meeting-info h4 { font-size: 14px; font-weight: 600; }
.meeting-info p { font-size: 12px; color: var(--gray); margin-top: 2px; }
.meeting-time { margin-left: auto; font-size: 12px; color: var(--gold); font-weight: 500; font-variant-numeric: tabular-nums; }
.meeting-badge { font-size: 10px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; font-weight: 600; }
.badge-prep { background: rgba(59,130,246,0.2); color: var(--blue); }
.badge-live { background: rgba(52,211,153,0.2); color: var(--green); animation: pulse 2s infinite; }
.badge-done { background: rgba(148,163,184,0.2); color: var(--gray); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ---- Action Items ---- */
.action-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px;
  transition: background 0.15s;
}
.action-item:last-child { border-bottom: none; }
.action-check {
  width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--gray);
  flex-shrink: 0; margin-top: 1px; cursor: pointer; transition: all 0.15s;
}
.action-check:hover { border-color: var(--green); }
.action-check.overdue { border-color: var(--red); }
.action-check.completed { border-color: var(--green); background: var(--green); }
.action-meta { font-size: 11px; color: var(--gray); margin-top: 3px; }
.action-meta .overdue { color: var(--red); font-weight: 600; }
.action-meta .company-badge {
  background: rgba(196,162,101,0.15); color: var(--gold); padding: 1px 6px;
  border-radius: 3px; font-size: 10px;
}
.action-text.completed-text { text-decoration: line-through; opacity: 0.5; }

/* ---- Initiative Board ---- */
.init-board { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.init-col h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid;
}
.init-col.not-started h3 { color: var(--gray); border-color: var(--gray); }
.init-col.in-progress h3 { color: var(--blue); border-color: var(--blue); }
.init-col.complete h3 { color: var(--green); border-color: var(--green); }
.init-card {
  background: var(--card-bg); border-radius: 8px; padding: 14px; margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: all 0.2s;
}
.init-card:hover { border-color: rgba(196,162,101,0.3); transform: translateY(-1px); }
.init-card h4 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.init-card .init-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.init-card .init-meta span { font-size: 10px; padding: 2px 6px; border-radius: 3px; }
.init-owner { background: rgba(59,130,246,0.15); color: var(--blue); }
.init-company { background: rgba(196,162,101,0.15); color: var(--gold); }
.init-dept { background: rgba(168,85,247,0.15); color: var(--purple); }
.init-date { color: var(--gray); font-size: 11px; }
.init-progress {
  height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px;
  margin-top: 8px; overflow: hidden;
}
.init-progress-bar { height: 100%; border-radius: 2px; transition: width 0.3s; }

/* ---- Intelligence Feed ---- */
.feed-item { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.feed-item:last-child { border-bottom: none; }
.feed-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.feed-type {
  font-size: 10px; padding: 2px 8px; border-radius: 4px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.feed-zoom { background: rgba(59,130,246,0.2); color: var(--blue); }
.feed-email { background: rgba(196,162,101,0.2); color: var(--gold); }
.feed-note { background: rgba(52,211,153,0.2); color: var(--green); }
.feed-alert { background: rgba(239,68,68,0.2); color: var(--red); }
.feed-manual { background: rgba(148,163,184,0.2); color: var(--gray); }
.feed-time { font-size: 11px; color: var(--gray); }
.feed-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.feed-body { font-size: 13px; color: rgba(250,248,245,0.7); line-height: 1.5; }
.feed-actions { margin-top: 8px; }
.feed-actions button {
  font-size: 11px; color: var(--gold); cursor: pointer; margin-right: 16px;
  opacity: 0.8; background: none; border: none; font-family: inherit;
  transition: opacity 0.15s;
}
.feed-actions button:hover { opacity: 1; }
.feed-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.feed-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 3px;
  background: rgba(255,255,255,0.05); color: var(--gray);
}

/* ---- People / Person Cards ---- */
.person-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer;
  transition: all 0.15s;
}
.person-row:hover { background: rgba(196,162,101,0.05); margin: 0 -12px; padding: 10px 12px; border-radius: 6px; }
.person-row:last-child { border-bottom: none; }
.person-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.person-avatar-lg {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.person-info h4 { font-size: 13px; }
.person-info p { font-size: 11px; color: var(--gray); }
.person-stat { margin-left: auto; text-align: right; }
.person-stat .num { font-size: 14px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.person-stat .label { font-size: 10px; color: var(--gray); }

/* Person detail */
.person-detail-header {
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
  padding-bottom: 20px; border-bottom: 1px solid rgba(196,162,101,0.1);
}
.person-detail-info h2 { font-size: 22px; font-weight: 600; }
.person-detail-info p { font-size: 13px; color: var(--gray); margin-top: 2px; }
.person-stats-row { display: flex; gap: 24px; margin-top: 12px; }
.person-stats-row .ps { text-align: center; }
.person-stats-row .ps-num { font-size: 20px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.person-stats-row .ps-label { font-size: 10px; color: var(--gray); margin-top: 2px; }

/* ---- Quick Capture Bar ---- */
.capture-bar {
  position: fixed; bottom: 0; left: var(--sidebar-width); right: 0; transition: left 0.25s ease;
}
body.sidebar-collapsed .capture-bar { left: var(--sidebar-collapsed-width); }
  background: var(--navy-light); border-top: 1px solid rgba(196,162,101,0.15);
  padding: 16px 32px; display: flex; gap: 12px; align-items: center; z-index: 90;
  transition: border-top-color 0.2s, box-shadow 0.2s;
}
.capture-bar:focus-within {
  border-top-color: rgba(196,162,101,0.5);
  box-shadow: 0 -4px 24px rgba(196,162,101,0.08);
}
.capture-input {
  flex: 1; background: var(--navy-mid); border: 1px solid rgba(196,162,101,0.2);
  border-radius: 8px; padding: 12px 16px; color: var(--cream); font-size: 14px;
  outline: none; font-family: inherit; transition: border-color 0.2s;
}
.capture-input::placeholder { color: var(--gray); }
.capture-input:focus { border-color: var(--gold); }
.capture-btn {
  padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; transition: all 0.2s; font-family: inherit;
}
.btn-voice { background: rgba(196,162,101,0.2); color: var(--gold); }
.btn-voice:hover { background: rgba(196,162,101,0.3); }
.btn-send { background: var(--gold); color: var(--navy); }
.btn-send:hover { background: var(--gold-light); }
.capture-type-select {
  background: var(--navy-mid); border: 1px solid rgba(196,162,101,0.2);
  border-radius: 8px; padding: 10px 12px; color: var(--cream); font-size: 13px;
  outline: none; font-family: inherit; cursor: pointer; transition: border-color 0.2s;
}

/* ---- Buttons ---- */
.btn {
  padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; transition: all 0.2s; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary { background: rgba(196,162,101,0.15); color: var(--gold); }
.btn-secondary:hover { background: rgba(196,162,101,0.25); }
.btn-danger { background: rgba(239,68,68,0.15); color: var(--red); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-sm { padding: 5px 10px; font-size: 11px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; color: var(--gray); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input {
  width: 100%; background: var(--navy-mid); border: 1px solid rgba(196,162,101,0.2);
  border-radius: 8px; padding: 10px 14px; color: var(--cream); font-size: 14px;
  outline: none; font-family: inherit; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--gold); }
.form-select {
  width: 100%; background: var(--navy-mid); border: 1px solid rgba(196,162,101,0.2);
  border-radius: 8px; padding: 10px 14px; color: var(--cream); font-size: 14px;
  outline: none; font-family: inherit; cursor: pointer; transition: border-color 0.2s;
}
.form-textarea {
  width: 100%; background: var(--navy-mid); border: 1px solid rgba(196,162,101,0.2);
  border-radius: 8px; padding: 10px 14px; color: var(--cream); font-size: 14px;
  outline: none; font-family: inherit; min-height: 80px; resize: vertical;
  transition: border-color 0.2s;
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--navy-light); border-radius: 16px; padding: 28px;
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  border: 1px solid rgba(196,162,101,0.15);
}
.modal h2 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ---- Toast ---- */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--card-bg); border: 1px solid rgba(196,162,101,0.2); border-radius: 8px;
  padding: 12px 20px; font-size: 13px; animation: slideIn 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 40px 20px; color: var(--gray); }
.empty-state .empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ---- Loading ---- */
.loading { display: flex; align-items: center; justify-content: center; padding: 40px; }
.spinner {
  width: 32px; height: 32px; border: 3px solid rgba(196,162,101,0.2);
  border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--card-bg) 25%, rgba(196,162,101,0.08) 50%, var(--card-bg) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Page transitions */
.main { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Smooth card transitions */
.dash-card, .kpi-card, .init-card, .brand-summary-card {
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.dash-card:hover { border-color: rgba(196,162,101,0.15); }
.kpi-card:hover { border-color: rgba(196,162,101,0.2); }

/* ---- Numbers / KPI ---- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi-card {
  background: var(--card-bg); border-radius: 10px; padding: 16px;
  border: 1px solid rgba(196,162,101,0.08);
}
.kpi-card .kpi-label { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-card .kpi-value { font-size: 28px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-card .kpi-sub { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* ---- Filters ---- */
.filters-row { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.filter-select {
  background: var(--navy-mid); border: 1px solid rgba(196,162,101,0.2);
  border-radius: 8px; padding: 8px 14px; color: var(--cream); font-size: 13px;
  outline: none; font-family: inherit; cursor: pointer; transition: border-color 0.2s;
}
.search-input {
  background: var(--navy-mid); border: 1px solid rgba(196,162,101,0.2);
  border-radius: 8px; padding: 8px 14px; color: var(--cream); font-size: 13px;
  outline: none; font-family: inherit; min-width: 200px; transition: border-color 0.2s;
}
.search-input::placeholder { color: var(--gray); }
.search-input:focus { border-color: var(--gold); }

/* ---- Tabs ---- */
.tab-row { display: flex; gap: 0; border-bottom: 1px solid rgba(196,162,101,0.1); margin-bottom: 20px; }
.tab-item {
  padding: 10px 20px; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--gray); border-bottom: 2px solid transparent; transition: all 0.2s;
}
.tab-item:hover { color: var(--cream); }
.tab-item.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(196,162,101,0.2); border-radius: 3px; }

/* ---- Login Page ---- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--navy); padding: 20px;
}
.login-card {
  background: var(--navy-light); border-radius: 16px; padding: 48px;
  max-width: 420px; width: 100%; border: 1px solid rgba(196,162,101,0.15);
  text-align: center;
}
.login-card h1 { font-size: 28px; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.login-card .login-sub { font-size: 13px; color: var(--gray); margin-bottom: 32px; }
.login-card .form-group { text-align: left; }
.login-card .btn-primary { width: 100%; padding: 14px; font-size: 15px; margin-top: 8px; }
.login-error { color: var(--red); font-size: 13px; margin-top: 12px; display: none; }

/* ==========================================================
   ENHANCEMENTS — appended below existing styles
   ========================================================== */

/* 1. Card hover effects — subtle lift with shadow */
.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(196,162,101,0.18);
  border-color: rgba(196,162,101,0.2);
}
.init-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 0 1px rgba(196,162,101,0.25);
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 2. Table styles for actions page */
.actions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.actions-table thead tr {
  border-bottom: 1px solid rgba(196,162,101,0.15);
}
.actions-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray);
  font-weight: 600;
  white-space: nowrap;
}
.actions-table td {
  padding: 11px 14px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.actions-table tbody tr:last-child td { border-bottom: none; }
.actions-table tbody tr:hover td { background: rgba(196,162,101,0.04); }

.row-overdue td { background: var(--row-overdue-bg); }
.row-overdue:hover td { background: rgba(239,68,68,0.13) !important; }

.row-today td { background: var(--row-today-bg); }
.row-today:hover td { background: rgba(245,158,11,0.13) !important; }

.row-default td { background: transparent; }

/* 3. Expandable feed cards */
.feed-card {
  background: var(--card-bg);
  border: 1px solid rgba(196,162,101,0.08);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.feed-card:hover {
  border-color: rgba(196,162,101,0.22);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.feed-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  user-select: none;
}
.feed-card-header .feed-card-chevron {
  margin-left: auto;
  color: var(--gray);
  font-size: 12px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.feed-card.expanded .feed-card-chevron { transform: rotate(180deg); }
.feed-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
  opacity: 0;
  padding: 0 16px;
}
.feed-card.expanded .feed-card-body {
  max-height: 600px;
  opacity: 1;
  padding: 0 16px 14px;
}

/* 4. Better skeleton states */
.skeleton-text {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--card-bg) 25%, rgba(196,162,101,0.08) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  display: block;
  margin-bottom: 8px;
}
.skeleton-text.w-full  { width: 100%; }
.skeleton-text.w-3-4   { width: 75%; }
.skeleton-text.w-2-3   { width: 66%; }
.skeleton-text.w-1-2   { width: 50%; }
.skeleton-text.w-1-3   { width: 33%; }
.skeleton-text.w-1-4   { width: 25%; }
.skeleton-text.h-sm    { height: 10px; }
.skeleton-text.h-lg    { height: 18px; }
.skeleton-text.h-xl    { height: 28px; }

.skeleton-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 12px;
}

/* 5. Tabular numbers globally on stat/number elements */
.stat-big,
.stat-change,
.kpi-card .kpi-value,
.meeting-time,
.person-stat .num,
.person-stats-row .ps-num,
.follow-meter-label {
  font-variant-numeric: tabular-nums;
}

/* 6. Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.status-overdue   { background: rgba(239,68,68,0.15);  color: var(--red);    border: 1px solid rgba(239,68,68,0.25); }
.status-due-today { background: rgba(245,158,11,0.15); color: var(--orange); border: 1px solid rgba(245,158,11,0.25); }
.status-open      { background: rgba(59,130,246,0.15); color: var(--blue);   border: 1px solid rgba(59,130,246,0.25); }
.status-completed { background: rgba(52,211,153,0.15); color: var(--green);  border: 1px solid rgba(52,211,153,0.25); }

/* 7. Priority indicators */
.priority-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.priority-critical { background: var(--red);    box-shadow: 0 0 0 3px rgba(239,68,68,0.2); }
.priority-high     { background: var(--orange); box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.priority-medium   { background: var(--blue);   box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }
.priority-low      { background: var(--gray);   box-shadow: 0 0 0 3px rgba(148,163,184,0.2); }

/* 8. Person card grid */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.person-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(196,162,101,0.08);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.person-card:hover {
  border-color: rgba(196,162,101,0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.person-card .person-info h4 { font-size: 14px; font-weight: 600; }
.person-card .person-info p  { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* 9. Detail panel — slide-in for initiatives / feed */
.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: var(--navy-light);
  border-left: 1px solid rgba(196,162,101,0.15);
  z-index: 150;
  overflow-y: auto;
  padding: 28px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
  box-shadow: none;
}
.detail-panel.open {
  transform: translateX(0);
  box-shadow: -12px 0 48px rgba(0,0,0,0.45);
}
.detail-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(196,162,101,0.1);
}
.detail-panel-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}
.detail-panel-close:hover { color: var(--cream); }

/* Initiative detail — linked items section */
.linked-items-section { margin-top: 24px; }
.linked-items-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.linked-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.linked-item:hover { background: rgba(196,162,101,0.08); }
.linked-item-type { font-size: 10px; color: var(--gray); flex-shrink: 0; }

/* 10. Pin badge */
.pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(196,162,101,0.12);
  border: 1px solid rgba(196,162,101,0.25);
  border-radius: 4px;
  padding: 2px 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

/* 11. Follow-through meter */
.follow-meter {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.follow-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1), background 0.3s;
  background: var(--green);
}
.follow-meter-fill.meter-low    { background: var(--red); }
.follow-meter-fill.meter-mid    { background: var(--orange); }
.follow-meter-fill.meter-high   { background: var(--green); }
.follow-meter-label {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}
.follow-meter-label strong { color: var(--cream); }

/* 12. Capture bar improvements — handled by :focus-within above */
/* Mobile override added in responsive section */

/* 13. Action row expanded state */
.action-row-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease;
  opacity: 0;
  background: rgba(196,162,101,0.04);
  border-left: 2px solid rgba(196,162,101,0.2);
  border-radius: 0 0 6px 6px;
  padding: 0 12px;
  font-size: 12px;
  color: rgba(250,248,245,0.65);
  line-height: 1.6;
}
.action-row-detail.open {
  max-height: 300px;
  opacity: 1;
  padding: 10px 12px;
}

/* 14. Type icons */
.type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 14px;
  flex-shrink: 0;
}
.type-icon-zoom   { background: rgba(59,130,246,0.15);  color: var(--blue); }
.type-icon-email  { background: rgba(196,162,101,0.15); color: var(--gold); }
.type-icon-voice  { background: rgba(52,211,153,0.15);  color: var(--green); }
.type-icon-alert  { background: rgba(239,68,68,0.15);   color: var(--red); }
.type-icon-manual { background: rgba(148,163,184,0.15); color: var(--gray); }

/* 15. Agenda item styles */
.agenda-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  transition: background 0.15s;
}
.agenda-item:last-child { border-bottom: none; }
.agenda-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid var(--gray);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.agenda-checkbox:checked {
  border-color: var(--green);
  background: var(--green);
}
.agenda-item-text { flex: 1; line-height: 1.45; }
.agenda-item-status {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
}
.agenda-discussing { background: rgba(59,130,246,0.2); color: var(--blue); }
.agenda-done       { background: rgba(52,211,153,0.2); color: var(--green); }
.agenda-skipped    { background: rgba(148,163,184,0.15); color: var(--gray); }
.agenda-pending    { background: rgba(196,162,101,0.12); color: var(--gold); }

/* 16. Initiative detail linked items — defined above in section 9 */

/* 17. Smooth transitions on interactive elements */
button, input, select, textarea, a,
.nav-item, .company-tab, .tab-item,
.feed-card, .person-card, .person-row,
.action-item, .meeting-item, .linked-item {
  transition-duration: 0.2s;
  transition-timing-function: ease;
}
/* Preserve specific transition properties defined elsewhere */
.sidebar { transition: transform 0.3s ease; }
.detail-panel { transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s; }
.follow-meter-fill { transition: width 0.5s cubic-bezier(0.4,0,0.2,1), background 0.3s; }
.feed-card-body { transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease; }
.action-row-detail { transition: max-height 0.28s ease, opacity 0.22s ease; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .init-board { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .detail-panel { width: 420px; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .mobile-header { display: flex; }
  .main { margin-left: 0; padding: 72px 16px 100px; }

  /* 18. Responsive: person-grid single column */
  .person-grid { grid-template-columns: 1fr; }

  /* 18. Responsive: init-board single column with horizontal scroll option */
  .init-board {
    grid-template-columns: 1fr;
    /* Horizontal scroll variant: uncomment if preferred */
    /* display: flex; overflow-x: auto; gap: 16px; scroll-snap-type: x mandatory; */
  }
  .init-col { /* scroll-snap-align: start; min-width: 260px; */ }

  .capture-bar { left: 0; padding: 12px 16px; }
  /* Mobile capture bar: tighter layout, compact type select */
  .capture-type-select { padding: 8px 8px; font-size: 12px; }

  .dash-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .topbar-right { width: 100%; justify-content: flex-start; }
  .person-detail-header { flex-direction: column; text-align: center; }
  .person-stats-row { justify-content: center; }
  .filters-row { flex-direction: column; }
  .search-input { min-width: auto; width: 100%; }

  /* Detail panel full width on mobile */
  .detail-panel { width: 100vw; }

  /* Actions table: allow horizontal scroll */
  .actions-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .actions-table { min-width: 540px; }

  /* Feed cards */
  .feed-card-body.open { max-height: 800px; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .capture-btn.btn-voice span.btn-label { display: none; }
  .person-grid { grid-template-columns: 1fr; }
  .person-card { flex-direction: column; text-align: center; }
  .person-card .person-stat { margin-left: 0; text-align: center; }
}
