/* ============================================
   Consent Auditor - Main Stylesheet
   Dark theme with professional compliance aesthetic
   ============================================ */

:root {
    --ca-sidebar-bg: #13151e;
    --ca-sidebar-width: 260px;
    --ca-sidebar-text: #a0aec0;
    --ca-sidebar-active: #ffffff;
    --ca-sidebar-active-bg: rgba(99, 102, 241, 0.15);
    --ca-sidebar-border: rgba(255,255,255,0.06);
    --ca-accent: #6366f1;
    --ca-accent-hover: #818cf8;
    --ca-body-bg: #0f1117;
    --ca-card-bg: #1a1d2e;
    --ca-card-border: rgba(255,255,255,0.06);
    --ca-text: #e2e8f0;
    --ca-muted: #64748b;
    --ca-success: #10b981;
    --ca-warning: #f59e0b;
    --ca-danger: #ef4444;
    --ca-info: #3b82f6;
    --ca-risk-score-fill: #10b981;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--ca-body-bg);
    color: var(--ca-text);
    font-size: 0.9rem;
}

/* ============================================
   Layout
   ============================================ */
#wrapper {
    min-height: 100vh;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    width: var(--ca-sidebar-width);
    min-height: 100vh;
    background: var(--ca-sidebar-bg);
    border-right: 1px solid var(--ca-sidebar-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--ca-sidebar-border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.sidebar-brand i {
    color: var(--ca-accent);
    font-size: 1.2rem;
}

.sidebar-content {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    margin: 2px 0.5rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    color: var(--ca-sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.sidebar-nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: white;
}

.sidebar-nav-link.active {
    background: var(--ca-sidebar-active-bg);
    color: var(--ca-accent-hover);
}

.sidebar-nav-link i {
    font-size: 1rem;
    width: 1.2rem;
    flex-shrink: 0;
}

.sidebar-nav-divider {
    border-top: 1px solid var(--ca-sidebar-border);
    margin: 0.75rem 1rem;
}

.sidebar-nav-label {
    padding: 0.4rem 1.35rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ca-muted);
    font-weight: 600;
}

.sidebar-footer {
    border-top: 1px solid var(--ca-sidebar-border);
    padding: 1rem 1.25rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ca-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.7rem;
    color: var(--ca-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-actions {
    display: flex;
    gap: 4px;
}

/* ============================================
   Top Navbar
   ============================================ */
.top-navbar {
    background: var(--ca-sidebar-bg);
    border-bottom: 1px solid var(--ca-sidebar-border);
    padding: 0.5rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--ca-sidebar-text);
    border-radius: 6px;
    padding: 4px 8px;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.06);
    color: white;
}

/* ============================================
   Main Content
   ============================================ */
#page-content-wrapper {
    min-width: 0;
    overflow: auto;
}

.main-content {
    padding: 1.5rem 2rem;
    max-width: 1600px;
}

/* ============================================
   Auth Layout
   ============================================ */
.auth-navbar {
    background: var(--ca-sidebar-bg);
    border-bottom: 1px solid var(--ca-sidebar-border);
    padding: 1rem 0;
}

.auth-main {
    min-height: calc(100vh - 70px);
    background: var(--ca-body-bg);
}

.auth-card {
    background: var(--ca-card-bg);
    border: 1px solid var(--ca-card-border);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--ca-accent);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.auth-title {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    color: white;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    margin-bottom: 1.75rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: white;
    margin: 0;
}

/* ============================================
   Cards
   ============================================ */
.ca-card {
    background: var(--ca-card-bg);
    border: 1px solid var(--ca-card-border);
    border-radius: 12px;
}

.ca-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--ca-card-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: white;
}

.ca-card .card-body {
    padding: 1.25rem;
}

.ca-card .card-footer {
    border-top: 1px solid var(--ca-card-border);
    padding: 0.75rem 1.25rem;
}

/* ============================================
   Stat Cards
   ============================================ */
.stat-card {
    background: var(--ca-card-bg);
    border: 1px solid var(--ca-card-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: white;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--ca-muted);
    margin-top: 2px;
}

/* ============================================
   Tables
   ============================================ */
.ca-table {
    color: var(--ca-text);
}

.ca-table thead th {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--ca-card-border);
    color: var(--ca-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.ca-table tbody td {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.ca-table tbody tr:last-child td {
    border-bottom: none;
}

.ca-table tbody tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* ============================================
   Severity Badges
   ============================================ */
.severity-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.severity-badge.severity-critical {
    background: rgba(239,68,68,0.2);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
}

.severity-badge.severity-high {
    background: rgba(245,158,11,0.2);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.3);
}

.severity-badge.severity-medium {
    background: rgba(59,130,246,0.2);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.3);
}

.severity-badge.severity-low {
    background: rgba(100,116,139,0.2);
    color: #64748b;
    border: 1px solid rgba(100,116,139,0.3);
}

/* ============================================
   Risk Score
   ============================================ */
.risk-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    border: 2px solid;
}

.risk-score-badge.risk-danger { border-color: #ef4444; color: #ef4444; }
.risk-score-badge.risk-warning { border-color: #f59e0b; color: #f59e0b; }
.risk-score-badge.risk-info { border-color: #3b82f6; color: #3b82f6; }
.risk-score-badge.risk-success { border-color: #10b981; color: #10b981; }
.risk-score-badge.risk-secondary { border-color: #64748b; color: #64748b; }

.risk-score-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    border: 3px solid;
    margin: 0 auto;
}

.risk-score-circle.risk-danger { border-color: #ef4444; color: #ef4444; }
.risk-score-circle.risk-warning { border-color: #f59e0b; color: #f59e0b; }
.risk-score-circle.risk-info { border-color: #3b82f6; color: #3b82f6; }
.risk-score-circle.risk-success { border-color: #10b981; color: #10b981; }
.risk-score-circle.risk-secondary { border-color: #64748b; color: #64748b; }

/* ============================================
   Finding Cards
   ============================================ */
.findings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.finding-card {
    background: var(--ca-card-bg);
    border: 1px solid var(--ca-card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.finding-card:hover {
    border-color: rgba(255,255,255,0.12);
}

.finding-card.finding-critical { border-left: 3px solid #ef4444; }
.finding-card.finding-high { border-left: 3px solid #f59e0b; }
.finding-card.finding-medium { border-left: 3px solid #3b82f6; }
.finding-card.finding-low { border-left: 3px solid #64748b; }

.finding-card-header {
    padding: 1rem 1.25rem 0.5rem;
}

.finding-card-body {
    padding: 0 1.25rem 0.75rem;
}

.finding-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.01);
    display: flex;
    align-items: center;
}

.finding-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.finding-title a {
    color: inherit;
}

/* ============================================
   Severity Bars
   ============================================ */
.severity-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.severity-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.severity-label {
    width: 60px;
    flex-shrink: 0;
    font-size: 0.7rem;
}

.severity-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.severity-bar {
    height: 100%;
    border-radius: 4px;
    min-width: 4px;
}

.severity-count {
    width: 24px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ca-text);
}

/* ============================================
   Screenshots
   ============================================ */
.screenshot-card {
    background: var(--ca-card-bg);
    border: 1px solid var(--ca-card-border);
    border-radius: 10px;
    overflow: hidden;
}

.screenshot-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: top;
    display: block;
    border-bottom: 1px solid var(--ca-card-border);
    transition: opacity 0.15s ease;
}

.screenshot-thumb:hover {
    opacity: 0.85;
}

.screenshot-info {
    padding: 0.5rem 0.75rem;
}

/* ============================================
   Nav Tabs
   ============================================ */
.nav-tabs-ca {
    border-bottom: 1px solid var(--ca-card-border);
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.nav-tabs-ca .nav-link {
    color: var(--ca-muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.nav-tabs-ca .nav-link:hover {
    color: var(--ca-text);
    background: transparent;
    border-bottom-color: rgba(255,255,255,0.2);
}

.nav-tabs-ca .nav-link.active {
    color: var(--ca-accent-hover);
    background: transparent;
    border-bottom-color: var(--ca-accent);
}

/* ============================================
   Info List
   ============================================ */
.info-list {
    margin: 0;
}

.info-list dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ca-muted);
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.2rem;
}

.info-list dt:first-child {
    margin-top: 0;
}

.info-list dd {
    color: var(--ca-text);
    margin: 0;
    font-size: 0.875rem;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.detail-row:last-child {
    border-bottom: none;
}

/* ============================================
   Empty States
   ============================================ */
.empty-state-card {
    background: var(--ca-card-bg);
    border: 1px solid var(--ca-card-border);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--ca-muted);
    margin-bottom: 1.25rem;
    line-height: 1;
}

/* ============================================
   Organization & Member Avatars
   ============================================ */
.org-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ca-accent), #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.org-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.org-stat-label {
    font-size: 0.7rem;
    color: var(--ca-muted);
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(99,102,241,0.2);
    color: var(--ca-accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--ca-accent), #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
}

/* ============================================
   Role Helpers
   ============================================ */
.role-item {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.role-item:last-child {
    border-bottom: none;
}

/* ============================================
   Status Dots
   ============================================ */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.running {
    background: #10b981;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: radial-gradient(ellipse at top, rgba(99,102,241,0.12) 0%, transparent 60%);
    min-height: 100vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(99,102,241,0.15);
    color: var(--ca-accent-hover);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(99,102,241,0.25);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: white;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--ca-muted);
    line-height: 1.6;
    max-width: 500px;
}

.hero-features .feature-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Demo Card */
.scan-demo-card {
    background: var(--ca-card-bg);
    border: 1px solid var(--ca-card-border);
    border-radius: 16px;
    padding: 1.5rem;
    width: 380px;
    max-width: 100%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.scan-demo-header {
    margin-bottom: 1rem;
}

.scan-demo-url {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--ca-muted);
    background: rgba(255,255,255,0.04);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

.scan-demo-findings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.demo-finding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
}

.demo-finding.critical { background: rgba(239,68,68,0.1); color: #fca5a5; }
.demo-finding.high { background: rgba(245,158,11,0.1); color: #fcd34d; }
.demo-finding.medium { background: rgba(59,130,246,0.1); color: #93c5fd; }

.scan-demo-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--ca-card-border);
    padding-top: 1rem;
}

.demo-stat {
    text-align: center;
}

.demo-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
}

.demo-stat-label {
    font-size: 0.7rem;
    color: var(--ca-muted);
}

/* ============================================
   Messages
   ============================================ */
.messages-container {
    margin-bottom: 1.25rem;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

.breadcrumb-item.active {
    color: var(--ca-muted);
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* ============================================
   Bootstrap Overrides for Dark Theme
   ============================================ */
.list-group-item {
    background: transparent;
    border-color: var(--ca-card-border);
    color: var(--ca-text);
}

.list-group-item-action:hover {
    background: rgba(255,255,255,0.03);
    color: white;
}

.form-control, .form-select {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: var(--ca-text);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255,255,255,0.07);
    border-color: var(--ca-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    color: white;
}

.form-control::placeholder {
    color: var(--ca-muted);
}

.form-check-input:checked {
    background-color: var(--ca-accent);
    border-color: var(--ca-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        z-index: 1000;
        transition: left 0.25s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .main-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* ============================================
   Light Theme Overrides
   (activated by data-bs-theme="light")
   ============================================ */
[data-bs-theme="light"] {
    --ca-sidebar-bg: #ffffff;
    --ca-body-bg: #f1f5f9;
    --ca-card-bg: #ffffff;
    --ca-card-border: rgba(0,0,0,0.08);
    --ca-text: #1e293b;
    --ca-muted: #94a3b8;
    --ca-sidebar-text: #475569;
    --ca-sidebar-active: #1e293b;
    --ca-sidebar-border: rgba(0,0,0,0.08);
    --ca-sidebar-active-bg: rgba(99,102,241,0.1);
    --ca-accent-hover: #6366f1;
}

[data-bs-theme="light"] body {
    background-color: var(--ca-body-bg);
    color: var(--ca-text);
}

[data-bs-theme="light"] .sidebar,
[data-bs-theme="light"] .top-navbar {
    background: var(--ca-sidebar-bg);
    border-color: var(--ca-sidebar-border);
}

[data-bs-theme="light"] .sidebar-toggle {
    border-color: rgba(0,0,0,0.15);
    color: #64748b;
}

[data-bs-theme="light"] .sidebar-toggle:hover {
    background: rgba(0,0,0,0.05);
    color: #1e293b;
}

[data-bs-theme="light"] .sidebar-nav-link:hover {
    background: rgba(0,0,0,0.05);
    color: #1e293b;
}

[data-bs-theme="light"] .ca-card {
    background: var(--ca-card-bg);
    border-color: var(--ca-card-border);
}

[data-bs-theme="light"] .ca-card .card-header {
    border-bottom-color: var(--ca-card-border);
    color: #1e293b;
}

[data-bs-theme="light"] .ca-table {
    color: var(--ca-text);
}

[data-bs-theme="light"] .ca-table thead th {
    background: rgba(0,0,0,0.02);
    border-bottom-color: var(--ca-card-border);
    color: var(--ca-muted);
}

[data-bs-theme="light"] .ca-table tbody td {
    border-bottom-color: rgba(0,0,0,0.05);
}

[data-bs-theme="light"] .ca-table tbody tr:hover td {
    background: rgba(0,0,0,0.02);
}

[data-bs-theme="light"] .finding-card {
    background: var(--ca-card-bg);
    border-color: var(--ca-card-border);
}

[data-bs-theme="light"] .finding-card-footer {
    border-top-color: rgba(0,0,0,0.06);
    background: rgba(0,0,0,0.01);
}

[data-bs-theme="light"] .finding-title {
    color: #1e293b;
}

[data-bs-theme="light"] .stat-card {
    background: var(--ca-card-bg);
    border-color: var(--ca-card-border);
}

[data-bs-theme="light"] .stat-card-value {
    color: #1e293b;
}

[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background-color: #f8fafc;
    border-color: rgba(0,0,0,0.15);
    color: var(--ca-text);
}

[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
    background-color: #ffffff;
    border-color: var(--ca-accent);
    color: #1e293b;
}

[data-bs-theme="light"] .form-control::placeholder {
    color: #94a3b8;
}

[data-bs-theme="light"] .severity-bar-track {
    background: rgba(0,0,0,0.08);
}

[data-bs-theme="light"] .nav-tabs-ca {
    border-bottom-color: var(--ca-card-border);
}

[data-bs-theme="light"] .nav-tabs-ca .nav-link {
    color: #64748b;
}

[data-bs-theme="light"] .nav-tabs-ca .nav-link:hover {
    border-bottom-color: rgba(0,0,0,0.2);
    color: #1e293b;
}

[data-bs-theme="light"] .screenshot-card {
    background: var(--ca-card-bg);
    border-color: var(--ca-card-border);
}

[data-bs-theme="light"] .screenshot-thumb {
    border-bottom-color: var(--ca-card-border);
}

[data-bs-theme="light"] .page-title {
    color: #0f172a;
}

[data-bs-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
}

[data-bs-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
}

/* ============================================
   Inline Category Editor
   ============================================ */
.category-cell {
    white-space: nowrap;
}

.category-edit-btn {
    background: none;
    border: none;
    padding: 0 4px;
    color: var(--ca-muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    vertical-align: middle;
}

tr:hover .category-edit-btn {
    opacity: 1;
}

.category-select-inline {
    display: none;
    width: auto;
    min-width: 120px;
    font-size: 0.8rem;
    padding: 2px 6px;
    height: auto;
}

.category-cell.editing .category-label { display: none; }
.category-cell.editing .category-edit-btn { display: none; }
.category-cell.editing .category-select-inline { display: inline-block; }
