:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-secondary: #475569;
    --bs-success: #16a34a;
    --bs-info: #0ea5e9;
    --bs-warning: #f59e0b;
    --bs-danger: #dc2626;
    --bs-light: #f8fafc;
    --bs-dark: #0f172a;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #111827;
    --bs-body-color: #f3f4f6;
    --bs-border-color: #374151;
    --bs-primary: #3b82f6;
    --bs-primary-rgb: 59, 130, 246;
}

body {
    background: #f1f5f9;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.app-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
    color: #e2e8f0;
    padding: 1rem;
    position: sticky;
    inset-block-start: 0;
    height: 100vh;
    z-index: 1030;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.brand-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.25);
}

.app-nav-link {
    color: #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.55rem 0.7rem;
}

.app-nav-link:hover,
.app-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    min-height: 64px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.app-content {
    padding: 1rem;
}

.app-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    z-index: 1025;
}

.public-body {
    background: #e2e8f0;
}

.public-branding {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e293b 100%);
    color: #f8fafc;
    padding: 3rem;
    align-items: center;
}

.public-auth-card {
    width: 100%;
    max-width: 460px;
}

.process-step {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem;
    background: #fff;
}

.process-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: #2563eb;
    margin-inline-end: 0.45rem;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        inset-inline-start: -280px;
        transition: inset-inline-start 0.2s ease-in-out;
    }

    .app-shell.sidebar-open .app-sidebar {
        inset-inline-start: 0;
    }

    .app-shell.sidebar-open .app-overlay {
        display: block;
    }
}
