/* RealCV Design System - Trust & Intelligence Theme */

/* Import fonts - Inter for headings, body, and data */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Primary brand colors - Deep Indigo/Navy for enterprise feel */
    --realcv-brand: #1E293B;
    --realcv-brand-dark: #0F172A;
    --realcv-brand-light: #334155;

    /* Primary action color - Electric Blue for CTAs */
    --realcv-primary: #2563EB;
    --realcv-primary-dark: #1D4ED8;
    --realcv-primary-light: #3B82F6;

    /* Status colors - Trust palette */
    --realcv-verified: #10B981;      /* Emerald Green */
    --realcv-verified-light: #D1FAE5;
    --realcv-verified-dark: #059669;

    --realcv-warning: #F59E0B;       /* Amber */
    --realcv-warning-light: #FEF3C7;
    --realcv-warning-dark: #D97706;

    --realcv-danger: #E11D48;        /* Rose Red */
    --realcv-danger-light: #FFE4E6;
    --realcv-danger-dark: #BE123C;

    --realcv-info: #0EA5E9;          /* Sky Blue */
    --realcv-info-light: #E0F2FE;

    --realcv-accent: #60A5FA;        /* Light Blue - accent for dark backgrounds */

    --realcv-neutral: #64748B;       /* Slate */
    --realcv-neutral-light: #F1F5F9;

    /* Neutral palette - cool tones */
    --realcv-gray-50: #F8FAFC;
    --realcv-gray-100: #F1F5F9;
    --realcv-gray-200: #E2E8F0;
    --realcv-gray-300: #CBD5E1;
    --realcv-gray-400: #94A3B8;
    --realcv-gray-500: #64748B;
    --realcv-gray-600: #475569;
    --realcv-gray-700: #334155;
    --realcv-gray-800: #1E293B;
    --realcv-gray-900: #0F172A;

    /* Surface colors */
    --realcv-bg-page: #F8FAFC;
    --realcv-bg-surface: #FFFFFF;
    --realcv-bg-muted: #F1F5F9;
    --realcv-bg-elevated: #FFFFFF;

    /* Footer & header */
    --realcv-header-bg: #FFFFFF;
    --realcv-footer-bg: #0F172A;

    /* Shadows */
    --realcv-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --realcv-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --realcv-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --realcv-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Border radius */
    --realcv-radius-sm: 6px;
    --realcv-radius: 8px;
    --realcv-radius-md: 12px;
    --realcv-radius-lg: 16px;
    --realcv-radius-xl: 24px;

    /* Transitions */
    --realcv-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --realcv-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--realcv-gray-700);
    background-color: var(--realcv-bg-page);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: default;
}

/* Universal default cursor - prevents text cursor on non-editable elements */
* {
    cursor: inherit;
}

/* Prevent text cursor and selection on non-editable elements */
h1, h2, h3, h4, h5, h6, p, span, div, section, article, header, footer, nav, main, aside,
label, li, ul, ol, table, tr, td, th, thead, tbody, tfoot, img, svg, picture, figure,
path, circle, rect, line, polyline, polygon, ellipse, g, use, text, tspan,
.card, .btn, .alert, .badge, .nav-link, .dropdown-item, .dropdown-toggle,
.breadcrumb, .breadcrumb-item, .progress, .progress-bar, .spinner-border,
.score-ring, .score-ring-container, .stat-card, .stat-item, .feature-card,
.employment-row, .timeline-segment, .file-type-icon,
[role="status"], [role="progressbar"], [role="presentation"],
.modal, .modal-content, .modal-header, .modal-body, .modal-footer,
.tooltip, .popover, .dropdown-menu, .list-group-item,
small, strong, em, b, i, u, mark, del, ins, sub, sup, code, pre, blockquote,
::before, ::after {
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Ensure form inputs still have text cursor and text selection */
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="url"], input[type="tel"], input[type="number"], textarea,
[contenteditable="true"] {
    cursor: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Select dropdowns need auto cursor */
select {
    cursor: pointer !important;
}

/* Checkboxes should have pointer cursor */
input[type="checkbox"], input[type="radio"], .form-check-input {
    cursor: pointer;
}

/* Buttons and links should have pointer cursor */
a, button, [role="button"], .btn, .btn-close, .navbar-toggler,
input[type="submit"], input[type="button"], input[type="reset"],
.collapsible-header, .drop-zone {
    cursor: pointer;
}

/* Typography */
h1, .h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--realcv-gray-900);
}

h2, .h2 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--realcv-gray-900);
}

h3, .h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--realcv-gray-800);
}

h4, .h4, h5, .h5 {
    font-weight: 600;
    color: var(--realcv-gray-800);
}

/* Tabular numbers for data */
.font-mono, .data-value, .score-value, .date-value, .ref-id {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'tnum' on, 'lnum' on;
    font-weight: 600;
}

/* Links */
a, .btn-link {
    color: var(--realcv-primary);
    transition: color var(--realcv-transition);
}

a:hover {
    color: var(--realcv-primary-dark);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--realcv-radius);
    padding: 0.625rem 1.25rem;
    transition: all var(--realcv-transition);
    user-select: none;
    border: none;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    border-radius: var(--realcv-radius-md);
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    border-radius: var(--realcv-radius-sm);
    font-size: 0.875rem;
}

/* Primary button - Electric Blue */
.btn-primary {
    color: #fff;
    background-color: var(--realcv-primary);
    box-shadow: var(--realcv-shadow-sm), 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--realcv-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--realcv-shadow), 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary/outline button */
.btn-outline-primary {
    color: var(--realcv-primary);
    border: 1.5px solid var(--realcv-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--realcv-primary);
    border-color: var(--realcv-primary);
}

/* Light button */
.btn-light {
    background-color: var(--realcv-gray-100);
    color: var(--realcv-gray-700);
    border: 1px solid var(--realcv-gray-200);
}

.btn-light:hover {
    background-color: var(--realcv-gray-200);
    color: var(--realcv-gray-800);
}

/* Danger button */
.btn-danger {
    background-color: var(--realcv-danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: var(--realcv-danger-dark);
}

.btn-outline-danger {
    color: var(--realcv-danger);
    border: 1.5px solid var(--realcv-danger);
    background: transparent;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: var(--realcv-danger);
}

/* Focus states */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--realcv-primary);
    outline-offset: 2px;
    box-shadow: none;
}

/* Cards - Elevated style */
.card {
    border-radius: var(--realcv-radius-lg);
    border: 1px solid var(--realcv-gray-200);
    background-color: var(--realcv-bg-surface);
    box-shadow: var(--realcv-shadow-sm);
    transition: box-shadow var(--realcv-transition), transform var(--realcv-transition);
}

.card:hover {
    box-shadow: var(--realcv-shadow);
}

.card-header {
    border-radius: var(--realcv-radius-lg) var(--realcv-radius-lg) 0 0 !important;
    background-color: var(--realcv-bg-surface);
    border-bottom: 1px solid var(--realcv-gray-200);
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Stat cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    opacity: 0.1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.stat-card .stat-value {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--realcv-gray-900);
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--realcv-gray-600);
    font-weight: 500;
}

/* Stat card icons */
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--realcv-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-primary {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: var(--realcv-primary);
}

.stat-icon-success {
    background: linear-gradient(135deg, var(--realcv-verified-light) 0%, #A7F3D0 100%);
    color: var(--realcv-verified-dark);
}

.stat-icon-warning {
    background: linear-gradient(135deg, var(--realcv-warning-light) 0%, #FDE68A 100%);
    color: var(--realcv-warning-dark);
}

.stat-icon-danger {
    background: linear-gradient(135deg, var(--realcv-danger-light) 0%, #FECACA 100%);
    color: var(--realcv-danger-dark);
}

/* Better shadow hierarchy */
.shadow-sm {
    box-shadow: var(--realcv-shadow-sm) !important;
}

.shadow {
    box-shadow: var(--realcv-shadow) !important;
}

.shadow-md {
    box-shadow: var(--realcv-shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--realcv-shadow-lg) !important;
}

/* Tables */
.table {
    --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
    padding: 1rem 0.875rem;
    vertical-align: middle;
}

.table thead th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--realcv-gray-600);
    border-bottom: 2px solid var(--realcv-gray-200);
    background-color: var(--realcv-bg-muted);
}

.table tbody tr {
    transition: background-color var(--realcv-transition);
}

.table-hover > tbody > tr:hover {
    background-color: var(--realcv-gray-50);
}

.table tbody td {
    border-bottom: 1px solid var(--realcv-gray-100);
}

/* Badges - Soft style */
.badge {
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.375em 0.75em;
    border-radius: var(--realcv-radius-sm);
}

.badge-soft-success, .bg-success-subtle {
    background-color: var(--realcv-verified-light) !important;
    color: var(--realcv-verified-dark) !important;
}

.badge-soft-warning, .bg-warning-subtle {
    background-color: var(--realcv-warning-light) !important;
    color: var(--realcv-warning-dark) !important;
}

.badge-soft-danger, .bg-danger-subtle {
    background-color: var(--realcv-danger-light) !important;
    color: var(--realcv-danger-dark) !important;
}

.badge-soft-info, .bg-info-subtle {
    background-color: var(--realcv-info-light) !important;
    color: #0369A1 !important;
}

.badge-soft-neutral, .bg-secondary-subtle {
    background-color: var(--realcv-neutral-light) !important;
    color: var(--realcv-gray-600) !important;
}

.bg-primary-subtle {
    background-color: #DBEAFE !important;
    color: var(--realcv-primary-dark) !important;
}

/* Score badges - circular */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.score-badge-sm {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
}

.score-badge-lg {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
}

.score-high {
    background-color: var(--realcv-verified-light);
    color: var(--realcv-verified-dark);
    border: 2px solid var(--realcv-verified);
}

.score-medium {
    background-color: var(--realcv-warning-light);
    color: var(--realcv-warning-dark);
    border: 2px solid var(--realcv-warning);
}

.score-low {
    background-color: var(--realcv-danger-light);
    color: var(--realcv-danger-dark);
    border: 2px solid var(--realcv-danger);
}

/* Score colors for text */
.text-score-high { color: var(--realcv-verified) !important; }
.text-score-medium { color: var(--realcv-warning) !important; }
.text-score-low { color: var(--realcv-danger) !important; }

.bg-score-high { background-color: var(--realcv-verified-light) !important; }
.bg-score-medium { background-color: var(--realcv-warning-light) !important; }
.bg-score-low { background-color: var(--realcv-danger-light) !important; }

/* Status pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-pill-success {
    background-color: var(--realcv-verified-light);
    color: var(--realcv-verified-dark);
}

.status-pill-success::before {
    background-color: var(--realcv-verified);
}

.status-pill-warning {
    background-color: var(--realcv-warning-light);
    color: var(--realcv-warning-dark);
}

.status-pill-warning::before {
    background-color: var(--realcv-warning);
}

.status-pill-danger {
    background-color: var(--realcv-danger-light);
    color: var(--realcv-danger-dark);
}

.status-pill-danger::before {
    background-color: var(--realcv-danger);
}

.status-pill-neutral {
    background-color: var(--realcv-neutral-light);
    color: var(--realcv-gray-600);
}

.status-pill-neutral::before {
    background-color: var(--realcv-gray-400);
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--realcv-radius);
    border: 1.5px solid var(--realcv-gray-300);
    padding: 0.75rem 1rem;
    transition: border-color var(--realcv-transition), box-shadow var(--realcv-transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--realcv-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--realcv-gray-400);
}

.form-label {
    font-weight: 500;
    color: var(--realcv-gray-700);
    margin-bottom: 0.5rem;
}

/* Form check (checkboxes) */
.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    border: 1.5px solid var(--realcv-gray-300);
    border-radius: 4px;
}

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

/* Table header backgrounds */
.table-light, .bg-light {
    background-color: var(--realcv-bg-muted) !important;
}

/* Hero section for landing */
.hero-section {
    background: linear-gradient(135deg, var(--realcv-brand) 0%, #312E81 50%, #1E1B4B 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Feature cards with hover effect */
.feature-card {
    transition: transform var(--realcv-transition-slow), box-shadow var(--realcv-transition-slow);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--realcv-shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--realcv-radius-md);
    background: linear-gradient(135deg, var(--realcv-primary) 0%, var(--realcv-primary-dark) 100%);
    color: white;
}

/* Upload/drop zone */
.drop-zone {
    border: 2px dashed var(--realcv-gray-300);
    border-radius: var(--realcv-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--realcv-gray-50);
    transition: all var(--realcv-transition);
    cursor: pointer;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--realcv-primary);
    background-color: rgba(37, 99, 235, 0.05);
}

.drop-zone.drag-over {
    transform: scale(1.01);
}

.drop-zone-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--realcv-gray-400);
    transition: color var(--realcv-transition), transform var(--realcv-transition);
}

.drop-zone:hover .drop-zone-icon {
    color: var(--realcv-primary);
    transform: translateY(-4px);
}

/* Score ring (for report page) */
.score-ring-container {
    position: relative;
    width: 160px;
    height: 160px;
}

.score-ring-bg {
    fill: none;
    stroke: var(--realcv-gray-200);
    stroke-width: 8;
}

.score-ring-progress {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transform-origin: center;
    transform: rotate(-90deg);
    transition: stroke-dasharray 1s ease-out;
}

.score-ring-progress.high { stroke: var(--realcv-verified); }
.score-ring-progress.medium { stroke: var(--realcv-warning); }
.score-ring-progress.low { stroke: var(--realcv-danger); }

/* Collapsible sections */
.collapsible-card {
    border: 1px solid var(--realcv-gray-200);
    border-radius: var(--realcv-radius-md);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.collapsible-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background-color: var(--realcv-bg-surface);
    cursor: pointer;
    transition: background-color var(--realcv-transition);
}

.collapsible-header:hover {
    background-color: var(--realcv-gray-50);
}

.collapsible-body {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--realcv-gray-100);
    background-color: var(--realcv-gray-50);
}

/* Flag severity indicators */
.flag-severity {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.flag-severity-high {
    color: var(--realcv-danger);
}

.flag-severity-medium {
    color: var(--realcv-warning);
}

.flag-severity-low {
    color: var(--realcv-info);
}

/* Timeline visualization */
.timeline-bar {
    height: 32px;
    background-color: var(--realcv-gray-100);
    border-radius: var(--realcv-radius);
    position: relative;
    overflow: hidden;
}

.timeline-segment {
    position: absolute;
    top: 4px;
    bottom: 4px;
    border-radius: 4px;
    transition: opacity var(--realcv-transition);
}

.timeline-segment:hover {
    opacity: 0.9;
}

.timeline-segment-employment {
    background-color: var(--realcv-primary);
}

.timeline-segment-gap {
    background: repeating-linear-gradient(
        45deg,
        var(--realcv-danger-light),
        var(--realcv-danger-light) 4px,
        transparent 4px,
        transparent 8px
    );
    border: 1px dashed var(--realcv-danger);
}

/* Navbar customization */
.navbar {
    background-color: var(--realcv-header-bg) !important;
    border-bottom: 1px solid var(--realcv-gray-200);
}

.navbar-brand {
    font-weight: 700;
}

.nav-link {
    color: var(--realcv-gray-600) !important;
    font-weight: 500;
    transition: color var(--realcv-transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--realcv-primary) !important;
}

/* Footer */
footer {
    background-color: var(--realcv-footer-bg) !important;
}

/* Content area */
.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

/* Form validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--realcv-verified);
}

.invalid {
    outline: 1px solid var(--realcv-danger);
}

.validation-message {
    color: var(--realcv-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Blazor error boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: var(--realcv-radius);
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: var(--realcv-gray-400);
}

/* Utility classes */
.cursor-pointer {
    cursor: pointer;
    user-select: none;
}

.text-muted {
    color: var(--realcv-gray-600) !important;
}

.text-warning {
    color: #b45309 !important; /* Darker amber for better contrast on white (4.8:1 ratio) */
}

/* Row selection highlight */
.table tbody tr.selected {
    background-color: rgba(37, 99, 235, 0.08) !important;
}

/* Comparison view for verification */
.comparison-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--realcv-gray-100);
}

.comparison-claim, .comparison-record {
    padding: 0.75rem;
    border-radius: var(--realcv-radius);
    background-color: var(--realcv-gray-50);
}

.comparison-status {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.comparison-status-match {
    background-color: var(--realcv-verified-light);
    color: var(--realcv-verified);
}

.comparison-status-mismatch {
    background-color: var(--realcv-danger-light);
    color: var(--realcv-danger);
}

/* Alerts */
.alert {
    border-radius: var(--realcv-radius-md);
    border: none;
}

.alert-info {
    background-color: var(--realcv-info-light);
    color: #0369A1;
}

.alert-warning {
    background-color: var(--realcv-warning-light);
    color: var(--realcv-warning-dark);
}

.alert-danger {
    background-color: var(--realcv-danger-light);
    color: var(--realcv-danger-dark);
}

.alert-success {
    background-color: var(--realcv-verified-light);
    color: var(--realcv-verified-dark);
}

/* Modal improvements */
.modal-content {
    border-radius: var(--realcv-radius-lg);
    border: none;
    box-shadow: var(--realcv-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--realcv-gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--realcv-gray-200);
    padding: 1rem 1.5rem;
}

/* Loading states */
.loading-placeholder .placeholder {
    background-color: var(--realcv-gray-200);
    border-radius: var(--realcv-radius);
}

/* Breadcrumbs */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0.5rem;
}

.breadcrumb-item a {
    color: var(--realcv-gray-600);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--realcv-primary);
}

.breadcrumb-item.active {
    color: var(--realcv-gray-600);
}

/* Security badge for upload */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--realcv-gray-600);
    margin-top: 1rem;
}

.security-badge svg {
    width: 16px;
    height: 16px;
    color: var(--realcv-verified);
}

/* ==========================================
   Auth Pages - Split Layout
   ========================================== */

.auth-container {
    display: flex;
    min-height: 100vh;
    margin: -1.5rem -0.75rem; /* Offset container padding */
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--realcv-bg-surface);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-brand-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--realcv-brand) 0%, var(--realcv-brand-dark) 100%);
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 480px;
    text-align: center;
}

.auth-logo {
    height: 48px;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--realcv-gray-900);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--realcv-gray-600);
    margin-bottom: 2rem;
}

.auth-brand-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand-icon svg {
    color: var(--realcv-accent);
}

.auth-brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.auth-brand-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.auth-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

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

.auth-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--realcv-accent);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

.auth-testimonial {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--realcv-radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
}

.auth-testimonial blockquote {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.auth-testimonial cite {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: normal;
}

.auth-features {
    text-align: left;
    margin-bottom: 2rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.auth-feature svg {
    flex-shrink: 0;
    color: var(--realcv-verified);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--realcv-gray-200);
}

.auth-divider span {
    position: relative;
    background: var(--realcv-bg-surface);
    padding: 0 1rem;
    color: var(--realcv-gray-600);
    font-size: 0.875rem;
}

/* Input with icon styling */
.input-group-icon {
    position: relative;
}

.input-group-icon svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--realcv-gray-400);
    z-index: 5;
    pointer-events: none;
}

.input-group-icon input,
.input-group-icon .form-control {
    padding-left: 2.75rem;
}

.input-group-icon:focus-within svg {
    color: var(--realcv-primary);
}

/* Responsive auth layout */
@media (max-width: 991.98px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-brand-side {
        display: none;
    }

    .auth-form-side {
        min-height: 100vh;
    }
}

@media (min-width: 992px) {
    .auth-form-side {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .auth-brand-side {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
