/* Oban — shared product UI stylesheet (dark Console / Pixa).
   Canonical copy: each product .cursor/rules/Oban.css
   Runtime copy: wwwroot/css/Oban.css (link first, before product app.css).
   Fonts: Inter 400–700 + Plus Jakarta Sans 600–800 from Google Fonts.
   Body class: console-fluent-theme (alias: oban-theme). */

:root {
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;

    --font-size-xs: 12px;
    --line-height-xs: 16px;
    --font-size-sm: 14px;
    --line-height-sm: 20px;
    --font-size-base: 16px;
    --line-height-base: 24px;
    --font-size-lg: 18px;
    --line-height-lg: 28px;
    --font-size-xl: 20px;
    --line-height-xl: 28px;
    --font-size-2xl: 24px;
    --line-height-2xl: 32px;
    --font-size-3xl: 30px;
    --line-height-3xl: 36px;

    --console-font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
    --console-font-display: "Plus Jakarta Sans", "Inter", sans-serif;
    --console-font-mono: Consolas, "Courier New", monospace;

    --console-color-brand: #0ea5e9;
    --console-color-brand-dark: #2563eb;
    --console-color-azure: #0078d4;
    --console-color-azure-ink: #0b1f4d;
    --console-color-accent: #38bdf8;
    --console-color-canvas: #020617;
    --console-color-surface: #0f172a;
    --console-color-glass: rgba(15, 23, 42, 0.9);
    --console-color-glass-border: rgba(255, 255, 255, 0.12);
    --console-color-border: rgba(255, 255, 255, 0.18);
    --console-color-hero-glow: rgba(14, 165, 233, 0.12);
    --console-color-text-primary: #f8fafc;
    --console-color-text-secondary: #e2e8f0;
    --console-color-text-muted: #cbd5e1;
    --console-color-text-label: #94a3b8;
    --console-color-link: #7dd3fc;
    --console-color-link-hover: #bae6fd;
    --console-color-overlay: rgba(2, 6, 23, 0.75);

    --console-radius: 12px;
    --console-radius-lg: 20px;
    --console-content-max-width: 1760px;
    --console-shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
    --console-glow: 0 12px 30px -5px rgba(14, 165, 233, 0.5);
    --console-nav-width: 256px;
    --console-nav-rail: 48px;

    --console-bg: var(--console-color-canvas);
    --console-text: var(--console-color-text-primary);
    --console-muted: var(--console-color-text-muted);
    --console-border: var(--console-color-glass-border);
    --console-primary: var(--console-color-brand);
    --console-accent: var(--console-color-accent);

    --tile-bg: var(--console-color-glass);
    --tile-bankhost: rgba(20, 184, 166, 0.28);
    --tile-bankhost-edge: #14b8a6;
    --tile-bankstream: rgba(13, 148, 136, 0.22);
    --tile-bankstream-edge: #0d9488;
    --tile-brand: rgba(14, 165, 233, 0.22);
    --tile-brand-edge: #0ea5e9;
    --tile-azure-fill: rgba(0, 120, 212, 0.28);
    --tile-azure-edge: #0078d4;
    --tile-registry: rgba(129, 140, 248, 0.28);
    --tile-registry-edge: #818cf8;
    --tile-product: var(--tile-registry);
    --tile-product-edge: var(--tile-registry-edge);

    /* Dashboard tile palette — 32 related accents (Azure → indigo → teal → amber/rose).
       Use .principal-tile-NN. Fill is a 32% wash of the swatch. */
    --tile-swatch-01: #0078d4;
    --tile-swatch-02: #0ea5e9;
    --tile-swatch-03: #38bdf8;
    --tile-swatch-04: #7dd3fc;
    --tile-swatch-05: #0284c7;
    --tile-swatch-06: #2563eb;
    --tile-swatch-07: #3b82f6;
    --tile-swatch-08: #60a5fa;
    --tile-swatch-09: #818cf8;
    --tile-swatch-10: #6366f1;
    --tile-swatch-11: #8b5cf6;
    --tile-swatch-12: #7c3aed;
    --tile-swatch-13: #a78bfa;
    --tile-swatch-14: #c084fc;
    --tile-swatch-15: #d946ef;
    --tile-swatch-16: #e879f9;
    --tile-swatch-17: #14b8a6;
    --tile-swatch-18: #0d9488;
    --tile-swatch-19: #2dd4bf;
    --tile-swatch-20: #0e7490;
    --tile-swatch-21: #22d3ee;
    --tile-swatch-22: #34d399;
    --tile-swatch-23: #4ade80;
    --tile-swatch-24: #94a3b8;
    --tile-swatch-25: #fbbf24;
    --tile-swatch-26: #f59e0b;
    --tile-swatch-27: #fb923c;
    --tile-swatch-28: #f97316;
    --tile-swatch-29: #f87171;
    --tile-swatch-30: #fb7185;
    --tile-swatch-31: #f43f5e;
    --tile-swatch-32: #e11d48;

    --status-healthy: #34d399;
    --status-unhealthy: #f87171;
    --status-unknown: #94a3b8;
    --status-notdeployed: #475569;
    --status-warning: #fbbf24;

    --console-color-cta: #fbbf24;
    --console-color-cta-hover: #f59e0b;
    --console-color-cta-active: #d97706;
    --console-color-cta-ink: #0f172a;

    --console-color-refresh: #34d399;
    --console-color-refresh-hover: #6ee7b7;
    --console-color-refresh-fill: rgba(52, 211, 153, 0.14);
    --console-color-refresh-fill-hover: rgba(52, 211, 153, 0.26);

    --hit-target: 44px;
}

body.oban-theme,
body.console-fluent-theme {
    margin: 0;
    min-height: 100%;
    font-family: var(--console-font-sans);
    color: var(--console-text);
    background: var(--console-bg);
    color-scheme: dark;
}

.refreshbtn,
.btn-head {
    background: var(--console-color-refresh-fill);
    border: 1px solid var(--console-color-refresh);
    color: var(--console-color-refresh-hover);
    border-radius: var(--console-radius);
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.refreshbtn:hover:not(:disabled),
.btn-head:hover:not(:disabled) {
    background: var(--console-color-refresh-fill-hover);
    border-color: var(--console-color-refresh-hover);
    color: var(--console-color-refresh-hover);
}

.refreshbtn:focus-visible,
.btn-head:focus-visible {
    outline: 2px solid var(--console-color-refresh);
    outline-offset: 2px;
}

.refreshbtn:disabled,
.btn-head:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.newregbtn,
.editbtn {
    background: var(--console-color-cta);
    border: 1px solid var(--console-color-cta);
    color: var(--console-color-cta-ink);
    border-radius: var(--console-radius);
    padding: var(--space-2) var(--space-3);
    min-height: var(--hit-target);
    font-size: var(--font-size-sm);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.newregbtn:hover:not(:disabled),
.editbtn:hover:not(:disabled) {
    background: var(--console-color-cta-hover);
    border-color: var(--console-color-cta-hover);
    color: var(--console-color-cta-ink);
}

.newregbtn:active:not(:disabled),
.editbtn:active:not(:disabled) {
    background: var(--console-color-cta-active);
    border-color: var(--console-color-cta-active);
}

.newregbtn:focus-visible,
.editbtn:focus-visible {
    outline: 2px solid var(--console-color-cta);
    outline-offset: 2px;
}

.newregbtn:disabled,
.editbtn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

a.principal-tile {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
    min-height: 168px;
    background: var(--tile-product);
    border: 1px solid var(--console-color-glass-border);
    border-left: 4px solid var(--tile-product-edge);
    border-radius: var(--console-radius-lg);
    text-decoration: none;
    color: var(--console-color-text-primary);
    box-shadow: var(--console-shadow);
    backdrop-filter: blur(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a.principal-tile:hover {
    color: var(--console-color-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px color-mix(in srgb, var(--tile-product-edge) 50%, transparent);
}

a.principal-tile:focus-visible {
    color: var(--console-color-text-primary);
    outline: none;
    box-shadow: 0 0 0 2px var(--console-bg), 0 0 0 4px var(--console-accent);
}

a.principal-tile:active {
    transform: scale(0.99);
}

.principal-tile-label {
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--console-color-text-primary);
}

.principal-tile-count {
    margin-top: auto;
    font-family: var(--console-font-display);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--console-color-text-primary);
    letter-spacing: -0.02em;
}

a.principal-tile.portal-tile {
    min-height: 60px;
    height: 60px;
    flex-direction: row;
    align-items: center;
    padding-block: var(--space-2);
}

.portal-tile-title {
    font-family: var(--console-font-display);
    font-size: var(--font-size-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.console-page-title {
    margin: 0 0 var(--space-2);
    font-family: var(--console-font-display);
    font-size: var(--font-size-3xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: var(--line-height-3xl);
    color: var(--console-color-accent);
}

.console-page-lede {
    margin: 0 0 var(--space-4);
    max-width: 52rem;
    color: var(--console-muted);
    line-height: 1.7;
    font-weight: 500;
}

.principal-tile-01 { --tile-product: color-mix(in srgb, var(--tile-swatch-01) 32%, transparent); --tile-product-edge: var(--tile-swatch-01); }
.principal-tile-02 { --tile-product: color-mix(in srgb, var(--tile-swatch-02) 32%, transparent); --tile-product-edge: var(--tile-swatch-02); }
.principal-tile-03 { --tile-product: color-mix(in srgb, var(--tile-swatch-03) 32%, transparent); --tile-product-edge: var(--tile-swatch-03); }
.principal-tile-04 { --tile-product: color-mix(in srgb, var(--tile-swatch-04) 32%, transparent); --tile-product-edge: var(--tile-swatch-04); }
.principal-tile-05 { --tile-product: color-mix(in srgb, var(--tile-swatch-05) 32%, transparent); --tile-product-edge: var(--tile-swatch-05); }
.principal-tile-06 { --tile-product: color-mix(in srgb, var(--tile-swatch-06) 32%, transparent); --tile-product-edge: var(--tile-swatch-06); }
.principal-tile-07 { --tile-product: color-mix(in srgb, var(--tile-swatch-07) 32%, transparent); --tile-product-edge: var(--tile-swatch-07); }
.principal-tile-08 { --tile-product: color-mix(in srgb, var(--tile-swatch-08) 32%, transparent); --tile-product-edge: var(--tile-swatch-08); }
.principal-tile-09 { --tile-product: color-mix(in srgb, var(--tile-swatch-09) 32%, transparent); --tile-product-edge: var(--tile-swatch-09); }
.principal-tile-10 { --tile-product: color-mix(in srgb, var(--tile-swatch-10) 32%, transparent); --tile-product-edge: var(--tile-swatch-10); }
.principal-tile-11 { --tile-product: color-mix(in srgb, var(--tile-swatch-11) 32%, transparent); --tile-product-edge: var(--tile-swatch-11); }
.principal-tile-12 { --tile-product: color-mix(in srgb, var(--tile-swatch-12) 32%, transparent); --tile-product-edge: var(--tile-swatch-12); }
.principal-tile-13 { --tile-product: color-mix(in srgb, var(--tile-swatch-13) 32%, transparent); --tile-product-edge: var(--tile-swatch-13); }
.principal-tile-14 { --tile-product: color-mix(in srgb, var(--tile-swatch-14) 32%, transparent); --tile-product-edge: var(--tile-swatch-14); }
.principal-tile-15 { --tile-product: color-mix(in srgb, var(--tile-swatch-15) 32%, transparent); --tile-product-edge: var(--tile-swatch-15); }
.principal-tile-16 { --tile-product: color-mix(in srgb, var(--tile-swatch-16) 32%, transparent); --tile-product-edge: var(--tile-swatch-16); }
.principal-tile-17 { --tile-product: color-mix(in srgb, var(--tile-swatch-17) 32%, transparent); --tile-product-edge: var(--tile-swatch-17); }
.principal-tile-18 { --tile-product: color-mix(in srgb, var(--tile-swatch-18) 32%, transparent); --tile-product-edge: var(--tile-swatch-18); }
.principal-tile-19 { --tile-product: color-mix(in srgb, var(--tile-swatch-19) 32%, transparent); --tile-product-edge: var(--tile-swatch-19); }
.principal-tile-20 { --tile-product: color-mix(in srgb, var(--tile-swatch-20) 32%, transparent); --tile-product-edge: var(--tile-swatch-20); }
.principal-tile-21 { --tile-product: color-mix(in srgb, var(--tile-swatch-21) 32%, transparent); --tile-product-edge: var(--tile-swatch-21); }
.principal-tile-22 { --tile-product: color-mix(in srgb, var(--tile-swatch-22) 32%, transparent); --tile-product-edge: var(--tile-swatch-22); }
.principal-tile-23 { --tile-product: color-mix(in srgb, var(--tile-swatch-23) 32%, transparent); --tile-product-edge: var(--tile-swatch-23); }
.principal-tile-24 { --tile-product: color-mix(in srgb, var(--tile-swatch-24) 32%, transparent); --tile-product-edge: var(--tile-swatch-24); }
.principal-tile-25 { --tile-product: color-mix(in srgb, var(--tile-swatch-25) 32%, transparent); --tile-product-edge: var(--tile-swatch-25); }
.principal-tile-26 { --tile-product: color-mix(in srgb, var(--tile-swatch-26) 32%, transparent); --tile-product-edge: var(--tile-swatch-26); }
.principal-tile-27 { --tile-product: color-mix(in srgb, var(--tile-swatch-27) 32%, transparent); --tile-product-edge: var(--tile-swatch-27); }
.principal-tile-28 { --tile-product: color-mix(in srgb, var(--tile-swatch-28) 32%, transparent); --tile-product-edge: var(--tile-swatch-28); }
.principal-tile-29 { --tile-product: color-mix(in srgb, var(--tile-swatch-29) 32%, transparent); --tile-product-edge: var(--tile-swatch-29); }
.principal-tile-30 { --tile-product: color-mix(in srgb, var(--tile-swatch-30) 32%, transparent); --tile-product-edge: var(--tile-swatch-30); }
.principal-tile-31 { --tile-product: color-mix(in srgb, var(--tile-swatch-31) 32%, transparent); --tile-product-edge: var(--tile-swatch-31); }
.principal-tile-32 { --tile-product: color-mix(in srgb, var(--tile-swatch-32) 32%, transparent); --tile-product-edge: var(--tile-swatch-32); }
