/* ArmoScan Design System - CSS Custom Properties & Base Styles */
/* No frameworks - Pure CSS */

:root {
    /* Colors - Dark theme primary — deeper, richer for security tool aesthetic */
    --color-bg-primary: #0a0d14;
    --color-bg-secondary: #111520;
    --color-bg-tertiary: #171b28;
    --color-bg-card: #1a1f2e;
    --color-bg-hover: #212738;
    --color-bg-input: #141825;

    --color-text-primary: #e8eaf0;
    --color-text-secondary: #a4a9be;
    --color-text-muted: #5e6478;
    --color-text-inverse: #0a0d14;

    --color-border: #242a3d;
    --color-border-light: #2e3550;
    --color-border-focus: #5b7bf9;

    /* Brand — vibrant blue with accessible contrast */
    --color-brand: #5b7bf9;
    --color-brand-hover: #7090fb;
    --color-brand-bg: rgba(91, 123, 249, 0.12);
    --color-brand-glow: rgba(91, 123, 249, 0.25);

    /* Severity — vivid, distinct, high contrast */
    --color-critical: #ff4757;
    --color-critical-bg: rgba(255, 71, 87, 0.1);
    --color-high: #ff8c42;
    --color-high-bg: rgba(255, 140, 66, 0.1);
    --color-medium: #ffd32a;
    --color-medium-bg: rgba(255, 211, 42, 0.1);
    --color-low: #4da6ff;
    --color-low-bg: rgba(77, 166, 255, 0.1);
    --color-info: #6b7280;
    --color-info-bg: rgba(107, 114, 128, 0.1);

    /* Status */
    --color-success: #2ed573;
    --color-success-bg: rgba(46, 213, 115, 0.1);
    --color-warning: #ffa502;
    --color-warning-bg: rgba(255, 165, 2, 0.1);
    --color-error: #ff4757;
    --color-error-bg: rgba(255, 71, 87, 0.1);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.8125rem;
    --font-size-base: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;

    /* Shadows — tinted with subtle color for depth */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(91, 123, 249, 0.15);

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 56px;
    --content-max-width: 1400px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* Light theme override */
[data-theme="light"] {
    --color-bg-primary: #f7f8fc;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #eef0f6;
    --color-bg-card: #ffffff;
    --color-bg-hover: #edf0f7;
    --color-bg-input: #f4f5f9;
    --color-text-primary: #151a2e;
    --color-text-secondary: #4a5068;
    --color-text-muted: #8990a5;
    --color-text-inverse: #ffffff;
    --color-border: #dde1eb;
    --color-border-light: #e8ecf4;
    --color-border-focus: #4f6ef7;
    --color-brand: #4f6ef7;
    --color-brand-hover: #3d5ce5;
    --color-brand-bg: rgba(79, 110, 247, 0.08);
    --color-brand-glow: rgba(79, 110, 247, 0.12);
    --color-critical: #dc2626;
    --color-high: #ea580c;
    --color-medium: #ca8a04;
    --color-low: #2563eb;
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-error: #dc2626;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(79, 110, 247, 0.08);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    line-height: 1.6;
}

/* Layout */
.app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: var(--header-height) 1fr;
    min-height: 100vh;
}

.app-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    backdrop-filter: blur(8px);
}

.app-sidebar {
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
    border-right: 1px solid var(--color-border);
    padding: var(--space-md) 0;
    overflow-y: auto;
}

.app-content {
    padding: var(--space-xl);
    overflow-y: auto;
    max-width: var(--content-max-width);
}

/* Sidebar Navigation */
.nav-section { margin-bottom: var(--space-lg); }

.nav-section-title {
    padding: var(--space-xs) var(--space-lg);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-item:hover { background: var(--color-bg-hover); color: var(--color-text-primary); }
.nav-item.active {
    background: var(--color-brand-bg);
    color: var(--color-brand);
    border-left-color: var(--color-brand);
    box-shadow: inset 3px 0 12px rgba(91, 123, 249, 0.08);
}

/* Cards */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover {
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.data-table thead th {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.data-table tbody td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    vertical-align: middle;
}

.data-table tbody tr:hover { background: var(--color-bg-hover); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-brand);
    color: #fff;
}
.btn-primary:hover { background: var(--color-brand-hover); box-shadow: 0 0 12px var(--color-brand-glow); }

.btn-secondary {
    background: transparent;
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-bg-hover); color: var(--color-text-primary); }

.btn-danger {
    background: var(--color-error);
    color: #fff;
}
.btn-danger:hover { opacity: 0.9; }

.btn-sm { padding: var(--space-xs) var(--space-sm); font-size: var(--font-size-xs); }
.btn-lg { padding: var(--space-md) var(--space-xl); font-size: var(--font-size-md); }

/* Forms */
.form-group { margin-bottom: var(--space-md); }

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: var(--font-size-sm);
    transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.15);
}

.form-textarea { resize: vertical; min-height: 80px; }
.form-select-sm { width: auto; min-width: 110px; padding: 2px 8px; font-size: var(--font-size-xs); }
.finding-link { color: var(--color-text-primary); text-decoration: none; }
.finding-link:hover { color: var(--color-brand); }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-critical { background: var(--color-critical-bg); color: var(--color-critical); }
.badge-high { background: var(--color-high-bg); color: var(--color-high); }
.badge-medium { background: var(--color-medium-bg); color: var(--color-medium); }
.badge-low { background: var(--color-low-bg); color: var(--color-low); }
.badge-info { background: var(--color-info-bg); color: var(--color-info); }
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-error { background: var(--color-error-bg); color: var(--color-error); }

/* Status badges */
.status-active { background: var(--color-success-bg); color: var(--color-success); }
.status-running { background: var(--color-brand-bg); color: var(--color-brand); }
.status-pending { background: rgba(245, 158, 11, 0.15); color: var(--color-warning); }
.status-failed { background: rgba(239, 68, 68, 0.15); color: var(--color-error); }
.status-completed { background: rgba(34, 197, 94, 0.15); color: var(--color-success); }

/* Progress bar */
.progress-bar {
    height: 6px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-brand);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.modal-title { font-size: var(--font-size-lg); font-weight: 600; }

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: var(--font-size-lg);
    padding: var(--space-xs);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    animation: slideIn var(--transition-normal) ease-out;
}

.toast-success { border-left: 3px solid var(--color-success); }
.toast-error { border-left: 3px solid var(--color-error); }
.toast-warning { border-left: 3px solid var(--color-warning); }
.toast-close { position: static; }
.toast-exit { opacity: 0; transform: translateX(100%); transition: opacity 0.3s, transform 0.3s; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
}

.pagination-btn {
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: var(--font-size-sm);
}

.pagination-btn:hover { background: var(--color-bg-hover); }
.pagination-btn.active { background: var(--color-brand); color: #fff; border-color: var(--color-brand); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Utility classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: var(--font-size-sm); }
.text-right { text-align: right; }
.font-mono { font-family: var(--font-mono); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.min-w-input { min-width: 200px; }
.min-w-input-lg { min-width: 240px; }
.min-w-select { min-width: 220px; }
.max-w-modal-sm { max-width: 500px; }
.max-w-modal-md { max-width: 550px; }
.max-w-modal-lg { max-width: 600px; }
.max-h-feed { max-height: 400px; }
.min-h-textarea { min-height: 100px; }
.overflow-auto { overflow: auto; }
.severity-dot-critical { background: var(--color-critical); }
.severity-dot-high { background: var(--color-high); }
.severity-dot-medium { background: var(--color-medium); }
.severity-dot-low { background: var(--color-low); }
.severity-dot-info { background: var(--color-info); }
.severity-stack { height: 12px; }
.severity-stack-mini { width: 80px; height: 6px; }

/* Report format options */
.format-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
.format-option { cursor: pointer; }
.format-option input[type="radio"] { display: none; }
.format-card {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-xs);
    padding: var(--space-md); border: 2px solid var(--color-border); border-radius: var(--radius-md);
    transition: all var(--transition-fast); text-align: center;
}
.format-card svg { color: var(--color-text-muted); transition: color var(--transition-fast); }
.format-name { font-weight: 600; font-size: var(--font-size-sm); }
.format-desc { font-size: var(--font-size-xs); color: var(--color-text-muted); }
.format-option.selected .format-card,
.format-option input:checked ~ .format-card { border-color: var(--color-brand); background: rgba(79, 110, 247, 0.05); }
.format-option.selected .format-card svg,
.format-option input:checked ~ .format-card svg { color: var(--color-brand); }
.format-option:hover .format-card { border-color: var(--color-brand-hover); }
.report-format-badge {
    display: inline-flex; align-items: center; padding: 2px 8px;
    border-radius: var(--radius-sm); font-size: var(--font-size-xs); font-weight: 600; text-transform: uppercase;
}
.format-pdf { background: #fef2f2; color: #dc2626; }
.format-html { background: #eff6ff; color: #2563eb; }
.format-json { background: #f0fdf4; color: #16a34a; }
.format-csv { background: #fefce8; color: #ca8a04; }
.report-actions { display: flex; gap: var(--space-xs); }
.btn-download {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
    font-size: var(--font-size-xs); font-weight: 500; color: var(--color-brand);
    background: transparent; border: 1px solid var(--color-brand); border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--transition-fast);
}
.btn-download:hover { background: var(--color-brand); color: white; }
.file-size { font-size: var(--font-size-xs); color: var(--color-text-muted); font-family: var(--font-mono); }
.hash-truncated { font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--color-text-muted); cursor: help; }

/* Page title */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.page-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.page-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    color: var(--color-text-muted);
}

.empty-state-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
}

/* Login page */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--color-bg-primary);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: var(--space-2xl);
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.login-logo h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-brand);
}

/* Header brand */
.header-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: var(--font-size-md);
}

/* Header search */
.header-search {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-md);
    min-width: 280px;
}

.header-search-input {
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: var(--font-size-sm);
    outline: none;
    width: 100%;
}

.header-search-input::placeholder { color: var(--color-text-muted); }
.header-search .kbd { flex-shrink: 0; }

/* Icon button */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover { background: var(--color-bg-hover); color: var(--color-text-primary); }

/* User menu */
.user-menu { position: relative; }

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-menu-trigger:hover { background: var(--color-bg-hover); }

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--color-brand-bg);
    color: var(--color-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 600;
}
.user-avatar-sm { width: 32px; height: 32px; font-size: 11px; }

.user-name { font-size: var(--font-size-sm); }

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + var(--space-xs));
    right: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    padding: var(--space-sm) 0;
}

.user-menu-info { padding: var(--space-sm) var(--space-md); }
.menu-divider { border: none; border-top: 1px solid var(--color-border); margin: var(--space-xs) 0; }

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.menu-item:hover { background: var(--color-bg-hover); color: var(--color-text-primary); }

/* Sidebar footer */
.sidebar-footer {
    position: sticky;
    bottom: 0;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
}

.system-info { padding: var(--space-xs) 0; }

/* Sidebar collapsed */
.app-layout.sidebar-collapsed { grid-template-columns: 0 1fr; }
.app-layout.sidebar-collapsed .app-sidebar { display: none; }

/* Toolbar / filter bar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.filter-group .form-select,
.filter-group .form-input {
    width: auto;
    min-width: 140px;
}

/* Tab navigation */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
    gap: var(--space-xs);
}

.tab {
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.tab:hover { color: var(--color-text-primary); }
.tab.active { color: var(--color-brand); border-bottom-color: var(--color-brand); }

/* Detail page header */
.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    gap: var(--space-md);
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }

/* Key-value pair */
.kv-pair { margin-bottom: var(--space-md); }
.kv-label { font-size: var(--font-size-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-xs); }
.kv-value { font-size: var(--font-size-sm); color: var(--color-text-primary); }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--color-bg-tertiary) 25%, var(--color-bg-hover) 50%, var(--color-bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text { height: 14px; margin-bottom: var(--space-sm); }
.skeleton-text:last-child { width: 60%; }
.skeleton-card { height: 100px; }

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

/* Sortable table header */
.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--color-text-primary); }
.sort-icon { display: inline-block; margin-left: var(--space-xs); font-size: 10px; }

/* Chart container */
.chart-container { position: relative; height: 250px; }

/* ============================================================
   PHASE 1: New CSS Components
   ============================================================ */

/* Modal size variants */
.modal-sm { max-width: 400px; }
.modal-md { max-width: 600px; }
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1000px; }

/* Form validation states */
.form-input-error { border-color: var(--color-error) !important; }
.form-input-error:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important; }
.form-error { color: var(--color-error); font-size: var(--font-size-xs); margin-top: var(--space-xs); }
.form-hint { color: var(--color-text-muted); font-size: var(--font-size-xs); margin-top: var(--space-xs); }
.form-alert {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
}
.form-alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--color-error); color: var(--color-error); }
.form-alert-success { background: rgba(34, 197, 94, 0.1); border: 1px solid var(--color-success); color: var(--color-success); }
.form-alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid var(--color-warning); color: var(--color-warning); }

/* Button variants */
.btn-ghost { background: transparent; color: var(--color-text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--color-bg-hover); color: var(--color-text-primary); }
.btn-outline { background: transparent; color: var(--color-brand); border-color: var(--color-brand); }
.btn-outline:hover { background: var(--color-brand); color: #fff; }
.btn-success { background: var(--color-success); color: #fff; border-color: transparent; }
.btn-success:hover { opacity: 0.9; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled, .btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Checkbox & Radio labels */
.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}
.checkbox-label:hover, .radio-label:hover { background: var(--color-bg-hover); }
.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    accent-color: var(--color-brand);
    width: 16px;
    height: 16px;
}

/* Scrollable list container (plugin selection, roles, etc.) */
.scroll-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
}

/* Code block for evidence/JSON display */
.code-block {
    background: var(--color-bg-tertiary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid var(--color-border);
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.5;
}

/* Table column width utilities */
.col-truncate-xs { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-truncate-sm { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-truncate-md { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-truncate-lg { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cell actions alignment */
.cell-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: flex-end;
}

/* Plugin card styles */
.plugin-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}
.plugin-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.plugin-card-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
    min-height: 40px;
    flex: 1;
}
.plugin-card-footer {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Severity labels (inline color variants) */
.severity-label { display: inline-block; min-width: 60px; font-weight: 600; font-size: var(--font-size-xs); text-transform: uppercase; letter-spacing: 0.03em; }
.severity-label-critical { color: var(--color-critical); }
.severity-label-high { color: var(--color-high); }
.severity-label-medium { color: var(--color-medium); }
.severity-label-low { color: var(--color-low); }
.severity-label-info { color: var(--color-info); }

/* Severity stat card accents */
.stat-card-critical { border-left: 3px solid var(--color-critical); }
.stat-card-high { border-left: 3px solid var(--color-high); }
.stat-card-medium { border-left: 3px solid var(--color-medium); }
.stat-card-low { border-left: 3px solid var(--color-low); }
.stat-card-info { border-left: 3px solid var(--color-info); }
.stat-card-brand { border-left: 3px solid var(--color-brand); }
.stat-card-success { border-left: 3px solid var(--color-success); }

/* Chart helpers */
.trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 200px;
    padding-bottom: 28px;
    position: relative;
}
.trend-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.trend-bar-pair { display: flex; gap: 1px; align-items: flex-end; height: 170px; }
.trend-bar { width: 6px; border-radius: 2px 2px 0 0; min-height: 2px; transition: height var(--transition-normal); }
.trend-bar-label {
    font-size: 9px;
    color: var(--color-text-muted);
    position: absolute;
    bottom: 0;
    white-space: nowrap;
    transform: rotate(-30deg);
    transform-origin: top left;
}
.chart-legend {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}
.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: var(--space-xs);
}

/* Inline progress bar */
.progress-bar-inline { width: 80px; display: inline-block; vertical-align: middle; }

/* Severity stacked bar */
.severity-stack {
    display: flex;
    height: 8px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--color-bg-tertiary);
}
.severity-stack-segment { height: 100%; transition: width var(--transition-normal); }
.severity-stack-row { display: flex; align-items: center; gap: var(--space-md); }
.severity-stack-bar { flex: 1; display: flex; border-radius: var(--radius-full); overflow: hidden; background: var(--color-bg-tertiary); }
.severity-stack-bar .severity-stack-segment { transition: width var(--transition-normal); }

/* Severity summary bar (findings page) */
.severity-summary-bar {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.severity-summary-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}
.severity-summary-item:hover { background: var(--color-bg-hover); }
.severity-summary-item.active { background: var(--color-bg-hover); }
.severity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.severity-count { font-weight: 700; font-size: var(--font-size-lg); font-family: var(--font-mono); }
.severity-label-text { font-size: var(--font-size-sm); color: var(--color-text-muted); }

/* Checkbox in table rows */
.row-checkbox { width: 16px; height: 16px; cursor: pointer; accent-color: var(--color-brand); }
.row-focused { background: var(--color-bg-hover) !important; outline: 1px solid var(--color-border-focus); outline-offset: -1px; }

/* Drawer (side panel) */
.drawer {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background: var(--color-bg-card);
    border-left: 1px solid var(--color-border);
    z-index: 500;
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.drawer.open { right: 0; }
.drawer-header {
    position: sticky;
    top: 0;
    background: var(--color-bg-card);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drawer-content { padding: var(--space-lg); flex: 1; }
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 499;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

/* CVSS score badge */
.cvss-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 700;
    font-family: var(--font-mono);
}
.cvss-critical { background: rgba(239, 68, 68, 0.15); color: var(--color-critical); }
.cvss-high { background: rgba(249, 115, 22, 0.15); color: var(--color-high); }
.cvss-medium { background: rgba(234, 179, 8, 0.15); color: var(--color-medium); }
.cvss-low { background: rgba(59, 130, 246, 0.15); color: var(--color-low); }

/* Dropdown menu */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + var(--space-xs));
    right: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 200;
    padding: var(--space-xs) 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}
.dropdown-menu.open { opacity: 1; visibility: visible; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    background: none;
    border: none;
    width: 100%;
    font-family: inherit;
    text-align: left;
}
.dropdown-item:hover { background: var(--color-bg-hover); color: var(--color-text-primary); }

/* Bulk actions bar */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-brand-bg);
    border: 1px solid rgba(79, 110, 247, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
}
.breadcrumb-sep { color: var(--color-text-muted); font-size: var(--font-size-xs); }
.breadcrumb-link { color: var(--color-text-muted); text-decoration: none; transition: color var(--transition-fast); }
.breadcrumb-link:hover { color: var(--color-text-primary); }
.breadcrumb-current { color: var(--color-text-primary); font-weight: 500; }

/* Nav badge (count) */
.nav-badge {
    background: var(--color-critical);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    margin-left: auto;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* Keyboard shortcut hint */
.kbd {
    display: inline-block;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Progress ring (circular SVG) */
.progress-ring { width: 80px; height: 80px; }
.progress-ring-circle {
    transition: stroke-dashoffset 0.5s ease;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}
.timeline-item { position: relative; padding-bottom: var(--space-lg); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-bg-primary);
}
.timeline-dot-active { border-color: var(--color-brand); background: var(--color-brand); }
.timeline-dot-success { border-color: var(--color-success); background: var(--color-success); }
.timeline-dot-error { border-color: var(--color-error); background: var(--color-error); }

/* Live feed animation */
.feed-item-enter { animation: fadeSlideIn 0.3s ease-out; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scan status bar (compact) */
.scan-status-bar {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

/* Risk gauge */
.risk-gauge { position: relative; width: 160px; height: 80px; overflow: hidden; margin: 0 auto; }
.risk-score { font-size: var(--font-size-2xl); font-weight: 800; line-height: 1; }
.risk-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* Quick action cards */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.quick-action-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
}
.quick-action-card:hover { border-color: var(--color-brand); background: var(--color-brand-bg); }

/* Stat card trend indicator */
.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    margin-top: var(--space-xs);
}
.stat-trend-up { color: var(--color-error); }
.stat-trend-down { color: var(--color-success); }
.stat-trend-neutral { color: var(--color-text-muted); }

/* Login split layout */
.login-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-2xl);
}
.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    background: var(--color-bg-primary);
}

/* Input group with icon */
.input-group { position: relative; }
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    display: flex;
}
.input-action {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}
.form-input-icon { padding-left: 38px; }

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: var(--color-text-muted);
    border-radius: 50%;
    transition: all var(--transition-fast);
}
.toggle-switch input:checked + .toggle-slider { background: var(--color-brand); border-color: var(--color-brand); }
.toggle-switch input:checked + .toggle-slider::before { background: #fff; transform: translateX(18px); }

/* Word break utilities */
.word-break-all { word-break: break-all; }
.whitespace-nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.text-xs { font-size: var(--font-size-xs); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.color-brand { color: var(--color-brand); }
.color-success { color: var(--color-success); }
.color-error { color: var(--color-error); }
.color-warning { color: var(--color-warning); }
.ml-auto { margin-left: auto; }
.text-right { text-align: right; }
.overflow-auto { overflow-x: auto; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* Notification dot */
.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: var(--color-critical);
    border-radius: 50%;
}

/* Mobile sidebar drawer */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 499;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 1200px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .drawer { width: 60%; right: -60%; }
}

@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .app-content { padding: var(--space-lg); }
    .login-split { grid-template-columns: 1fr; }
    .login-branding { display: none; }
    .drawer { width: 70%; right: -70%; }
    .quick-actions { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .app-layout { grid-template-columns: 1fr; }
    .app-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 500;
        transition: left var(--transition-normal);
    }
    .app-sidebar.mobile-open { left: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .header-search { display: none; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .modal { width: 95%; max-width: none !important; }
    .data-table { font-size: var(--font-size-xs); }
    .drawer { width: 90%; right: -90%; }
    .page-header { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: stretch; gap: var(--space-md); }
    .app-content { padding: var(--space-md); }
    .filter-group { flex-direction: column; }
    .filter-group .form-select, .filter-group .form-input { width: 100%; min-width: 0; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

/* Focus visible ring — keyboard-only focus indicator */
:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) { outline: none; }

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-brand);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    z-index: 1000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
    transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .toast-enter, .feed-item-enter { animation: none !important; }
}

/* Print styles */
@media print {
    .app-sidebar, .app-header, .toast-container,
    .sidebar-overlay, .modal-overlay, .drawer-overlay,
    .btn, .filter-group, .toolbar, .pagination,
    .bulk-actions, .quick-actions { display: none !important; }

    .app-layout { display: block !important; }
    .app-content { padding: 0 !important; }
    .card { border: 1px solid #ccc; break-inside: avoid; }
    .data-table { font-size: 10pt; }
    .badge { border: 1px solid currentColor; }

    body {
        color: #000 !important;
        background: #fff !important;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .badge, .btn, .form-input, .form-select {
        border: 1px solid ButtonText;
    }
    .progress-bar-fill { forced-color-adjust: none; }
    .severity-stack-segment { forced-color-adjust: none; }
}
