/* ===== VARIABLES ===== */
:root {
  --red: #ea5540;
  --red-dark: #c9412d;
  --red-light: #fdf1ef;
  --teal: #425c61;
  --teal-dark: #2e4146;
  --teal-light: #eef3f4;
  --teal-mid: #6a8f95;
  --cream: #faf8f5;
  --warm-white: #f5f2ee;
  --card-bg: #fffefe;
  --border: #e4ddd8;
  --border-soft: #f0ebe6;
  --text-dark: #1e2d30;
  --text-mid: #4a6166;
  --text-soft: #8ca3a8;
  --shadow-sm: 0 1px 4px rgba(66,92,97,0.08);
  --shadow-md: 0 4px 16px rgba(66,92,97,0.12);
  --shadow-lg: 0 8px 32px rgba(66,92,97,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --sidebar-w: 240px;
  --header-h: 64px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
  font-size: 14px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--teal-dark);
  color: var(--warm-white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}
.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
  flex-shrink: 0;
}
.sidebar-logo .brand-name { font-family: var(--font-head); font-size: 16px; font-weight: 700; line-height: 1.2; }
.sidebar-logo .brand-sub { font-size: 10px; color: var(--teal-mid); letter-spacing: 0.5px; text-transform: uppercase; }

.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.nav-group-label {
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--teal-mid); padding: 10px 20px 6px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,0.65); cursor: pointer;
  border-radius: 0; transition: all 0.2s;
  position: relative;
}
.nav-item i { width: 18px; font-size: 14px; flex-shrink: 0; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-item.active {
  color: #fff; background: rgba(234,85,64,0.18);
}
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; background: var(--red); border-radius: 0 2px 2px 0;
}
.nav-badge {
  margin-left: auto; background: var(--red);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 20px; min-width: 18px; text-align: center;
}

.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.sidebar-user .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.sidebar-user .user-info .name { font-size: 13px; font-weight: 600; color: #fff; }
.sidebar-user .user-info .role { font-size: 11px; color: var(--teal-mid); }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column; min-height: 100vh;
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--header-h); background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 24px;
  gap: 16px; position: sticky; top: 0; z-index: 50;
}
.topbar-left { flex: 1; }
.page-title { font-size: 18px; font-weight: 700; color: var(--text-dark); font-family: var(--font-head); }
.page-subtitle { font-size: 12px; color: var(--text-soft); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--warm-white); color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; transition: all 0.2s;
  position: relative; border: 1px solid var(--border);
}
.topbar-btn:hover { background: var(--teal-light); color: var(--teal); }
.notif-dot {
  width: 8px; height: 8px; background: var(--red);
  border-radius: 50%; position: absolute; top: 6px; right: 6px;
  border: 1.5px solid var(--card-bg);
}
.hamburger { display: none; }

/* ===== PAGE BODY ===== */
.page-body { padding: 24px; flex: 1; }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg); border-radius: var(--radius);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 18px 20px 0; display: flex; align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.card-body { padding: 16px 20px 20px; }

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--card-bg); border-radius: var(--radius);
  border: 1px solid var(--border-soft); padding: 20px;
  display: flex; align-items: flex-start; gap: 14px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.stat-icon.red { background: var(--red-light); color: var(--red); }
.stat-icon.teal { background: var(--teal-light); color: var(--teal); }
.stat-icon.orange { background: #fef3ea; color: #e8840a; }
.stat-icon.green { background: #edf7f0; color: #2a9952; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.stat-change { font-size: 11px; margin-top: 6px; font-weight: 600; }
.stat-change.up { color: #2a9952; }
.stat-change.warn { color: #e8840a; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: none; font-family: inherit;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal-light); }
.btn-ghost { background: var(--warm-white); color: var(--text-mid); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--teal-light); color: var(--teal); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }

/* ===== BADGES / TAGS ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.badge-red { background: var(--red-light); color: var(--red); }
.badge-teal { background: var(--teal-light); color: var(--teal); }
.badge-green { background: #edf7f0; color: #2a9952; }
.badge-orange { background: #fef3ea; color: #e8840a; }
.badge-gray { background: var(--warm-white); color: var(--text-soft); border: 1px solid var(--border); }
.badge-purple { background: #f3eeff; color: #7c3aed; }

/* ===== PROGRESS BAR ===== */
.progress-wrap { }
.progress-bar-outer {
  height: 7px; background: var(--warm-white); border-radius: 10px; overflow: hidden;
}
.progress-bar-inner {
  height: 100%; border-radius: 10px; transition: width 0.6s ease;
}
.progress-pct { font-size: 12px; font-weight: 700; color: var(--text-dark); }

/* ===== PROJECT CARD ===== */
.project-cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.project-card {
  background: var(--card-bg); border-radius: var(--radius);
  border: 1px solid var(--border-soft); padding: 20px;
  cursor: pointer; transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.project-name { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.project-client { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.project-meta { display: flex; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.project-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-mid); }
.project-meta-item i { font-size: 11px; color: var(--text-soft); }
.dept-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.dept-chip {
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px;
  background: var(--teal-light); color: var(--teal);
}

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-soft); font-weight: 700;
  background: var(--warm-white); border-bottom: 1px solid var(--border);
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); font-size: 13px; color: var(--text-mid); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--warm-white); }

/* ===== KANBAN ===== */
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col {
  min-width: 240px; width: 240px; flex-shrink: 0;
  background: var(--warm-white); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.kanban-col-header {
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.kanban-col-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.kanban-col-count {
  font-size: 11px; font-weight: 700; color: var(--text-soft);
  background: var(--card-bg); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 20px;
}
.kanban-cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kanban-card {
  background: var(--card-bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft); padding: 12px;
  box-shadow: var(--shadow-sm); cursor: grab; transition: box-shadow 0.2s;
}
.kanban-card:hover { box-shadow: var(--shadow-md); }
.kanban-card-title { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.kanban-card-dept { font-size: 11px; color: var(--text-soft); display: flex; align-items: center; gap: 4px; }
.kanban-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.kanban-card-assignee { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-soft); }
.mini-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-size: 8px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== TIMELINE ===== */
.timeline-wrap { overflow-x: auto; }
.gantt-row { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--border-soft); }
.gantt-row:last-child { border-bottom: none; }
.gantt-label { min-width: 160px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--text-dark); }
.gantt-bar-area { flex: 1; padding: 8px 0; display: flex; align-items: center; min-width: 500px; }
.gantt-bar {
  height: 28px; border-radius: 6px; position: relative; display: flex;
  align-items: center; padding: 0 10px;
  font-size: 11px; font-weight: 600; color: #fff; overflow: hidden;
}
.gantt-headers { display: flex; margin-left: 160px; min-width: 500px; }
.gantt-week {
  flex: 1; text-align: center; font-size: 10px; font-weight: 700; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 0;
  border-right: 1px solid var(--border-soft);
}

/* ===== SITE UPDATE CARDS ===== */
.update-feed { display: flex; flex-direction: column; gap: 16px; }
.update-card {
  background: var(--card-bg); border-radius: var(--radius);
  border: 1px solid var(--border-soft); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.update-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.update-project { font-weight: 700; font-size: 14px; color: var(--text-dark); }
.update-date { font-size: 12px; color: var(--text-soft); }
.update-note { font-size: 13px; color: var(--text-mid); margin-bottom: 10px; line-height: 1.5; }
.update-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.update-photo {
  width: 80px; height: 64px; border-radius: var(--radius-sm);
  object-fit: cover; border: 1px solid var(--border);
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--teal-mid); cursor: pointer;
  overflow: hidden; flex-shrink: 0;
}
.update-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== ISSUE CARD ===== */
.issue-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft); transition: background 0.15s; cursor: pointer;
}
.issue-row:last-child { border-bottom: none; }
.issue-row:hover { background: var(--warm-white); }
.issue-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.issue-icon.high { background: var(--red-light); color: var(--red); }
.issue-icon.med { background: #fef3ea; color: #e8840a; }
.issue-icon.low { background: var(--teal-light); color: var(--teal); }
.issue-title { font-size: 13.5px; font-weight: 600; color: var(--text-dark); }
.issue-meta { font-size: 12px; color: var(--text-soft); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.issue-right { margin-left: auto; text-align: right; flex-shrink: 0; }

/* ===== SEARCH / FILTERS ===== */
.filters-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  flex: 1; max-width: 300px;
}
.search-box i { color: var(--text-soft); font-size: 13px; }
.search-box input { border: none; outline: none; background: none; font-size: 13px; color: var(--text-dark); width: 100%; }
.filter-select {
  padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card-bg);
  font-size: 13px; color: var(--text-mid); outline: none; cursor: pointer;
}

/* ===== SECTION HEADER ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 16px; font-weight: 700; color: var(--text-dark); }

/* ===== CHECKLIST ===== */
.checklist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; color: var(--text-mid);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item i.checked { color: #2a9952; }
.checklist-item i.pending { color: var(--text-soft); }
.checklist-item .check-label { flex: 1; }
.checklist-item .check-label.done { text-decoration: line-through; color: var(--text-soft); }

/* ===== MOBILE OVERLAY ===== */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 99;
}

/* ===== TABS ===== */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  color: var(--text-soft); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s; background: none; border-top: none; border-left: none; border-right: none;
  font-family: inherit;
}
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-btn:hover:not(.active) { color: var(--text-dark); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== DEPT PROGRESS ===== */
.dept-progress-list { display: flex; flex-direction: column; gap: 12px; }
.dept-progress-item { }
.dept-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.dept-progress-name { font-size: 13px; font-weight: 600; color: var(--text-dark); display: flex; align-items: center; gap: 7px; }
.dept-progress-name i { font-size: 12px; color: var(--teal-mid); }

/* ===== MISC ===== */
.divider { height: 1px; background: var(--border-soft); margin: 16px 0; }
.text-soft { color: var(--text-soft); }
.text-mid { color: var(--text-mid); }
.fw-7 { font-weight: 700; }
.empty-state { text-align: center; padding: 40px; color: var(--text-soft); }
.empty-state i { font-size: 36px; margin-bottom: 10px; display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 200; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card-bg); border-radius: var(--radius-lg);
  width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-header { padding: 20px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 16px; font-weight: 700; font-family: var(--font-head); }
.modal-close { width: 30px; height: 30px; border-radius: 50%; background: var(--warm-white); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-mid); font-size: 14px; }
.modal-body { padding: 18px 24px 24px; }
.form-group { margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; display: block; }
.form-input {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--warm-white);
  font-size: 13px; color: var(--text-dark); outline: none; transition: border 0.2s;
}
.form-input:focus { border-color: var(--teal); background: #fff; }
select.form-input { cursor: pointer; }

/* ===== VENDOR CARD ===== */
.vendor-card {
  background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border-soft);
  padding: 18px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s;
}
.vendor-card:hover { box-shadow: var(--shadow-md); }
.vendor-card-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.vendor-avatar {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.vendor-name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.vendor-cat { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.vendor-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.vendor-stat { font-size: 12px; color: var(--text-mid); display: flex; align-items: center; gap: 4px; }
.vendor-stat i { font-size: 11px; color: var(--text-soft); }
.star-rating { display: flex; gap: 2px; }
.star-rating i { font-size: 11px; color: #f4c430; }
.star-rating i.empty { color: var(--border); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-mid); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .project-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .sidebar-overlay.visible { opacity: 1; pointer-events: all; }
  .main-content { margin-left: 0; }
  .hamburger { display: flex; }
  .project-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .project-cards-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .page-body { padding: 16px; }
  .topbar { padding: 0 16px; }
  .kanban-col { min-width: 200px; width: 200px; }
  .gantt-label { min-width: 100px; font-size: 11px; }
}

/* ===== TOOLTIP ===== */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%);
  background: var(--teal-dark); color: #fff; font-size: 11px; padding: 4px 8px;
  border-radius: 6px; white-space: nowrap; z-index: 99; pointer-events: none;
}

/* ===== CLIENT PORTAL SPECIFIC ===== */
.client-portal-body { background: var(--warm-white); }
.portal-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: 32px 24px; color: #fff; border-radius: var(--radius-lg); margin-bottom: 24px;
}
.portal-hero .hero-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.portal-hero .hero-sub { font-size: 13px; color: rgba(255,255,255,0.7); }
.portal-progress-ring { position: relative; display: inline-block; }

/* ===== ACTIVITY TIMELINE ===== */
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.activity-item::before {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: -10px;
  width: 1px; background: var(--border);
}
.activity-item:last-child::before { display: none; }
.activity-dot {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; margin-top: 2px;
}
.activity-dot.update { background: var(--teal-light); color: var(--teal); }
.activity-dot.issue { background: var(--red-light); color: var(--red); }
.activity-dot.done { background: #edf7f0; color: #2a9952; }
.activity-dot.change { background: #fef3ea; color: #e8840a; }
.activity-content { flex: 1; }
.activity-title { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.activity-time { font-size: 11px; color: var(--text-soft); margin-top: 2px; }
