/* ========== CSS Variables ========== */
:root {
  --bg-primary: #050508;
  --bg-secondary: rgba(10,14,25,0.95);
  --bg-tertiary: rgba(20,30,45,0.8);
  --bg-card: rgba(25,35,50,0.6);
  --bg-hover: rgba(78,205,196,0.06);
  --text-primary: #f0f4f8;
  --text-secondary: #7b9ab8;
  --text-muted: #4a6080;
  --border-color: rgba(78,205,196,0.15);
  --border-light: rgba(78,205,196,0.25);
  --accent-primary: #4ecdc4;
  --accent-secondary: #a855f7;
  --accent-success: #22c55e;
  --accent-warning: #eab308;
  --accent-danger: #ef4444;
  --accent-info: #06b6d4;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --sidebar-width: 260px;
  --topnav-height: 64px;
  --transition: all 0.3s ease;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; background: #050508; }
body {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: transparent;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Particle Background Canvas */
#particleBg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
a { color: var(--accent-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ========== Top Navigation ========== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topnav-height);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(78,205,196,0.2);
  box-shadow: 0 4px 30px rgba(78,205,196,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 12px; }
.nav-center { flex: 1; max-width: 500px; margin: 0 20px; }

.sidebar-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--bg-hover); }
.sidebar-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-icon { font-size: 24px; }
.brand-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  background: linear-gradient(135deg, #4ecdc4, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.global-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 12px;
  transition: var(--transition);
}
.global-search:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.global-search .search-icon { color: var(--text-muted); margin-right: 8px; }
.global-search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 10px 0;
  outline: none;
  min-width: 200px;
}
.global-search input::placeholder { color: var(--text-muted); }
.global-search kbd {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 18px;
  transition: var(--transition);
  position: relative;
}
.nav-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-danger);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.user-menu:hover { border-color: var(--accent-primary); }
.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
}
.user-name { font-size: 13px; color: var(--text-secondary); }

/* ========== Sidebar ========== */
.sidebar {
  position: fixed;
  top: var(--topnav-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--topnav-height));
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 900;
  transition: transform 0.3s ease;
}
.sidebar.collapsed { transform: translateX(-100%); }

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 24px; }
.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 12px;
  margin-bottom: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  margin-bottom: 2px;
}
.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  text-decoration: none;
}
.nav-item.active {
  background: rgba(78, 205, 196, 0.15);
  color: var(--accent-primary);
}
.nav-icon { font-size: 18px; width: 24px; text-align: center; }
.nav-label { font-size: 13px; font-weight: 500; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}
.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  transition: var(--transition);
}
.back-link:hover { color: var(--accent-primary); text-decoration: none; }

/* ========== Main Content ========== */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--topnav-height);
  padding: 24px;
  min-height: calc(100vh - var(--topnav-height));
  transition: margin-left 0.3s ease;
}
.sidebar.collapsed + .main-content { margin-left: 0; }

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.1s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.page-title p { color: var(--text-secondary); font-size: 14px; }
.page-actions { display: flex; gap: 12px; align-items: center; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { border-color: var(--accent-primary); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--accent-primary); }

/* ========== KPI Grid ========== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.kpi-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}
.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.kpi-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.kpi-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
}
.kpi-trend.up { color: var(--accent-success); }
.kpi-trend.down { color: var(--accent-danger); }
.kpi-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.kpi-label { font-size: 13px; color: var(--text-secondary); }
.kpi-progress {
  margin-top: 12px;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}
.kpi-progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

/* ========== Charts ========== */
.charts-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
  margin-bottom: 24px;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
.chart-header h3 { font-size: 15px; font-weight: 600; color: var(--accent-primary); }
.chart-actions { display: flex; gap: 4px; }
.chart-btn {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  transition: var(--transition);
}
.chart-btn:hover, .chart-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}
.chart-body { padding: 20px; min-height: 320px; }
.chart-body canvas { width: 100% !important; height: 280px !important; display: block; }

/* ========== Heat Map ========== */
.heatmap-grid {
  display: grid;
  grid-template-columns: 24px repeat(5, 1fr);
  gap: 3px;
  font-size: 10px;
  max-width: 220px;
  margin: 0 auto;
}
.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 9px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  min-width: 28px;
  max-width: 36px;
}
.heatmap-cell:hover { transform: scale(1.1); z-index: 1; }
.heatmap-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 9px;
}
.heatmap-header {
  text-align: center;
  color: var(--text-muted);
  font-weight: 500;
  padding: 2px;
  font-size: 9px;
}
.heatmap-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}
.heatmap-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.heatmap-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.heatmap-axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 0 10px;
}

/* ========== Domain Grid ========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-header h2 { font-size: 18px; font-weight: 600; }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 16px;
  transition: var(--transition);
}
.view-btn:hover, .view-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.domain-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.domain-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.domain-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.domain-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.domain-info { flex: 1; }
.domain-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.domain-stats { font-size: 12px; color: var(--text-muted); }
.domain-compliance {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.compliance-ring {
  width: 60px;
  height: 60px;
  position: relative;
}
.compliance-ring svg { transform: rotate(-90deg); }
.compliance-ring circle {
  fill: none;
  stroke-width: 6;
}
.compliance-ring .bg { stroke: var(--bg-tertiary); }
.compliance-ring .progress { stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.compliance-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 700;
}
.compliance-details { flex: 1; }
.compliance-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}
.compliance-bar span { height: 100%; transition: width 0.5s ease; }
.compliance-bar .compliant { background: var(--accent-success); }
.compliance-bar .partial { background: var(--accent-warning); }
.compliance-bar .non-compliant { background: var(--accent-danger); }
.compliance-legend {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}
.compliance-legend span { display: flex; align-items: center; gap: 4px; }
.compliance-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.domain-subdomains {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
}
.subdomain-count {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== Activity List ========== */
.activity-section { margin-top: 24px; }
.view-all { font-size: 13px; color: var(--accent-primary); }
.activity-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg-hover); }
.activity-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.activity-content { flex: 1; }
.activity-title { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.activity-meta { font-size: 12px; color: var(--text-muted); }
.activity-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }


/* ========== Filters Bar ========== */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; }
.filter-select, .filter-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 13px;
  min-width: 160px;
  outline: none;
  transition: var(--transition);
}
.filter-select:focus, .filter-input:focus { border-color: var(--accent-primary); }
.filter-select { cursor: pointer; }

/* ========== Data Table ========== */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  background: var(--bg-tertiary);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}
.data-table th:hover { color: var(--accent-primary); }
.sort-icon { margin-left: 4px; opacity: 0.5; }
.data-table th.sorted .sort-icon { opacity: 1; color: var(--accent-primary); }
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.status-compliant { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.status-ontrack { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.status-inprogress { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.status-partial { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.status-noncompliant { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.status-pending { background: rgba(107, 114, 128, 0.15); color: #6b7280; }

/* Risk Badges */
.risk-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.risk-critical { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.risk-high { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.risk-medium { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.risk-low { background: rgba(34, 197, 94, 0.2); color: #4ade80; }

/* Table Actions */
.table-actions { display: flex; gap: 6px; }
.action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}
.action-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.pagination-info { font-size: 13px; color: var(--text-secondary); }
.pagination-controls { display: flex; gap: 4px; }
.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  transition: var(--transition);
}
.page-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.page-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== Modal ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.active { display: flex; }
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s ease;
}
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1000px; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}
.modal-header h2 { font-size: 18px; font-weight: 600; }
.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 24px;
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--accent-danger);
  border-color: var(--accent-danger);
  color: white;
}
.modal-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 140px);
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
}

/* Control Detail */
.control-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.detail-field { margin-bottom: 16px; }
.detail-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.detail-value {
  font-size: 14px;
  color: var(--text-primary);
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.detail-value.editable {
  cursor: text;
}
.detail-textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
}
.mapping-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mapping-tag {
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-primary);
  border-radius: 4px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

/* ========== Domains Accordion ========== */
.domains-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion-item {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.accordion-header:hover { background: var(--bg-hover); }
.accordion-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.accordion-info { flex: 1; }
.accordion-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.accordion-meta { font-size: 13px; color: var(--text-secondary); }
.accordion-compliance {
  display: flex;
  align-items: center;
  gap: 12px;
}
.accordion-percent {
  font-size: 20px;
  font-weight: 700;
  min-width: 60px;
  text-align: right;
}
.accordion-arrow {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-item.open .accordion-body { max-height: 2000px; }
.accordion-content {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border-color);
}
.subdomain-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.subdomain-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}
.subdomain-card:hover {
  border-color: var(--accent-primary);
}
.subdomain-name { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.subdomain-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.subdomain-progress {
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.subdomain-progress-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ========== Risk Page ========== */
.risk-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.risk-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.risk-stat-value { font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.risk-stat-label { font-size: 13px; color: var(--text-secondary); }
.risk-stat.critical .risk-stat-value { color: var(--accent-danger); }
.risk-stat.high .risk-stat-value { color: #f97316; }
.risk-stat.medium .risk-stat-value { color: var(--accent-warning); }
.risk-stat.low .risk-stat-value { color: var(--accent-success); }

.risk-heatmap-large {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.risk-heatmap-large h3 { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.heatmap-container {
  display: grid;
  grid-template-columns: 80px repeat(5, 1fr);
  gap: 6px;
  max-width: 600px;
  margin: 0 auto;
}
.heatmap-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}
.heatmap-legend span { display: flex; align-items: center; gap: 6px; }
.heatmap-legend i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }

/* ========== Audit Page ========== */
.audit-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.audit-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.audit-stat-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.audit-stat-info { flex: 1; }
.audit-stat-value { font-size: 28px; font-weight: 700; }
.audit-stat-label { font-size: 13px; color: var(--text-secondary); }

.audit-timeline {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.timeline-header { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.timeline-items { position: relative; padding-left: 30px; }
.timeline-items::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}
.timeline-item {
  position: relative;
  padding-bottom: 24px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}
.timeline-item.completed::before { background: var(--accent-success); }
.timeline-item.in-progress::before { background: var(--accent-warning); }
.timeline-date { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.timeline-title { font-size: 14px; font-weight: 500; }
.timeline-desc { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }


/* ========== Evidence Page ========== */
.evidence-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.evidence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}
.evidence-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}
.evidence-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.evidence-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.evidence-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.evidence-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.evidence-tag {
  padding: 3px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* ========== Mapping Page ========== */
.mapping-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.mapping-tab {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.mapping-tab:hover { border-color: var(--accent-primary); color: var(--text-primary); }
.mapping-tab.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}
.mapping-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mapping-section {
  border-bottom: 1px solid var(--border-color);
}
.mapping-section:last-child { border-bottom: none; }
.mapping-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
}
.mapping-section-header:hover { background: var(--bg-hover); }
.mapping-section-title { font-size: 14px; font-weight: 600; }
.mapping-section-count {
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.mapping-controls {
  padding: 0 20px 20px;
  display: none;
}
.mapping-section.open .mapping-controls { display: block; }
.mapping-control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.mapping-control-item:last-child { margin-bottom: 0; }
.mapping-control-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-primary);
}
.mapping-control-name { font-size: 13px; flex: 1; margin: 0 16px; }

/* ========== Remediation Page ========== */
.remediation-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.remediation-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.remediation-stat-value { font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.remediation-stat-label { font-size: 13px; color: var(--text-secondary); }

.remediation-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  min-height: 500px;
}
.board-column {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}
.column-title { font-size: 14px; font-weight: 600; }
.column-count {
  background: var(--bg-tertiary);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.column-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}
.remediation-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.remediation-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}
.remediation-item:last-child { margin-bottom: 0; }
.remediation-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.remediation-item-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-primary);
}
.remediation-item-title { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.remediation-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== Notification Panel ========== */
.notification-panel {
  position: fixed;
  top: var(--topnav-height);
  right: 0;
  width: 380px;
  max-height: calc(100vh - var(--topnav-height));
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.notification-panel.active { transform: translateX(0); }
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
.notif-header h3 { font-size: 16px; font-weight: 600; }
.mark-read {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 13px;
  cursor: pointer;
}
.mark-read:hover { text-decoration: underline; }
.notif-list { flex: 1; overflow-y: auto; }
.notif-item {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}
.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { background: rgba(59, 130, 246, 0.05); }
.notif-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.notif-content { flex: 1; }
.notif-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.notif-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.notif-time { font-size: 11px; color: var(--text-muted); }

/* ========== Toast ========== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  min-width: 300px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
.toast.removing {
  animation: toastOut 0.3s ease forwards;
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}
.toast-icon { font-size: 20px; }
.toast-message { flex: 1; font-size: 13px; }
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}
.toast-close:hover { color: var(--text-primary); }
.toast.success { border-left: 3px solid var(--accent-success); }
.toast.error { border-left: 3px solid var(--accent-danger); }
.toast.warning { border-left: 3px solid var(--accent-warning); }
.toast.info { border-left: 3px solid var(--accent-info); }

/* ========== Export Options ========== */
.export-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.export-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.export-option:hover { background: var(--bg-hover); }
.export-option input { width: 18px; height: 18px; accent-color: var(--accent-primary); }
.export-format {
  display: flex;
  align-items: center;
  gap: 12px;
}
.export-format label { font-size: 14px; color: var(--text-secondary); }
.export-format select {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .charts-row { grid-template-columns: 1fr; }
  .charts-row .chart-card:last-child { max-width: 400px; margin: 0 auto; }
  .remediation-board { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.active { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .risk-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .top-nav { padding: 0 12px; }
  .nav-center { display: none; }
  .user-name { display: none; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-grid { grid-template-columns: 1fr; }
  .remediation-board { grid-template-columns: 1fr; }
  .risk-summary { grid-template-columns: 1fr; }
  .control-detail-grid { grid-template-columns: 1fr; }
  .notification-panel { width: 100%; }
  .filters-bar { flex-direction: column; }
  .filter-select, .filter-input { width: 100%; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .page-title h1 { font-size: 22px; }
}

/* ========== Print Styles ========== */
@media print {
  .top-nav, .sidebar, .page-actions, .filters-bar, .pagination, .modal, .notification-panel, .toast-container { display: none !important; }
  .main-content { margin: 0; padding: 20px; }
  .page { display: block !important; page-break-after: always; }
  .kpi-card, .domain-card, .chart-card { break-inside: avoid; }
  body { background: white; color: black; }
  .data-table { font-size: 11px; }
  .data-table th, .data-table td { padding: 8px; }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-tertiary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ========== Selection ========== */
::selection { background: rgba(59, 130, 246, 0.3); color: var(--text-primary); }

/* ========== Light Mode ========== */
html.light {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-light: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}
html.light {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}
html.light body {
  background: transparent;
}
html.light .top-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border-color);
}
html.light .sidebar {
  background: rgba(255, 255, 255, 0.98);
}
html.light .kpi-card,
html.light .chart-card,
html.light .domain-card,
html.light .accordion-item,
html.light .table-container,
html.light .filters-bar {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
html.light .kpi-value {
  background: linear-gradient(135deg, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.light .heatmap-cell {
  color: #fff;
}
html.light .brand-text {
  background: linear-gradient(135deg, #0d9488, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.light .global-search {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}
html.light .nav-btn {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}
html.light .user-menu {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}
html.light .modal-content {
  background: var(--bg-secondary);
}
html.light .toast {
  background: var(--bg-secondary);
}
html.light .notification-panel {
  background: var(--bg-secondary);
}
html.light .status-badge {
  font-weight: 600;
}
html.light .data-table th {
  background: var(--bg-tertiary);
}
html.light .data-table tbody tr:hover {
  background: var(--bg-hover);
}
html.light .btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
html.light .chart-btn {
  background: var(--bg-tertiary);
}
html.light .filter-select,
html.light .filter-input {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}
html.light #particleBg {
  opacity: 0.3;
}

/* ========== Settings Page ========== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.settings-card.full-width { grid-column: span 2; }
.settings-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}
.settings-card-header h3 { flex: 1; font-size: 15px; font-weight: 600; }
.settings-icon { font-size: 20px; }
.settings-card-body { padding: 20px; }
.setting-field { margin-bottom: 16px; }
.setting-field:last-child { margin-bottom: 0; }
.setting-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.setting-field input,
.setting-field select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
}
.setting-field input:focus,
.setting-field select:focus {
  border-color: var(--accent-primary);
  outline: none;
}
.setting-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.setting-toggle:last-child { border-bottom: none; }
.setting-toggle label { font-size: 14px; color: var(--text-primary); }
.setting-toggle input[type="checkbox"] {
  width: 44px;
  height: 24px;
  appearance: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.setting-toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}
.setting-toggle input[type="checkbox"]:checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.setting-toggle input[type="checkbox"]:checked::before {
  transform: translateX(20px);
  background: white;
}
.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}
.team-list { display: flex; flex-direction: column; gap: 10px; }
.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.team-member-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: white;
}
.team-member-info { flex: 1; }
.team-member-name { font-size: 14px; font-weight: 500; }
.team-member-role { font-size: 12px; color: var(--text-muted); }
.team-member-actions { display: flex; gap: 6px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
}
.tag-item .remove-tag {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}
.tag-item .remove-tag:hover { color: var(--accent-danger); }

/* ========== Import/Export Page ========== */
.import-export-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ie-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ie-card.full-width { grid-column: span 2; }
.ie-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}
.ie-card-header h3 { flex: 1; font-size: 15px; font-weight: 600; }
.ie-icon { font-size: 20px; }
.ie-card-body { padding: 20px; }
.import-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.import-tab {
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.import-tab:hover { border-color: var(--accent-primary); }
.import-tab.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}
.import-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.import-dropzone:hover,
.import-dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.05);
}
.dropzone-icon { font-size: 48px; margin-bottom: 12px; display: block; }
.import-dropzone p { color: var(--text-secondary); margin-bottom: 16px; }
.import-template {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.import-template p { color: var(--text-muted); font-size: 13px; margin: 0; }
.import-note {
  margin-top: 12px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-danger);
  font-size: 13px;
}
.import-preview {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}
.import-preview h4 { margin-bottom: 12px; font-size: 14px; }
.preview-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.preview-table-container {
  max-height: 200px;
  overflow: auto;
  margin-bottom: 16px;
}
.preview-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}
.preview-table th,
.preview-table td {
  padding: 8px;
  border: 1px solid var(--border-color);
  text-align: left;
}
.preview-table th { background: var(--bg-hover); }
.import-actions { display: flex; justify-content: flex-end; gap: 12px; }
.export-options-list { margin-bottom: 20px; }
.export-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.export-option-item:hover { border-color: var(--accent-primary); }
.export-option-item input { width: 18px; height: 18px; accent-color: var(--accent-primary); }
.option-info { flex: 1; display: flex; justify-content: space-between; }
.option-name { font-size: 14px; }
.option-count { font-size: 12px; color: var(--text-muted); }
.export-format-select {
  margin-bottom: 20px;
}
.export-format-select label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.format-buttons { display: flex; gap: 8px; }
.format-btn {
  padding: 8px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.format-btn:hover { border-color: var(--accent-primary); }
.format-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}
.export-actions { display: flex; gap: 12px; }
.data-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.data-stat { text-align: center; }
.data-stat .stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-primary);
}
.data-stat .stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.data-actions { display: flex; gap: 12px; }
.btn-danger {
  background: var(--accent-danger);
  color: white;
  border: none;
}
.btn-danger:hover { opacity: 0.9; }

/* ========== Assessment Page ========== */
.assessment-setup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.setup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.setup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-bottom: 1px solid var(--border-color);
}
.setup-icon { font-size: 28px; }
.setup-header h3 { font-size: 18px; font-weight: 600; }
.setup-body { padding: 20px; }
.setup-field { margin-bottom: 16px; }
.setup-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.setup-field input,
.setup-field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
}
.setup-actions { margin-top: 20px; }
.recent-assessments {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.recent-assessments h3 { font-size: 16px; margin-bottom: 16px; }
.assessment-history { display: flex; flex-direction: column; gap: 10px; }
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.history-item:hover { background: var(--bg-hover); }
.history-icon { font-size: 24px; }
.history-info { flex: 1; }
.history-name { font-size: 14px; font-weight: 500; }
.history-meta { font-size: 12px; color: var(--text-muted); }
.history-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}
.history-status.completed { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.history-status.in-progress { background: rgba(234, 179, 8, 0.15); color: #eab308; }

.assessment-progress {
  max-width: 900px;
  margin: 0 auto;
}
.progress-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.progress-info { margin-bottom: 12px; }
.progress-info h3 { font-size: 18px; margin-bottom: 4px; }
.progress-info p { font-size: 14px; color: var(--text-secondary); }
.progress-bar-container {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 4px;
  transition: width 0.3s ease;
}
.progress-stats { display: flex; gap: 20px; }
.progress-stats .stat {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.assessment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.assessment-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.assessment-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.assessment-card-title { flex: 1; }
.assessment-card-title h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--accent-primary);
}
.assessment-card-title p { font-size: 13px; color: var(--text-secondary); }
.assessment-question {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.assessment-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.assessment-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.assessment-field select,
.assessment-field input,
.assessment-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
}
.assessment-field textarea { min-height: 80px; resize: vertical; }
.assessment-field.full-width { grid-column: span 2; }
.assessment-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.assessment-complete {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}
.complete-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 500px;
}
.complete-icon { font-size: 64px; margin-bottom: 16px; }
.complete-card h2 { font-size: 28px; margin-bottom: 24px; }
.complete-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}
.complete-stat { text-align: center; }
.complete-stat .value {
  display: block;
  font-size: 32px;
  font-weight: 700;
}
.complete-stat .label {
  font-size: 13px;
  color: var(--text-muted);
}
.complete-actions { display: flex; justify-content: center; gap: 12px; }

/* ========== Change History ========== */
.history-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.history-section h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.history-timeline { position: relative; padding-left: 20px; }
.history-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}
.history-entry {
  position: relative;
  padding: 8px 0 16px 16px;
}
.history-entry::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
}
.history-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.history-entry-user { font-size: 13px; font-weight: 500; }
.history-entry-time { font-size: 11px; color: var(--text-muted); }
.history-entry-change {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.history-entry-change .field { color: var(--accent-primary); }
.history-entry-change .old-value { color: var(--accent-danger); text-decoration: line-through; }
.history-entry-change .new-value { color: var(--accent-success); }

/* ========== Responsive for new pages ========== */
@media (max-width: 1024px) {
  .settings-grid,
  .import-export-grid,
  .assessment-setup { grid-template-columns: 1fr; }
  .settings-card.full-width,
  .ie-card.full-width { grid-column: span 1; }
}
@media (max-width: 768px) {
  .assessment-fields { grid-template-columns: 1fr; }
  .assessment-field.full-width { grid-column: span 1; }
  .complete-stats { flex-direction: column; gap: 16px; }
}


/* ========== Enhanced Control Modal ========== */
.control-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.control-modal-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.control-modal-title h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.control-modal-title p {
  font-size: 13px;
  color: var(--text-secondary);
}
.control-status-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-section {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.control-section:last-child { margin-bottom: 0; }
.control-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.control-section-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-hover);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.control-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.control-description-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.control-description-box h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.control-description-box p {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
}

.control-expectation-box {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-left: 4px solid var(--accent-success);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.control-expectation-box h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-success);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.control-expectation-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.8;
}
.control-expectation-box li { margin-bottom: 4px; }

.control-evidence-box {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-left: 4px solid var(--accent-warning);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.control-evidence-box h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-warning);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.control-evidence-box p {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
}

.control-detail-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.control-detail-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.control-detail-item label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.control-detail-item .value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}
.control-detail-item select,
.control-detail-item input,
.control-detail-item textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}
.control-detail-item select:focus,
.control-detail-item input:focus,
.control-detail-item textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.control-detail-item textarea {
  min-height: 80px;
  resize: vertical;
}

.framework-mapping-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.framework-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
}
.framework-tag .framework-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.framework-tag .framework-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
}

.control-timeline {
  display: flex;
  gap: 24px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}
.timeline-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.timeline-item .icon {
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.timeline-item .info { font-size: 12px; }
.timeline-item .info .label { color: var(--text-muted); margin-bottom: 2px; }
.timeline-item .info .date { color: var(--text-primary); font-weight: 500; }

@media (max-width: 768px) {
  .control-detail-row { grid-template-columns: 1fr; }
  .framework-mapping-grid { grid-template-columns: 1fr; }
  .control-timeline { flex-direction: column; gap: 12px; }
}


/* Modal body with sections needs padding */
.modal-body .control-section:first-child { margin-top: 0; }
.modal-body > .control-modal-header { margin: 0; border-radius: 0; }
.modal-body > .control-section { margin: 0; border-radius: 0; border-left: none; border-right: none; border-top: none; }
.modal-body > .control-section:last-child { border-bottom: none; margin-bottom: 0; }

/* Improved status badges in modal */
.control-status-bar .status-badge { font-size: 12px; padding: 6px 14px; }
.control-status-bar .risk-badge { font-size: 11px; padding: 5px 12px; }

/* Better select styling in modal */
.control-detail-item select {
  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='%2394a3b8' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Hover effects for framework tags */
.framework-tag:hover {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
}
.framework-tag:hover .framework-value {
  transform: scale(1.05);
}
.framework-tag .framework-value {
  transition: transform 0.2s ease;
}

/* Better timeline styling */
.control-timeline {
  flex-wrap: wrap;
}
.timeline-item .icon {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-hover));
  border: 1px solid var(--border-color);
}

/* Animated section headers */
.control-section-header {
  cursor: default;
}
.control-section-icon {
  transition: transform 0.2s ease;
}
.control-section:hover .control-section-icon {
  transform: scale(1.1);
}

/* Better box shadows for description boxes */
.control-description-box,
.control-expectation-box,
.control-evidence-box {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.control-description-box:hover,
.control-expectation-box:hover,
.control-evidence-box:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Light theme adjustments for modal */
html.light .control-modal-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
}
html.light .control-section {
  background: var(--bg-tertiary);
}
html.light .control-description-box,
html.light .control-expectation-box,
html.light .control-evidence-box {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
html.light .control-detail-item {
  background: var(--bg-primary);
}
html.light .framework-tag {
  background: var(--bg-primary);
}

/* === Alias: controls-table mirrors data-table === */
.controls-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.controls-table th { background: rgba(78,205,196,0.06); color: var(--accent-primary); padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--border-color); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.controls-table td { padding: 11px 16px; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); font-size: 12px; vertical-align: middle; }
.controls-table tbody tr:hover td { background: rgba(78,205,196,0.04); }
