/* ============================================
   CompliTraceAI — App Shared Styles
   Premium Dark Glass Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #0A1628;
  --bg2: #0D1F3C;
  --bg3: #111D35;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --navy: #1B3A6B;
  --green: #00703C;
  --green-glow: rgba(0,112,60,0.3);
  --amber: #F5A623;
  --red: #D4351C;
  --text: #FFFFFF;
  --text-muted: rgba(255,255,255,0.55);
  --text-dim: rgba(255,255,255,0.3);
  --sidebar-w: 260px;
  --sidebar-collapsed: 72px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =============== SIDEBAR =============== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #0D1F3C;
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  transition: width 0.3s ease;
}

.sidebar-logo {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.sidebar-logo .logo-icon { font-size: 26px; }
.sidebar-logo .logo-text { font-size: 20px; font-weight: 700; color: var(--text); white-space: nowrap; }
.sidebar-logo .logo-text span { color: var(--amber); }

.nav-section-label {
  padding: 20px 24px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration: none;
}

.nav-item.active {
  background: rgba(0,112,60,0.15);
  color: var(--text);
  border-left-color: var(--green);
}

.nav-item .nav-icon { font-size: 18px; flex-shrink: 0; width: 22px; text-align: center; }

.sidebar-nav { flex: 1; overflow-y: auto; padding-bottom: 12px; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.user-info { margin-bottom: 12px; }
.user-info .name { font-size: 14px; font-weight: 600; color: var(--text); }
.user-info .email { font-size: 12px; color: var(--text-muted); }

.tier-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tier-badge.starter { background: rgba(245,166,35,0.2); color: var(--amber); }
.tier-badge.professional { background: rgba(0,112,60,0.2); color: var(--green); }
.tier-badge.enterprise { background: linear-gradient(135deg, rgba(0,112,60,0.3), rgba(27,58,107,0.3)); color: var(--text); }

.upgrade-cta {
  margin: 10px 0 14px;
  padding: 14px 16px;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
}

.upgrade-cta a {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--green), #00883F);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.btn-logout {
  width: 100%;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(212,53,28,0.15);
  border-color: var(--red);
  color: var(--red);
}

/* =============== MAIN CONTENT =============== */
.app-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg);
  transition: margin-left 0.3s ease;
}

/* =============== TOP HEADER =============== */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(13,31,60,0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--text-dim); }

.top-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.notif-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg2);
}

/* =============== PAGE CONTENT =============== */
.page-content { padding: 28px 32px; }

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* =============== GLASS CARD =============== */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
}

.glass-card .card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* =============== STATS GRID =============== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(20px);
  transition: all 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.stat-card .stat-icon { font-size: 28px; margin-bottom: 12px; }
.stat-card .stat-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-card .stat-trend {
  font-size: 12px;
  margin-top: 8px;
  display: flex; align-items: center; gap: 4px;
}
.stat-card .stat-trend.up { color: var(--green); }
.stat-card .stat-trend.down { color: var(--red); }

.stat-card.border-green { border-left: 3px solid var(--green); }
.stat-card.border-amber { border-left: 3px solid var(--amber); }
.stat-card.border-red { border-left: 3px solid var(--red); }
.stat-card.border-navy { border-left: 3px solid var(--navy); }

/* =============== BADGES =============== */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-critical { background: rgba(212,53,28,0.2); color: var(--red); }
.badge-high { background: rgba(245,166,35,0.2); color: var(--amber); }
.badge-medium { background: rgba(27,58,107,0.3); color: #5B8DEF; }
.badge-low { background: rgba(0,112,60,0.2); color: var(--green); }

.badge-received { background: rgba(27,58,107,0.3); color: #5B8DEF; }
.badge-investigating { background: rgba(245,166,35,0.2); color: var(--amber); }
.badge-resolved { background: rgba(0,112,60,0.2); color: var(--green); }
.badge-closed { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.badge-pending { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.badge-overdue { background: rgba(212,53,28,0.2); color: var(--red); }
.badge-completed { background: rgba(0,112,60,0.2); color: var(--green); }
.badge-in_progress { background: rgba(245,166,35,0.2); color: var(--amber); }
.badge-active { background: rgba(212,53,28,0.2); color: var(--red); }
.badge-under_support { background: rgba(245,166,35,0.2); color: var(--amber); }
.badge-flagged { background: rgba(212,53,28,0.15); color: var(--red); }
.badge-under_review { background: rgba(245,166,35,0.2); color: var(--amber); }
.badge-supported { background: rgba(0,112,60,0.2); color: var(--green); }
.badge-closed { background: rgba(255,255,255,0.08); color: var(--text-muted); }

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), #00883F);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 4px 20px var(--green-glow); transform: translateY(-1px); }

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

.btn-danger {
  background: rgba(212,53,28,0.15);
  color: var(--red);
  border: 1px solid rgba(212,53,28,0.2);
}
.btn-danger:hover { background: rgba(212,53,28,0.25); }

.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 8px; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 10px; }
.btn-ghost.danger { color: var(--red); }
.btn-ghost.danger:hover { background: rgba(212,53,28,0.15); }

/* =============== TABLE =============== */
.ct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ct-table thead th {
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--glass-border);
}

.ct-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}

.ct-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.ct-table tbody tr:last-child td { border-bottom: none; }

.actions-cell {
  display: flex;
  gap: 6px;
}

/* =============== FORM ELEMENTS =============== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form-control::placeholder {
  color: var(--text-dim);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.55)' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

/* =============== MODAL =============== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: #0D1F3C;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: slideUp 0.25s ease;
}

.modal-wide { max-width: 720px; }

.modal h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  transition: all 0.2s;
}

.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.08); }

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

/* =============== DRAWER =============== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  animation: fadeIn 0.2s ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 90vw;
  height: 100vh;
  background: #0D1F3C;
  border-left: 1px solid var(--glass-border);
  z-index: 950;
  padding: 28px;
  overflow-y: auto;
  animation: slideInRight 0.3s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}

@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* =============== TOAST =============== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  min-width: 280px;
  max-width: 420px;
}

.toast-success { background: rgba(0,112,60,0.9); border: 1px solid rgba(0,112,60,0.5); color: #fff; }
.toast-error { background: rgba(212,53,28,0.9); border: 1px solid rgba(212,53,28,0.5); color: #fff; }
.toast-warning { background: rgba(245,166,35,0.9); border: 1px solid rgba(245,166,35,0.5); color: #fff; }
.toast-info { background: rgba(27,58,107,0.9); border: 1px solid rgba(27,58,107,0.5); color: #fff; }

.toast .toast-icon { font-size: 18px; }
.toast .toast-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.7;
  font-size: 16px;
  background: none;
  border: none;
  color: #fff;
}

@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* =============== SKELETON LOADING =============== */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-title { height: 20px; margin-bottom: 16px; width: 60%; }
.skeleton-card { height: 120px; margin-bottom: 16px; }
.skeleton-table-row { height: 50px; margin-bottom: 8px; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* =============== EMPTY STATE =============== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state svg { margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* =============== FILTER BAR =============== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.filter-bar select,
.filter-bar input {
  padding: 9px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--green);
}

.filter-bar .search-input {
  min-width: 200px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover { border-color: var(--green); color: var(--text); }
.chip.active { background: rgba(0,112,60,0.15); border-color: var(--green); color: var(--green); }

/* =============== PILL =============== */
.vuln-dim {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin: 1px;
}

.vuln-dim.health { background: rgba(212,53,28,0.15); color: var(--red); }
.vuln-dim.financial { background: rgba(245,166,35,0.15); color: var(--amber); }
.vuln-dim.life_event { background: rgba(27,58,107,0.3); color: #5B8DEF; }
.vuln-dim.digital { background: rgba(0,112,60,0.15); color: var(--green); }
.vuln-dim.access { background: rgba(255,255,255,0.08); color: var(--text-muted); }

/* =============== LANDING PAGE STYLES (for non-app pages) =============== */
.landing-page {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(13,31,60,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.landing-nav .nav-links { display: flex; gap: 24px; align-items: center; }
.landing-nav .nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.landing-nav .nav-links a:hover { color: var(--text); }

.landing-hero {
  text-align: center;
  padding: 100px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.landing-hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 60%, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 32px;
}

.landing-section {
  padding: 60px 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.landing-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
}

.landing-section p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.landing-footer {
  text-align: center;
  padding: 40px 48px;
  border-top: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-muted);
}

.landing-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.landing-footer .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.landing-footer .footer-links a:hover { color: var(--text); }

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

@media (max-width: 768px) {
  .sidebar {
    width: var(--sidebar-collapsed);
  }
  .sidebar-logo .logo-text,
  .nav-item span:not(.nav-icon),
  .nav-section-label,
  .sidebar-footer .user-info,
  .upgrade-cta { display: none; }
  .nav-item { justify-content: center; padding: 14px; }
  .nav-item span.nav-icon { margin: 0; }
  .sidebar-footer { padding: 10px; }
  .btn-logout { padding: 8px 0; font-size: 0; }
  .btn-logout::before { content: '🚪'; font-size: 18px; }
  .sidebar-nav { padding: 8px 0; }

  .app-main { margin-left: var(--sidebar-collapsed); }
  .page-content { padding: 16px; }
  .top-header { padding: 14px 16px; }
  .stats-grid { grid-template-columns: 1fr; }

  .landing-hero h1 { font-size: 32px; }
  .landing-nav { padding: 14px 20px; flex-wrap: wrap; gap: 8px; }
  .landing-section { padding: 40px 20px; }
  .landing-nav .nav-links { gap: 12px; }
}

@media (max-width: 480px) {
  .filter-bar { flex-direction: column; }
  .filter-bar select, .filter-bar input { width: 100%; }
}

/* =============== CIRCULAR GAUGE (SVG) =============== */
.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-svg { width: 120px; height: 120px; }
.gauge-svg .bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 8; }
.gauge-svg .fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.gauge-svg .fill.good { stroke: var(--green); }
.gauge-svg .fill.amber { stroke: var(--amber); }
.gauge-svg .fill.poor { stroke: var(--red); }
.gauge-value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 8px;
}

/* =============== PROGRESS BAR =============== */
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-fill.green { background: var(--green); }
.progress-fill.amber { background: var(--amber); }
.progress-fill.red { background: var(--red); }

/* =============== KANBAN =============== */
.kanban-column {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  min-height: 300px;
}

.kanban-column h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.kanban-task {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.kanban-task:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.kanban-task.priority-critical { border-left: 3px solid var(--red); }
.kanban-task.priority-high { border-left: 3px solid var(--amber); }
.kanban-task.priority-medium { border-left: 3px solid #5B8DEF; }
.kanban-task.priority-low { border-left: 3px solid rgba(255,255,255,0.15); }

/* =============== AI ANALYSIS RESULT PANEL =============== */
.ai-result {
  background: rgba(0,112,60,0.05);
  border: 1px solid rgba(0,112,60,0.2);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

.ai-result h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

.ai-result .result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}

.ai-result .result-row .label { color: var(--text-muted); }
.ai-result .result-row .value { color: var(--text); font-weight: 600; }

/* =============== OUTCOME CARD =============== */
.outcome-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(20px);
  transition: all 0.25s ease;
}

.outcome-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px