*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f5f2; color: #1a1a1a; font-size: 14px; }
.app { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.sidebar { width: 220px; background: white; border-right: 0.5px solid rgba(0,0,0,0.1); display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-logo { padding: 16px 14px 12px; border-bottom: 0.5px solid rgba(0,0,0,0.08); display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 28px; height: 28px; background: #534AB7; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: white; font-size: 15px; flex-shrink: 0; }
.brand-selector { margin: 10px 10px 4px; background: #f5f5f2; border-radius: 8px; padding: 8px 10px; display: flex; align-items: center; gap: 7px; cursor: pointer; border: 0.5px solid rgba(0,0,0,0.1); }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: #534AB7; flex-shrink: 0; }
nav { padding: 6px 0; flex: 1; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 8px 13px; cursor: pointer; font-size: 13px; color: #666; transition: background .1s; }
.nav-item:hover { background: #f5f5f2; color: #1a1a1a; }
.nav-item.active { background: #EEEDFE; color: #3C3489; font-weight: 500; }
.nav-item.active i { color: #534AB7; }
.nav-item i { font-size: 16px; flex-shrink: 0; }
.nav-label { flex: 1; }
.nav-badge { background: #534AB7; color: white; font-size: 10px; font-weight: 500; padding: 1px 6px; border-radius: 10px; }
.nav-section { padding: 12px 13px 3px; font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.sidebar-footer { padding: 12px 13px; border-top: 0.5px solid rgba(0,0,0,0.08); display: flex; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #EEEDFE; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 500; color: #534AB7; flex-shrink: 0; }

/* Main */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar { background: white; border-bottom: 0.5px solid rgba(0,0,0,0.08); padding: 0 20px; height: 52px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.page-title { font-size: 15px; font-weight: 500; color: #1a1a1a; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.content { flex: 1; overflow-y: auto; padding: 20px; }

/* Screens */
.screen { display: none; }
.screen.active { display: block; }

/* Buttons */
.btn { padding: 6px 13px; border-radius: 8px; font-size: 12px; cursor: pointer; font-family: inherit; border: 0.5px solid rgba(0,0,0,0.2); background: white; color: #1a1a1a; display: inline-flex; align-items: center; gap: 4px; }
.btn:hover { background: #f5f5f2; }
.btn-primary { background: #534AB7; color: white; border-color: #534AB7; }
.btn-primary:hover { background: #4a42a8; }
.btn-primary:disabled { background: #aaa; border-color: #aaa; cursor: not-allowed; }
.btn-sm { padding: 5px 10px; font-size: 11px; }
.btn-green { background: #EAF3DE; color: #27500A; border-color: #639922; }

/* Cards */
.card { background: white; border: 0.5px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 16px; }
.card-title { font-size: 12px; font-weight: 500; color: #1a1a1a; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

/* Tags */
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin: 2px 2px 2px 0; }
.tag-purple { background: #EEEDFE; color: #3C3489; }
.tag-teal { background: #E1F5EE; color: #0F6E56; }
.tag-blue { background: #E6F1FB; color: #185FA5; }
.tag-amber { background: #FAEEDA; color: #854F0B; }
.tag-gray { background: #F1EFE8; color: #444441; }
.tag-red { background: #FCEBEB; color: #A32D2D; }
.tag-green { background: #EAF3DE; color: #27500A; }

/* AI bar */
.ai-bar { background: #EEEDFE; border: 0.5px solid #AFA9EC; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.ai-bar-label { font-size: 11px; font-weight: 500; color: #3C3489; }
.ai-input-row { display: flex; gap: 8px; margin-top: 8px; }
.ai-input-row input { flex: 1; font-size: 13px; padding: 8px 12px; border-radius: 8px; border: 0.5px solid #AFA9EC; background: white; color: #1a1a1a; font-family: inherit; outline: none; }
.ai-input-row input:focus { border-color: #534AB7; }
.ai-input-row button { padding: 8px 14px; border-radius: 8px; background: #534AB7; color: white; border: none; font-size: 12px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.ai-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ai-chip { padding: 3px 10px; border-radius: 10px; font-size: 11px; cursor: pointer; background: white; border: 0.5px solid #AFA9EC; color: #3C3489; }
.ai-chip:hover { background: #EEEDFE; }

/* Metric cards */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.metric-card { background: #f5f5f2; border-radius: 10px; padding: 14px 16px; }
.metric-label { font-size: 11px; color: #666; margin-bottom: 5px; }
.metric-value { font-size: 24px; font-weight: 500; color: #1a1a1a; }
.metric-sub { font-size: 11px; color: #888; margin-top: 3px; }
.metric-up { color: #3B6D11; }
.metric-down { color: #A32D2D; }

/* Two column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }

/* Audit items */
.audit-item { background: white; border: 0.5px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.audit-item:hover { border-color: rgba(0,0,0,0.2); }
.score-circle { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.score-high { background: #EAF3DE; color: #3B6D11; }
.score-mid { background: #FAEEDA; color: #854F0B; }
.score-low { background: #FCEBEB; color: #A32D2D; }

/* Findings */
.finding-row { background: white; border: 0.5px solid rgba(0,0,0,0.1); border-radius: 12px; overflow: hidden; margin-bottom: 8px; cursor: pointer; }
.finding-row:hover { border-color: rgba(0,0,0,0.2); }
.finding-row.expanded { border-color: #AFA9EC; }
.finding-head { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; }
.finding-chk { width: 17px; height: 17px; border-radius: 4px; border: 1.5px solid rgba(0,0,0,0.2); flex-shrink: 0; margin-top: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: white; font-size: 10px; }
.finding-chk.marked { background: #534AB7; border-color: #534AB7; }
.finding-meta { flex: 1; min-width: 0; }
.finding-meta-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.finding-title { font-size: 12px; font-weight: 500; color: #1a1a1a; }
.url-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: #185FA5; background: #E6F1FB; padding: 2px 8px; border-radius: 8px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; cursor: pointer; border: none; font-family: inherit; }
.url-chip:hover { background: #B5D4F4; }
.goto-btn { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: #888; padding: 2px 8px; border-radius: 8px; border: 0.5px solid rgba(0,0,0,0.15); background: transparent; cursor: pointer; font-family: inherit; white-space: nowrap; }
.goto-btn:hover { color: #1a1a1a; border-color: rgba(0,0,0,0.3); }
.finding-detail { display: none; padding: 0 14px 12px 41px; border-top: 0.5px solid rgba(0,0,0,0.08); }
.finding-detail.open { display: block; }
.detail-box { background: #f5f5f2; border-radius: 8px; padding: 12px 14px; font-size: 12px; line-height: 1.7; color: #555; margin-top: 10px; }
.highlight-bad { background: #FAEEDA; padding: 1px 4px; border-radius: 3px; color: #854F0B; }
.highlight-good { background: #E1F5EE; padding: 1px 4px; border-radius: 3px; color: #0F6E56; }
.detail-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* Acties */
.actie-item { background: white; border: 0.5px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 13px 15px; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 10px; }
.actie-chk { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid rgba(0,0,0,0.2); flex-shrink: 0; margin-top: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.actie-chk.done { background: #534AB7; border-color: #534AB7; color: white; font-size: 11px; }
.assignee-pill { display: inline-flex; align-items: center; gap: 4px; background: #f5f5f2; border-radius: 10px; padding: 2px 8px 2px 3px; font-size: 11px; color: #555; }
.assignee-dot { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 500; }

/* Acquisitie */
.acq-card { background: white; border: 0.5px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.overlap-badge { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; }

/* Migratietabel */
.migrate-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.migrate-table th { background: #f5f5f2; padding: 8px 12px; text-align: left; font-size: 11px; font-weight: 500; color: #666; border-bottom: 0.5px solid rgba(0,0,0,0.1); }
.migrate-table td { padding: 9px 12px; border-bottom: 0.5px solid rgba(0,0,0,0.07); color: #1a1a1a; }
.migrate-table tr:last-child td { border-bottom: none; }
.url-text { color: #185FA5; font-family: monospace; font-size: 11px; }

/* Marktkansen */
.kans-card { background: white; border: 0.5px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.kans-card.top { border-left: 3px solid #534AB7; border-radius: 0 12px 12px 0; }
.ai-insight { background: #EEEDFE; border-radius: 8px; padding: 9px 12px; font-size: 11px; color: #3C3489; display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; }

/* Score bar */
.score-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 0.5px solid rgba(0,0,0,0.07); }
.score-row:last-child { border-bottom: none; }
.score-bar-wrap { width: 90px; height: 5px; background: #f0f0ee; border-radius: 3px; overflow: hidden; }
.score-bar { height: 100%; border-radius: 3px; background: #534AB7; }
.score-bar.mid { background: #EF9F27; }
.score-bar.low { background: #E24B4A; }

/* Toast */
.toast { background: #EAF3DE; border-radius: 10px; padding: 10px 16px; font-size: 12px; color: #27500A; display: none; align-items: center; gap: 8px; margin-top: 12px; }
.toast.show { display: flex; }

/* Filter pills */
.filter-bar { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-pill { font-size: 11px; padding: 4px 10px; border-radius: 8px; cursor: pointer; border: 0.5px solid rgba(0,0,0,0.12); background: white; color: #555; }
.filter-pill.active { background: #EEEDFE; color: #3C3489; border-color: #AFA9EC; font-weight: 500; }

/* Tabs */
.tab-bar { display: flex; gap: 0; border-bottom: 0.5px solid rgba(0,0,0,0.1); margin-bottom: 16px; }
.tab { padding: 10px 16px; font-size: 12px; cursor: pointer; color: #888; border-bottom: 2px solid transparent; margin-bottom: -0.5px; }
.tab.active { color: #534AB7; border-bottom-color: #534AB7; font-weight: 500; }

/* KB profiel tabs */
.profiel-tabs { display: flex; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.profiel-tab { padding: 5px 12px; border-radius: 8px; font-size: 11px; cursor: pointer; border: 0.5px solid rgba(0,0,0,0.15); background: white; color: #555; }
.profiel-tab.active { background: #EEEDFE; color: #3C3489; border-color: #AFA9EC; font-weight: 500; }
.profiel-add { border-style: dashed; color: #534AB7; border-color: #AFA9EC; }

/* Util */
.flex { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.muted { color: #888; }
.small { font-size: 11px; }
</style>
