/* ========== Design tokens (Schema Migrations / shadcn-style) ========== */
@layer base {
    :root {
        --background: 0 0% 98%;
        --foreground: 224 10% 10%;
        --card: 0 0% 100%;
        --card-foreground: 224 10% 10%;
        --popover: 0 0% 100%;
        --popover-foreground: 224 10% 10%;
        --primary: 221 83% 53%;
        --primary-foreground: 210 40% 98%;
        --secondary: 220 14% 96%;
        --secondary-foreground: 220 9% 46%;
        --muted: 220 14% 96%;
        --muted-foreground: 220 9% 46%;
        --accent: 220 14% 96%;
        --accent-foreground: 220 9% 46%;
        --destructive: 0 84% 60%;
        --destructive-foreground: 210 40% 98%;
        --border: 220 13% 91%;
        --input: 220 13% 91%;
        --ring: 221 83% 53%;
        --radius: 0.5rem;
        --chart-1: 221 83% 53%;
        --chart-2: 160 60% 45%;
        --chart-3: 30 80% 55%;
        --chart-4: 280 65% 60%;
        --chart-5: 340 75% 55%;
        --sidebar-background: 0 0% 98%;
        --sidebar-foreground: 240 5.3% 26.1%;
        --sidebar-primary: 240 5.9% 10%;
        --sidebar-primary-foreground: 0 0% 98%;
        --sidebar-accent: 240 4.8% 95.9%;
        --sidebar-accent-foreground: 240 5.9% 10%;
        --sidebar-border: 220 13% 91%;
        --sidebar-ring: 217.2 91.2% 59.8%;
    }
    .dark {
        --background: 0 0% 3.9%;
        --foreground: 0 0% 98%;
        --card: 0 0% 3.9%;
        --card-foreground: 0 0% 98%;
        --popover: 0 0% 3.9%;
        --popover-foreground: 0 0% 98%;
        --primary: 0 0% 98%;
        --primary-foreground: 0 0% 9%;
        --secondary: 0 0% 14.9%;
        --secondary-foreground: 0 0% 98%;
        --muted: 0 0% 14.9%;
        --muted-foreground: 0 0% 63.9%;
        --accent: 0 0% 14.9%;
        --accent-foreground: 0 0% 98%;
        --destructive: 0 62.8% 30.6%;
        --destructive-foreground: 0 0% 98%;
        --border: 0 0% 14.9%;
        --input: 0 0% 14.9%;
        --ring: 0 0% 83.1%;
        --chart-1: 220 70% 50%;
        --chart-2: 160 60% 45%;
        --chart-3: 30 80% 55%;
        --chart-4: 280 65% 60%;
        --chart-5: 340 75% 55%;
        --sidebar-background: 240 5.9% 10%;
        --sidebar-foreground: 240 4.8% 95.9%;
        --sidebar-primary: 224.3 76.3% 48%;
        --sidebar-primary-foreground: 0 0% 100%;
        --sidebar-accent: 240 3.7% 15.9%;
        --sidebar-accent-foreground: 240 4.8% 95.9%;
        --sidebar-border: 240 3.7% 15.9%;
        --sidebar-ring: 217.2 91.2% 59.8%;
    }
}
@layer base {
    * {
        border-color: hsl(var(--border));
    }
    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
}

/* Code font */
.font-mono {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

/* Diff viewer styles */
.diff-added {
    background-color: rgba(34, 197, 94, 0.08);
    border-left: 3px solid rgb(34, 197, 94);
}
.diff-removed {
    background-color: rgba(239, 68, 68, 0.08);
    border-left: 3px solid rgb(239, 68, 68);
}
.diff-modified {
    background-color: rgba(59, 130, 246, 0.06);
    border-left: 3px solid rgb(59, 130, 246);
}
.diff-line-number {
    color: rgb(148, 163, 184);
    user-select: none;
    min-width: 3rem;
    text-align: right;
    padding-right: 1rem;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgb(203, 213, 225);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgb(148, 163, 184);
}

/* Syntax highlighting basics */
.syntax-keyword { color: #c678dd; }
.syntax-string { color: #98c379; }
.syntax-comment { color: #5c6370; font-style: italic; }
.syntax-function { color: #61afef; }
.syntax-number { color: #d19a66; }
.syntax-operator { color: #56b6c2; }

/* ========== EazyDB Design System ========== */
:root {
    --eazydb-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --eazydb-primary: #0f766e;
    --eazydb-primary-dark: #0d5c56;
    --eazydb-primary-light: #14b8a6;
    --eazydb-accent: #f59e0b;
    --eazydb-accent-hover: #d97706;
    /* Sidebar: dark blue menu bar (consistent across all pages) */
    --eazydb-sidebar-bg: #1d3156;
    --eazydb-sidebar-start: #1d3156;
    --eazydb-sidebar-end: #1a2a4a;
    --eazydb-sidebar-text: rgba(255, 255, 255, 0.88);
    --eazydb-sidebar-text-muted: rgba(255, 255, 255, 0.6);
    --eazydb-sidebar-active-bg: #344d75;
    --eazydb-sidebar-logo-icon: #20d5ab;
    --eazydb-card-shadow: 0 1px 3px rgba(15, 118, 110, 0.08);
    --eazydb-card-shadow-hover: 0 4px 12px rgba(15, 118, 110, 0.12);
    --eazydb-radius: 12px;
    --eazydb-radius-sm: 8px;
    --eazydb-surface: #f8fafc;
    --eazydb-border: rgba(15, 118, 110, 0.12);

    /* Override Bootstrap primary so .text-primary, .bg-primary, etc. use our teal, not blue */
    --bs-primary: var(--eazydb-primary);
    --bs-primary-rgb: 15, 118, 110;
    --bs-primary-text-emphasis: var(--eazydb-primary-dark);
    --bs-primary-bg-subtle: rgba(15, 118, 110, 0.12);
    --bs-primary-border-subtle: rgba(15, 118, 110, 0.35);
}

html, body {
    font-family: var(--eazydb-font);
    overflow-x: hidden;
    background-color: var(--eazydb-surface);
    color: #1e293b;
}

/* Keep main content within viewport so sidebar stays visible; no horizontal page scroll */
main {
    min-width: 0;
    overflow-x: hidden;
    background: linear-gradient(180deg, #ffffff 0%, var(--eazydb-surface) 100%);
}
.content {
    padding-top: 1.25rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

a, .btn-link {
    color: var(--eazydb-primary);
    font-weight: 500;
}
a:hover, .btn-link:hover {
    color: var(--eazydb-primary-dark);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--eazydb-primary) 0%, var(--eazydb-primary-dark) 100%);
    border: none;
    border-radius: var(--eazydb-radius-sm);
    font-weight: 600;
    box-shadow: var(--eazydb-card-shadow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--eazydb-primary-dark) 0%, #0a4540 100%);
    box-shadow: var(--eazydb-card-shadow-hover);
    transform: translateY(-1px);
}
.btn-success {
    background: linear-gradient(135deg, var(--eazydb-primary) 0%, var(--eazydb-primary-dark) 100%);
    border: none;
    color: #fff;
    border-radius: var(--eazydb-radius-sm);
    font-weight: 600;
}
.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--eazydb-primary-dark) 0%, #0a4540 100%);
    color: #fff;
}
.btn-outline-primary {
    border-radius: var(--eazydb-radius-sm);
    font-weight: 500;
    border-color: var(--eazydb-primary);
    color: var(--eazydb-primary);
}
.btn-outline-primary:hover {
    background: rgba(15, 118, 110, 0.08);
    border-color: var(--eazydb-primary-dark);
    color: var(--eazydb-primary-dark);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.25);
}

h1, .h1, h2, .h2, h3, .h3 {
    font-weight: 700;
    color: #0f172a;
}
h1:focus {
    outline: none;
}

/* Cards: white background, green border, rounded, soft shadow */
.card {
    background: #fff;
    border: 1px solid var(--eazydb-border);
    border-radius: var(--eazydb-radius);
    box-shadow: var(--eazydb-card-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
    box-shadow: var(--eazydb-card-shadow-hover);
}
.card-header {
    font-weight: 600;
    background: #fff;
    border-bottom: 1px solid var(--eazydb-border);
    border-radius: var(--eazydb-radius) var(--eazydb-radius) 0 0;
    padding: 0.875rem 1.25rem;
    color: var(--eazydb-primary-dark);
}

/* Select context: organization and project cards */
.eazydb-context-card {
    border: 1px solid var(--eazydb-border);
    border-radius: var(--eazydb-radius);
    box-shadow: var(--eazydb-card-shadow);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.02s ease;
    min-height: 120px;
}
.eazydb-context-card:hover {
    box-shadow: var(--eazydb-card-shadow-hover);
    border-color: rgba(15, 118, 110, 0.35);
}
.eazydb-context-card.add-org {
    border-style: dashed;
    border-color: var(--eazydb-border);
    background: rgba(15, 118, 110, 0.03);
}
.eazydb-context-card.add-org:hover {
    border-color: var(--eazydb-primary);
    background: rgba(15, 118, 110, 0.06);
}
.avatar-circle {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Tables */
.table {
    --bs-table-hover-bg: rgba(15, 118, 110, 0.04);
}
.table thead th {
    font-weight: 600;
    color: #475569;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom-color: var(--eazydb-border);
}

/* Form controls */
.form-control, .form-select {
    border-radius: var(--eazydb-radius-sm);
    border-color: var(--eazydb-border);
}
.form-control:focus, .form-select:focus {
    border-color: var(--eazydb-primary-light);
}
.input-group .form-control {
    border-radius: 0 var(--eazydb-radius-sm) var(--eazydb-radius-sm) 0;
}
.input-group-text {
    border-radius: var(--eazydb-radius-sm) 0 0 var(--eazydb-radius-sm);
    border-color: var(--eazydb-border);
    background: var(--eazydb-surface);
}

/* Stat / metric cards (dashboard) */
.eazydb-stat-card {
    border: 1px solid var(--eazydb-border);
    border-radius: var(--eazydb-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--eazydb-card-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.eazydb-stat-card:hover {
    box-shadow: var(--eazydb-card-shadow-hover);
    transform: translateY(-2px);
}
.eazydb-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--eazydb-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.eazydb-stat-card .stat-value {
    font-weight: 700;
    font-size: 1.75rem;
    color: #0f172a;
    line-height: 1.2;
}
.eazydb-stat-card .stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Page title area */
.eazydb-page-header {
    margin-bottom: 1.5rem;
}
.eazydb-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.eazydb-page-header .subtitle {
    font-size: 0.9375rem;
    color: #64748b;
}

/* Account Manage layout: sidebar nav card */
.eazydb-manage-nav-card {
    position: sticky;
    top: 1rem;
}
.eazydb-manage-nav .nav-link {
    border-radius: var(--eazydb-radius-sm);
    padding: 0.5rem 0.75rem;
    color: #475569;
    font-weight: 500;
}
.eazydb-manage-nav .nav-link:hover {
    background: rgba(15, 118, 110, 0.06);
    color: var(--eazydb-primary-dark);
}
.eazydb-manage-nav .nav-link.active {
    background: rgba(15, 118, 110, 0.12);
    color: var(--eazydb-primary-dark);
    font-weight: 600;
}

/* Profile avatar on Account/Manage */
.eazydb-profile-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
}
.eazydb-profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--eazydb-primary) 0%, var(--eazydb-primary-dark) 100%);
    font-size: 2rem;
}

/* Role icon (icon only, role name on hover via title) */
.role-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}
.role-icon-wrapper .role-icon {
    font-size: 1.1rem;
    color: var(--bs-secondary);
}

/* Top bar breadcrumb (Azure DevOps style) */
.eazydb-breadcrumb .breadcrumb {
    font-size: 0.875rem;
    background: transparent;
    padding: 0;
}
.eazydb-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #94a3b8;
    padding: 0 0.35rem;
}
.eazydb-breadcrumb .breadcrumb-item a {
    color: var(--eazydb-primary);
}
.eazydb-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline !important;
}
.eazydb-breadcrumb .breadcrumb-item.active {
    color: #1e293b;
    font-weight: 500;
}

/* Status badges (enhanced in StatusBadge) */
.badge.eazydb-badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 999px;
    font-size: 0.75rem;
}

/* Hero (Home page) */
.eazydb-hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem 2.25rem;
    margin-top: 0.75rem;
    border-radius: var(--eazydb-radius);
    background:
        radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.35) 0, transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(15, 23, 42, 0.85) 0, rgba(15, 23, 42, 0.98) 60%);
    color: #e5f3ff;
}
.eazydb-hero-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}
.eazydb-hero-copy {
    max-width: 540px;
}
# removed eazydb-hero-icon (icon no longer shown)
.eazydb-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--eazydb-primary-light) !important;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.85);
}
.eazydb-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 500;
    margin-bottom: 1.1rem;
}
.eazydb-hero-text {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.96);
}
.eazydb-hero .btn-lg {
    border-radius: var(--eazydb-radius-sm);
    font-weight: 600;
}
.eazydb-hero-visual {
    position: relative;
    width: 320px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle at 0% 50%, rgba(15, 118, 110, 0.45) 0, transparent 55%),
                radial-gradient(circle at 100% 50%, rgba(248, 250, 252, 0.12) 0, transparent 55%),
                rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
    overflow: hidden;
}
.eazydb-hero-orbit {
    position: absolute;
    border-radius: 999px;
    border: 2px dashed rgba(248, 250, 252, 0.25);
}
.eazydb-hero-orbit-outer {
    width: 92%;
    height: 72%;
}
.eazydb-hero-orbit-inner {
    width: 64%;
    height: 52%;
    transform: rotate(18deg);
    border-style: solid;
    border-color: rgba(56, 189, 248, 0.7);
}
.eazydb-hero-orbit-center {
    position: relative;
    text-align: center;
}

/* Modals: match design system */
.modal-content {
    border-radius: var(--eazydb-radius);
    border: 1px solid var(--eazydb-border);
    box-shadow: 0 8px 32px rgba(15, 118, 110, 0.12);
}
.modal-header {
    border-bottom-color: var(--eazydb-border);
    font-weight: 600;
}
.modal-footer {
    border-top-color: var(--eazydb-border);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.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;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Package detail: let content extend to bottom of viewport */
.package-detail-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 6rem);
}

/* Process-in-progress overlay: white modal style (matches ReconnectModal) + progress */
.package-detail-process-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    animation: package-detail-overlay-fadeIn 0.25s ease-out;
}
.package-detail-process-overlay-content {
    background: white;
    width: 20rem;
    max-width: 90vw;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: package-detail-modal-appear 0.3s ease-out;
}
.package-detail-process-overlay-content p {
    margin: 0;
    text-align: center;
    color: #212529;
}
.package-detail-process-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}
.package-detail-process-spinner div {
    position: absolute;
    border: 3px solid #0087ff;
    opacity: 1;
    border-radius: 50%;
    animation: package-detail-process-spinner-anim 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.package-detail-process-spinner div:nth-child(2) {
    animation-delay: -0.5s;
}
@keyframes package-detail-process-spinner-anim {
    0% { top: 40px; left: 40px; width: 0; height: 0; opacity: 0; }
    4.9% { top: 40px; left: 40px; width: 0; height: 0; opacity: 0; }
    5% { top: 40px; left: 40px; width: 0; height: 0; opacity: 1; }
    100% { top: 0; left: 0; width: 80px; height: 80px; opacity: 0; }
}
.package-detail-process-progress-wrap {
    width: 100%;
    margin-top: 0.25rem;
}
.package-detail-process-progress-wrap .progress {
    height: 6px;
    border-radius: 3px;
}
@keyframes package-detail-overlay-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes package-detail-modal-appear {
    from { transform: translateY(12px); opacity: 0.9; }
    to { transform: translateY(0); opacity: 1; }
}

/* Two-column layout: Items (left) | Source vs Target + Generated script (right) */
.package-two-column {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
    gap: 0;
}
.package-items-col {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.package-items-tree {
    padding: 0.25rem 0;
}
.package-tree-folder {
    margin-bottom: 0.25rem;
}
.package-tree-folder-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--bs-secondary);
    cursor: pointer;
    user-select: none;
}
.package-tree-folder-header:hover {
    background: var(--bs-light);
    color: var(--bs-body-color);
}
.package-tree-chevron {
    font-size: 0.65rem;
    width: 1em;
    display: inline-block;
}
.package-tree-folder-icon {
    color: #c9a227;
    font-size: 1rem;
}
.package-tree-folder-name {
    flex: 1;
}
.package-tree-folder .list-group-item {
    padding-left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.package-tree-item-icon {
    color: var(--bs-secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.package-tree-folder .list-group-item.active .package-tree-item-icon {
    color: var(--bs-primary);
}
.package-tree-item-text {
    flex: 1;
    min-width: 0;
}
/* Softer blue highlight for selected item */
.package-items-tree .list-group-item.active {
    background-color: rgba(13, 110, 253, 0.14);
    color: var(--bs-body-color);
    border-color: rgba(13, 110, 253, 0.25);
}
.package-main-splitter {
    flex: 0 0 8px;
    min-width: 8px;
    cursor: col-resize;
    background: var(--bs-border-color);
    margin: 0 1px;
}
.package-main-splitter:hover {
    background: var(--bs-primary);
}
.package-right-col {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.package-right-top {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.package-right-row-splitter {
    flex: 0 0 8px;
    min-height: 8px;
    cursor: row-resize;
    background: var(--bs-border-color);
    margin: 1px 0;
}
.package-right-row-splitter:hover {
    background: var(--bs-primary);
}
.package-right-bottom {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.diff-card-body {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.diff-panel-object {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
/* Source vs Target: fit both panels on screen, no page horizontal scroll; each panel scrolls inside */
.diff-card {
    max-width: 100%;
    overflow: hidden;
}
.diff-card .card-body.overflow-hidden {
    overflow: hidden;
    max-width: 100%;
}
/* Headers row: same column widths as content below so labels align with panes */
.diff-panels-headers {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    gap: 0;
    padding-left: 0.125rem;
    padding-right: 0.125rem;
    min-height: 0;
}
.diff-panel-header-left,
.diff-panel-header-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    small, .small { font-size: inherit; }
}
.diff-panel-header-left { padding-right: 0.25rem; }
.diff-panel-header-right { flex: 1 1 0; min-width: 0; padding-left: 0.25rem; }
.diff-panel-header-splitter {
    flex: 0 0 6px;
    min-width: 6px;
}

.diff-panels-row {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    gap: 0;
}
/* Single scroll container: both Source and Target panes scroll together */
.diff-panels-scroll-wrapper {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    overflow: auto;
    width: 100%;
}
.diff-panels-scroll-inner {
    display: flex;
    flex-direction: row;
    min-height: min-content;
    width: 100%;
    gap: 0;
}
.diff-panels-scroll-inner .diff-code-panel-content {
    box-sizing: border-box;
    max-width: 100%;
    overflow: visible;
}
.diff-panels-scroll-inner .diff-code-panel-right {
    flex: 1 1 0;
    min-width: 0;
}
.diff-panels-row .diff-panel-col {
    min-width: 0;
    overflow: hidden;
    padding-left: 0.125rem;
    padding-right: 0.125rem;
    display: flex;
    flex-direction: column;
}
.diff-panel-col.diff-panel-right {
    flex: 1;
}
.diff-panel-col {
    min-width: 0;
    overflow: hidden;
}
.diff-splitter {
    flex: 0 0 6px;
    min-width: 6px;
    cursor: col-resize;
    background: var(--bs-border-color);
    margin: 0 1px;
    flex-shrink: 0;
}
.diff-splitter:hover {
    background: var(--bs-primary);
}
.diff-code-panel {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Source vs Target diff highlights */
.diff-line-block { display: block; }
.diff-line-source-only {
    background-color: rgba(40, 167, 69, 0.35);
    display: block;
}
.diff-line-target-only {
    background-color: rgba(220, 53, 69, 0.35);
    display: block;
}
.diff-line-reordered {
    background-color: rgba(255, 193, 7, 0.45);
    display: block;
}
.diff-legend-source { background-color: rgba(40, 167, 69, 0.5); color: #0d0d0d; padding: 0.2rem 0.5rem; border-radius: 0.25rem; font-weight: 500; }
.diff-legend-target { background-color: rgba(220, 53, 69, 0.5); color: #fff; padding: 0.2rem 0.5rem; border-radius: 0.25rem; font-weight: 500; }
.diff-legend-reordered { background-color: rgba(255, 193, 7, 0.6); color: #1a1a1a; padding: 0.2rem 0.5rem; border-radius: 0.25rem; font-weight: 500; }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Compare-in-progress animation (bouncing dots) */
.compare-progress-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.compare-progress-animation span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    animation: compare-bounce 0.6s ease-in-out infinite both;
}
.compare-progress-animation span:nth-child(1) { animation-delay: 0s; }
.compare-progress-animation span:nth-child(2) { animation-delay: 0.1s; }
.compare-progress-animation span:nth-child(3) { animation-delay: 0.2s; }
.compare-progress-animation span:nth-child(4) { animation-delay: 0.3s; }
.compare-progress-animation span:nth-child(5) { animation-delay: 0.4s; }
@keyframes compare-bounce {
    0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.6; }
    50% { transform: translateY(-8px) scale(1.2); opacity: 1; }
}

/* Lemon green progress bar for successful fragments */
.bg-lemon-success {
    background-color: #aeea00 !important;
}

/* Landing page layout */
.landing-wrapper {
    /* Let the landing hero span the full browser width */
    width: 100%;
    padding: 0 0 3.25rem 0;
    margin: 0;
}

.container-landing {
    max-width: 1040px;
    margin: 0 auto;
}

.landing-section {
    padding: 2.25rem 0;
}

.landing-section-alt {
    background-color: #f1f5f9;
    border-radius: var(--eazydb-radius);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.landing-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.landing-section-text {
    color: #64748b;
    font-size: 0.975rem;
}

.landing-bullets {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 0;
}

.landing-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 0.4rem;
}

.landing-highlight-card {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.05) 0%, rgba(15, 118, 110, 0.02) 100%);
    border-radius: var(--eazydb-radius);
    border: 1px solid rgba(15, 118, 110, 0.12);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--eazydb-card-shadow);
}

.landing-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.25);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f766e;
    background: #ecfdf5;
}

.landing-service-card {
    background: #ffffff;
    border-radius: var(--eazydb-radius);
    padding: 1.4rem 1.4rem 1.3rem 1.4rem;
    border: 1px solid var(--eazydb-border);
    box-shadow: var(--eazydb-card-shadow);
    height: 100%;
}

.landing-service-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

/* Auth pages (login, register, etc.) */
.auth-page {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 4.25rem;
    padding-bottom: 3rem;
}

.auth-layout-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.auth-hero {
    flex: 1 1 260px;
}

.auth-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.auth-hero-text {
    color: #4b5563;
    font-size: 0.95rem;
}

/* Make login-page bullets readable on dark landing background */
.auth-page .landing-bullets li {
    color: #4b5563;
}

.auth-form-col {
    flex: 1 1 320px;
}

.auth-card {
    background: #ffffff;
    border-radius: var(--eazydb-radius);
    padding: 1.75rem 1.75rem 1.5rem 1.75rem;
    border: 1px solid var(--eazydb-border);
    box-shadow: var(--eazydb-card-shadow);
}

.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.auth-card-subtitle {
    font-size: 0.95rem;
    color: #64748b;
}

.auth-footer-links {
    font-size: 0.9rem;
}

.auth-footer-links a {
    text-decoration: none;
}

/* Landing page footer credit */
.landing-footer-credit {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid var(--eazydb-border);
    padding: 0.75rem 0 1rem;
    background-color: var(--eazydb-surface);
    font-size: 0.85rem;
    color: #64748b;
    z-index: 1020;
}

.landing-footer-credit a {
    color: var(--eazydb-primary);
    text-decoration: none;
}

.landing-footer-credit a:hover {
    color: var(--eazydb-primary-dark);
    text-decoration: underline;
}

@media (min-width: 992px) {
    .eazydb-hero {
        border-radius: 0;
    }
}

@media (max-width: 768.98px) {
    .landing-wrapper {
        padding: 0 0 2.5rem 0;
    }

    .landing-section-alt {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .auth-page {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .auth-card {
        padding: 1.5rem 1.35rem 1.35rem 1.35rem;
    }

    .eazydb-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .eazydb-hero-copy {
        max-width: none;
    }
}
