:root {
    --cp-blue: #174ea6;
    --cp-blue-dark: #103d83;
    --cp-ink: #172033;
    --cp-muted: #64748b;
    --cp-surface: #ffffff;
    --cp-page: #f3f6fb;
    --cp-border: #e2e8f0;
}

body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--cp-ink); background: var(--cp-page); }
[x-cloak] { display: none !important; }
.app-content { min-height: calc(100vh - 8rem); background: radial-gradient(circle at top right, #e8f0ff 0, transparent 33rem), var(--cp-page); }
.app-content > .container-fluid { max-width: 1440px; margin: 0 auto; }
.app-header { min-height: 68px; box-shadow: 0 1px 0 rgba(15, 23, 42, .06); }
.app-header .btn-link { padding: .45rem .6rem; border-radius: .6rem; }
.app-header .btn-link:hover { background: #eef4ff; }

.app-sidebar { background: #1f252b !important; }
.sidebar-brand { border-color: rgba(255, 255, 255, .1) !important; }
.sidebar-brand .brand-link { color: #fff; text-decoration: none; font-size: 1.2rem; }
.app-sidebar .nav-link { margin: .16rem .55rem; padding: .78rem .9rem; color: #d4dce8; border-radius: .55rem; transition: background .18s ease, color .18s ease; }
.app-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.app-sidebar .nav-link.active { color: #fff; background: linear-gradient(100deg, #285db6, #174ea6); box-shadow: 0 6px 16px rgba(0, 0, 0, .16); }
.app-sidebar .nav-link.active .nav-icon { color: #fff; }
.nav-header { padding: 1.25rem 1.45rem .45rem !important; color: #9babc0 !important; font-size: .68rem !important; font-weight: 750 !important; letter-spacing: .08em; }

.card { border-radius: .9rem; }
.card-header { padding: 1rem 1.25rem; border-color: var(--cp-border); }
.card-footer { border-color: var(--cp-border); }
.btn { min-height: 40px; border-radius: .55rem; font-weight: 600; }
.btn-primary { border-color: var(--cp-blue); background: var(--cp-blue); box-shadow: 0 4px 10px rgba(23, 78, 166, .18); }
.btn-primary:hover, .btn-primary:focus { border-color: var(--cp-blue-dark); background: var(--cp-blue-dark); }
.form-label { margin-bottom: .42rem; font-size: .88rem; font-weight: 650; color: #334155; }
.form-control, .form-select { min-height: 46px; border-color: #d7e0ec; border-radius: .58rem; color: var(--cp-ink); }
.form-control::placeholder { color: #94a3b8; }
.form-control:focus, .form-select:focus { border-color: #78a5ed; box-shadow: 0 0 0 .22rem rgba(23, 78, 166, .12); }
.form-check-input:checked { background-color: var(--cp-blue); border-color: var(--cp-blue); }

.form-page { max-width: 1180px; }
.page-intro > a { display: inline-flex; align-items: center; gap: .25rem; color: var(--cp-blue); font-weight: 600; }
.page-intro h1 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); font-weight: 750; letter-spacing: -.025em; }
.page-intro p { font-size: 1rem; }
.wizard-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; margin: 0 0 1.5rem; }
.wizard-step-indicator { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; position: relative; min-width: 0; min-height: 66px; padding-bottom: .9rem; color: var(--cp-muted); font-size: .84rem; font-weight: 600; }
.wizard-step-indicator:not(:last-child)::after { content: ""; position: absolute; z-index: 0; right: 0; bottom: 0; left: 0; height: 2px; background: #dbe4f0; }
.step-number { z-index: 1; display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border: 2px solid #dbe4f0; border-radius: 50%; background: #fff; color: #64748b; font-size: .78rem; font-weight: 750; }
.step-label { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.wizard-step-indicator.active { color: var(--cp-blue); }
.wizard-step-indicator.active .step-number { border-color: var(--cp-blue); background: var(--cp-blue); color: #fff; box-shadow: 0 4px 10px rgba(23, 78, 166, .24); }
.wizard-step-indicator.done .step-number { border-color: #198754; background: #198754; color: #fff; }
.wizard-step-indicator.done:not(:last-child)::after { background: #8dc8a7; }
.wizard-card { overflow: hidden; box-shadow: 0 12px 30px rgba(35, 51, 78, .08) !important; }
.wizard-card .card-body { min-height: 360px; }
.wizard-card h2 { font-weight: 720; letter-spacing: -.015em; }
.wizard-footer { min-height: 68px; padding: .85rem 1.25rem; }

.metric-card .card-body { position: relative; min-height: 145px; }
.metric-card h2 { margin: .25rem 0 .5rem; font-size: 1.85rem; }
.metric-icon, .feature-icon { display: grid; width: 42px; height: 42px; margin-bottom: .8rem; border-radius: 12px; place-items: center; font-size: 1.25rem; }
.metric-icon { position: absolute; top: 1rem; right: 1rem; }
.dashboard-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 1rem; color: #fff; background: linear-gradient(115deg, #123d81, #1c62be 62%, #367ee0); box-shadow: 0 15px 32px rgba(23, 78, 166, .22); }
.dashboard-hero h1 { margin: .4rem 0 .35rem; color: #fff; font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 760; letter-spacing: -.03em; }
.dashboard-hero p { max-width: 46rem; color: rgba(255,255,255,.84); }
.dashboard-eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: #dbeafe; }
.dashboard-hero-action { color: var(--cp-blue); white-space: nowrap; }
.metric-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.metric-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(30, 55, 95, .13) !important; }
.metric-card::after { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; content: ""; background: #b8d2f7; }
.metric-card-amber::after { background: #f5c559; }.metric-card-green::after { background: #72c69b; }.metric-card-purple::after { background: #b999ed; }
.text-purple { color: #7046b9 !important; }.bg-purple-subtle { background-color: #eee7ff !important; }
.operation-stat { min-height: 122px; padding: 1rem; border: 1px solid var(--cp-border); border-radius: .8rem; }
.operation-stat strong { display: block; margin-top: .45rem; font-size: 1.7rem; }.operation-stat span:last-child { color: var(--cp-muted); font-size: .82rem; }
.operation-stat-icon, .quick-action-icon { display: inline-grid; width: 34px; height: 34px; border-radius: .6rem; place-items: center; }
.operation-stat-success { background: #f0f9f4; border-color: #ccead7; }.operation-stat-success .operation-stat-icon { color: #198754; background: #d8f1e1; }
.operation-stat-primary { background: #f2f7ff; border-color: #d7e5fb; }.operation-stat-primary .operation-stat-icon { color: #174ea6; background: #dceaff; }
.operation-stat-muted { background: #f8fafc; }.operation-stat-muted .operation-stat-icon { color: #64748b; background: #e8eef5; }
.quick-action-icon { flex: 0 0 38px; font-size: 1.05rem; }.list-group-item-action { padding: 1rem 1.25rem; }
.table > thead > tr > th { color: #64748b; font-size: .75rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.table > :not(caption) > * > * { padding-top: .9rem; padding-bottom: .9rem; }
.pagination { gap: .35rem; align-items: center; margin: 0; }
.pagination .page-item .page-link { display: flex; min-width: 2.35rem; min-height: 2.35rem; padding: .45rem .7rem; border: 1px solid transparent; border-radius: .6rem; align-items: center; justify-content: center; color: var(--cp-blue); background: #f5f8fd; font-size: .86rem; font-weight: 650; text-decoration: none; box-shadow: none; }
.pagination .page-item .page-link:hover { border-color: #c7d8f3; background: #eaf1ff; color: var(--cp-blue-dark); }
.pagination .page-item.active .page-link { border-color: var(--cp-blue); background: var(--cp-blue); color: #fff; box-shadow: 0 4px 10px rgba(23, 78, 166, .2); }
.pagination .page-item.disabled .page-link { color: #a0aec0; background: #f1f5f9; cursor: default; opacity: 1; }
.card-footer:has(.pagination) { display: flex; justify-content: center; padding: .85rem 1rem; }

.login-page { display: grid; min-height: 100vh; place-items: center; background: linear-gradient(135deg, #eaf1ff, #f8fafc); }
.login-card { width: min(420px, calc(100% - 2rem)); border-radius: 1rem; }
.brand-mark { display: inline-grid; width: 54px; height: 54px; border-radius: 16px; place-items: center; background: var(--cp-blue); color: #fff; font-size: 1.55rem; }
.capture-video, .capture-preview { width: 100%; max-height: 280px; object-fit: cover; background: #0f172a; }
.signature-pad { width: 100%; height: 170px; border: 2px dashed #94a3b8; border-radius: .65rem; touch-action: none; background: #fff; }
.signature-pad-small { height: 130px; }
.document-status { min-height: 1.4rem; padding-top: .35rem; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-status.done { color: #198754; }
.document-status.error { color: #dc3545; }
.app-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--cp-border); background: #fff; }

.landing-page { color: #152747; background: #fff; }.landing-nav { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid rgba(211,225,245,.75); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }.landing-brand { color: #143e82; font-size: 1.35rem; font-weight: 800; letter-spacing: -.04em; }.landing-brand i,.landing-brand span { color: #f3ba14; }.landing-nav-link { color: #52627d; font-size: .9rem; font-weight: 650; }.landing-hero { overflow: hidden; padding: clamp(4rem,9vw,7.5rem) 0 5rem; background: radial-gradient(circle at 8% 14%,#e3efff,transparent 28%),linear-gradient(180deg,#f9fbff 0%,#fff 100%); }.landing-eyebrow { display: inline-flex; align-items: center; color: #1d5dba; font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }.landing-hero h1 { max-width: 690px; margin: 1rem 0; color: #102a52; font-size: clamp(2.5rem,5vw,4.35rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.05; }.landing-hero h1 span { color: #1e66c3; }.landing-hero .lead { max-width: 600px; color: #61708a; font-size: 1.18rem; line-height: 1.65; }.landing-trust { display: flex; flex-wrap: wrap; gap: .85rem 1.2rem; color: #52627d; font-size: .84rem; font-weight: 600; }.landing-trust i { color: #1f9d62; }.landing-image-wrap { position: relative; isolation: isolate; }.landing-image-wrap::before { position: absolute; z-index: -1; top: 8%; right: -5%; width: 80%; height: 82%; border-radius: 1.5rem; content: ''; background: #bed9ff; transform: rotate(4deg); }.landing-image-wrap img { border-radius: 1.35rem; box-shadow: 0 24px 60px rgba(32,77,143,.22); }.landing-float-card { position: absolute; bottom: 1.25rem; left: -1.25rem; display: flex; align-items: center; gap: .75rem; min-width: 220px; padding: .8rem 1rem; border: 1px solid #d9eddf; border-radius: .85rem; background: #fff; box-shadow: 0 15px 28px rgba(33,71,122,.18); }.landing-float-card i { color: #168653; font-size: 1.6rem; }.landing-float-card strong,.landing-float-card small { display: block; }.landing-float-card small { color: #6b7280; font-size: .75rem; }.landing-strip { padding: 1.25rem 0; color: #dbeafe; background: #153e80; }.landing-strip strong,.landing-strip span { display: block; }.landing-strip strong { color: #fff; font-size: 1rem; }.landing-strip span { font-size: .78rem; }.landing-section { padding: clamp(4rem,7vw,6rem) 0; }.landing-heading { max-width: 720px; margin: 0 auto 2.5rem; }.landing-heading > span { color: #1e66c3; font-size: .75rem; font-weight: 800; letter-spacing: .1em; }.landing-heading h2,.landing-process h2,.landing-cta h2 { margin: .6rem 0 .85rem; color: #102a52; font-size: clamp(1.9rem,3vw,2.7rem); font-weight: 800; letter-spacing: -.04em; }.landing-heading p { color: #66758e; }.landing-feature { height: 100%; padding: 1.5rem; border: 1px solid #e2ebf7; border-radius: 1rem; background: #fff; box-shadow: 0 10px 25px rgba(34,74,126,.05); transition: transform .2s ease,box-shadow .2s ease; }.landing-feature:hover { box-shadow: 0 16px 34px rgba(34,74,126,.12); transform: translateY(-4px); }.landing-feature-icon { display: grid; width: 46px; height: 46px; margin-bottom: 1rem; border-radius: .8rem; place-items: center; font-size: 1.3rem; }.landing-feature h3 { color: #17345f; font-size: 1.05rem; font-weight: 750; }.landing-feature p { margin: 0; color: #697994; font-size: .91rem; line-height: 1.55; }.landing-process { padding: clamp(4rem,7vw,6rem) 0; color: #fff; background: linear-gradient(130deg,#0c2e64,#1e62bb); }.landing-process h2 { color: #fff; }.landing-process p { color: #d3e4ff; line-height: 1.65; }.landing-timeline { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; }.landing-timeline li { display: flex; gap: 1rem; padding: 1.1rem; border: 1px solid rgba(255,255,255,.16); border-radius: .9rem; background: rgba(255,255,255,.09); }.landing-timeline span { display: grid; flex: 0 0 42px; height: 42px; border-radius: 50%; place-items: center; color: #164b94; background: #fff; font-size: .8rem; font-weight: 800; }.landing-timeline strong { font-size: 1rem; }.landing-timeline p { margin: .2rem 0 0; font-size: .86rem; }.landing-cta { padding: clamp(4rem,7vw,6rem) 0; background: #f5f9ff; }.landing-cta-box { padding: clamp(2.5rem,6vw,4.5rem) 1.5rem; border-radius: 1.25rem; color: #fff; background: linear-gradient(115deg,#123d81,#2972d3); box-shadow: 0 20px 45px rgba(23,78,166,.22); }.landing-cta-box .landing-eyebrow,.landing-cta-box h2 { color: #fff; }.landing-cta-box p { color: #d8e8ff; }.landing-footer { padding: 1.3rem 0; color: #7c8aa2; font-size: .85rem; }

@media (max-width: 991.98px) {
    .app-main { margin-left: 0 !important; }
    .app-content > .container-fluid { padding: 1.25rem !important; }
    .wizard-card .card-body { min-height: 0; }
}

@media (max-width: 575.98px) {
    .app-header { min-height: 60px; }
    .app-content > .container-fluid { padding: 1rem !important; }
    .page-intro { margin-bottom: 1.25rem !important; }
    .page-intro h1 { margin-top: .45rem !important; font-size: 1.55rem; }
    .page-intro p { font-size: .91rem; }
    .wizard-steps { margin-bottom: 2.75rem; }
    .wizard-step-indicator { align-items: center; min-height: 62px; padding-bottom: .85rem; }
    .wizard-step-indicator:not(:last-child)::after { right: 0; bottom: 0; left: 0; width: auto; }
    .step-label { display: none; }
    .wizard-step-indicator.active .step-label { display: block; position: absolute; top: 36px; left: 50%; width: max-content; max-width: 8rem; transform: translateX(-50%); font-size: .76rem; text-align: center; white-space: normal; }
    .wizard-card { border-radius: .75rem; }
    .wizard-card .card-body { padding: 1.25rem !important; }
    .wizard-card h2 { margin-bottom: 1.25rem !important; font-size: 1.1rem; }
    .wizard-footer { flex-wrap: wrap; gap: .65rem; padding: .9rem 1rem; }
    .wizard-footer .btn { flex: 1 1 auto; min-height: 46px; }
    .wizard-footer .btn-primary:last-child, .wizard-footer .btn-primary:nth-last-child(1) { flex-basis: 100%; }
    .form-control, .form-select { min-height: 48px; font-size: 1rem; }
    .capture-video, .capture-preview { max-height: 230px; }
    .signature-pad { height: 150px; }
    .dashboard-hero { align-items: flex-start; gap: 1rem; border-radius: .8rem; }.dashboard-hero-action { width: 100%; }
    .pagination { gap: .2rem; }
    .pagination .page-item .page-link { min-width: 2.1rem; min-height: 2.1rem; padding: .35rem .45rem; font-size: .8rem; }
    .app-footer { padding: .85rem 1rem; font-size: .75rem; }
}
