/* =========================================================
   FILE: app.css

   PURPOSE:
   Global visual design system for the Vixly Control Plane.
   Modernized executive dark-navy sidebar with high-contrast controls.
   ========================================================= */

/* =========================================================
   1. GLOBAL DESIGN TOKENS
   ========================================================= */

:root {
  /* ControlPlane density contract. Component scopes consume these tokens
     through the final controlplane-density.css compatibility layer. */
  --cp-input-height: 36px;
  --cp-input-py: 6px;
  --cp-input-px: 12px;
  --cp-input-font-size: 0.875rem;
  --cp-form-row-gap: 12px;
  --cp-table-cell-py: 8px;
  --cp-table-cell-px: 16px;
  --cp-table-header-py: 10px;

  /* Brand Primary Colors */
  --vixly-navy-950: #090d16;
  --vixly-navy-900: #0f172a;
  --vixly-navy-800: #1e293b;
  --vixly-navy-700: #334155;
  --vixly-navy-600: #475569;
  
  --vixly-blue-600: #2563eb;
  --vixly-blue-500: #3b82f6;
  --vixly-blue-400: #60a5fa;
  --vixly-blue-50:  #eff6ff;

  --vixly-cyan-400: #38bdf8;
  --vixly-cyan-500: #0ea5e9;

  /* Neutral Slate Scale */
  --vixly-slate-50:  #f8fafc;
  --vixly-slate-100: #f1f5f9;
  --vixly-slate-200: #e2e8f0;
  --vixly-slate-300: #cbd5e1;
  --vixly-slate-400: #94a3b8;

  /* Semantic Intent Colors */
  --vixly-success: #10b981;
  --vixly-success-bg: rgba(16, 185, 129, 0.1);
  --vixly-warning: #f59e0b;
  --vixly-warning-bg: rgba(245, 158, 11, 0.1);
  --vixly-danger: #ef4444;
  --vixly-danger-bg: rgba(239, 68, 68, 0.1);
  --vixly-info: #3b82f6;
  --vixly-info-bg: rgba(59, 130, 246, 0.1);

  /* Theme Defaults */
  --color-bg-app: #eef3f8;
  --color-bg-surface: #ffffff;
  --color-bg-surface-subtle: var(--vixly-slate-100);
  --color-bg-sidebar: #0f172a;
  --color-bg-header: rgba(255, 255, 255, 0.88);

  --color-text-main: var(--vixly-navy-900);
  --color-text-muted: var(--vixly-navy-600);
  --color-text-inverse: #ffffff;

  --color-border-subtle: rgba(148, 163, 184, 0.18);
  --color-border-medium: rgba(148, 163, 184, 0.35);

  /* Elevation Borders */
  --elevation-border: 0 0 0 1px rgba(148, 163, 184, 0.15), 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  --elevation-border-hover: 0 0 0 1px rgba(37, 99, 235, 0.35), 0 12px 32px -4px rgba(15, 23, 42, 0.08);
  --elevation-card: 0 0 0 1px rgba(148, 163, 184, 0.15), 0 18px 42px rgba(15, 23, 42, 0.06);

  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --font-size-xs: clamp(0.7rem, 0.68rem + 0.12vw, 0.78rem);
  --font-size-sm: clamp(0.8rem, 0.78rem + 0.15vw, 0.875rem);
  --font-size-base: clamp(0.875rem, 0.85rem + 0.2vw, 1rem);
  --font-size-lg: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --font-size-xl: clamp(1.125rem, 1.05rem + 0.4vw, 1.35rem);
  --font-size-2xl: clamp(1.35rem, 1.25rem + 0.6vw, 1.75rem);
  --font-size-3xl: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);

  /* Spacing Scale */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Dimensions */
  --sidebar-width: 292px;
  --header-height: 80px;
  --content-max-width: 1680px;
  --surface-radius: 20px;
  --surface-padding: clamp(1rem, 1.5vw, 1.75rem);

  /* Transitions */
  --transition-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   2. BASE RESET & OUTLINE OVERRIDES
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100dvh;
  font-family: var(--font-family-base);
  background-color: var(--color-bg-app);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html.vx-mobile-navigation-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  border: none !important;
  outline: none !important;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus,
*:focus:not(input):not(select):not(textarea):not(button):not(a) {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

a {
  color: var(--vixly-blue-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--vixly-blue-500);
}

:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32) !important;
  outline-offset: 2px;
}

/* Status Badges & Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.status-pill--success {
  background-color: var(--vixly-success-bg);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-pill--warning {
  background-color: var(--vixly-warning-bg);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-pill--danger {
  background-color: var(--vixly-danger-bg);
  color: var(--vixly-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-pill--info {
  background-color: var(--vixly-info-bg);
  color: var(--vixly-blue-600);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: currentColor;
}

/* Container Query Helper */
.container-cq {
  container-type: inline-size;
  width: 100%;
}

/* =========================================================
   3. CONTROL PLANE SHELL
   ========================================================= */

.vx-platform-shell {
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-areas: "sidebar main";
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28rem), linear-gradient(135deg, #eef3f8 0%, #f8fafc 48%, #eef2ff 100%);
}

.vx-platform-shell.sidebar-collapsed {
  grid-template-columns: 78px minmax(0, 1fr);
}

/* =========================================================
   4. EXECUTIVE DARK NAVY SIDEBAR
   ========================================================= */

.vx-platform-shell__sidebar {
  grid-area: sidebar;
  position: relative;
  height: 100dvh;
  min-height: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 20px;
  background: linear-gradient(180deg, #090d16 0%, #0f172a 60%, #1e293b 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 12px 0 36px rgba(0, 0, 0, 0.22);
  transition: width var(--transition-smooth);
  color: #f8fafc;
}

.vx-platform-shell.sidebar-collapsed .vx-platform-shell__sidebar {
  width: 78px;
}

/* Hide ugly browser scrollbar track on sidebar top container */
.vx-platform-shell__sidebar-top {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-right: 2px;
}

.vx-platform-shell__sidebar-top::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Blink */
}

/* =========================================================
   5. BRAND HEADER
   ========================================================= */

.vx-platform-shell__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.vx-platform-shell__brand-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 46%, #0ea5e9 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.vx-platform-shell__brand-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vx-platform-shell__brand-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vx-platform-shell__brand-label {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.vx-platform-shell__brand-subtitle {
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================================
   6. EXECUTIVE PLATFORM NAVIGATION
   ========================================================= */

.vx-platform-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  flex: 0 0 auto;
}

.vx-platform-nav__section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vx-platform-nav__section:not(:last-child) {
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.vx-platform-nav__section-title {
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 4px;
}

.vx-platform-nav__section-title span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vx-platform-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vx-platform-nav__item {
  margin: 0;
  padding: 0;
}

/* Base Navigation Link */
.vx-platform-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  color: #94a3b8 !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 12px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

/* Hover State */
.vx-platform-nav__link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

/* Active Navigation Link State */
.vx-platform-nav__link.vx-platform-nav__link--active,
.vx-platform-nav__link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35) !important;
  font-weight: 700;
}

/* Active Bar Accent Indicator */
.vx-platform-nav__active-bar {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: #38bdf8;
  opacity: 0;
  transition: opacity 180ms ease;
}

.vx-platform-nav__link.vx-platform-nav__link--active .vx-platform-nav__active-bar,
.vx-platform-nav__link.active .vx-platform-nav__active-bar {
  opacity: 1;
}

/* Icon Container Box */
.vx-platform-nav__icon-box {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  transition: all 180ms ease;
}

.vx-platform-nav__link:hover .vx-platform-nav__icon-box {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.vx-platform-nav__link.vx-platform-nav__link--active .vx-platform-nav__icon-box,
.vx-platform-nav__link.active .vx-platform-nav__icon-box {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.vx-platform-nav__link-text {
  min-width: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   7. SIDEBAR FOOTER / IDENTITY / LOGOUT
   ========================================================= */

.vx-platform-shell__sidebar-footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vx-platform-shell__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vx-platform-shell__identity-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.vx-platform-shell__identity-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vx-platform-shell__identity-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vx-platform-shell__identity-role {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

.vx-logout-form {
  width: 100%;
}

.vx-button {
  border: none;
  cursor: pointer;
  font: inherit;
}

.vx-button--secondary {
  width: 100%;
  min-height: 42px;
  color: #f87171;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  transition: all 160ms ease;
}

.vx-button--secondary:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.4);
}

/* =========================================================
   8. MAIN VIEWPORT & TOPBAR
   ========================================================= */

.vx-platform-shell__main {
  grid-area: main;
  min-width: 0;
  min-height: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vx-platform-shell__topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 16px 32px;
  background: var(--color-bg-header);
  border-bottom: 1px solid var(--color-border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.vx-platform-shell__topbar-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vx-platform-shell__topbar-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.08);
  color: var(--vixly-blue-600);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vx-platform-shell__topbar-title {
  margin: 0;
  color: var(--color-text-main);
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.vx-platform-shell__content {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Legacy Edge */
    padding: clamp(16px, 2vw, 32px);
}

.vx-platform-shell__content > * {
    width: min(100%, var(--content-max-width));
    margin-inline: auto;
}

    .vx-platform-shell__content::-webkit-scrollbar {
        display: none; /* Chrome, Edge, and Safari */
    }

/* Topbar Quick Search */
.vx-topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 320px;
}

.vx-topbar-search input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 38px;
  background-color: var(--vixly-slate-100);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-main);
  transition: all var(--transition-fast);
}

.vx-topbar-search input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--vixly-blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.vx-topbar-search svg {
  position: absolute;
  left: 12px;
  color: var(--vixly-slate-400);
  pointer-events: none;
}

.vx-topbar-search kbd {
  position: absolute;
  right: 12px;
  background: #ffffff;
  border: 1px solid var(--vixly-slate-200);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-family: var(--font-family-mono);
  color: var(--vixly-slate-400);
}

/* Drawer Backdrop */
.vx-drawer-backdrop {
  display: none;
}

/* =========================================================
   9. PUBLIC LAYOUT (PublicLayout.razor)
   ========================================================= */

.vx-public-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 42px 20px;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 28rem), radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 24rem), linear-gradient(135deg, #090d16 0%, #0f172a 48%, #1e293b 100%);
}

.vx-public-shell__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 20rem);
}

.vx-public-shell__main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
}

.vx-public-shell__content {
  width: 100%;
}

/* =========================================================
   10. LOGIN PAGE STYLES (Login.razor)
   ========================================================= */

.vx-login {
  width: 100%;
}

.vx-login__shell {
  display: grid;
  grid-template-columns: 1.15fr 480px;
  overflow: hidden;
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.4), 0 16px 36px rgba(0, 0, 0, 0.2);
}

.vx-login__showcase {
  position: relative;
  overflow: hidden;
  padding: 54px;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.26), transparent 20rem), linear-gradient(135deg, #020617 0%, #0f172a 46%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vx-login__showcase::before {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 240px;
  height: 240px;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 72%);
  pointer-events: none;
}

.vx-login__showcase-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  width: fit-content;
}

.vx-login__showcase-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin-top: 36px;
}

.vx-login__showcase-logo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  padding: 6px;
}

.vx-login__showcase-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vx-login__showcase-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.vx-login__showcase-text {
  max-width: 540px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.75;
}

.vx-login__showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.vx-login__showcase-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.vx-login__showcase-card strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.vx-login__showcase-card span {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
}

.vx-login__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 44px;
  background: #ffffff;
}

.vx-login__header {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vx-login__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.vx-login__title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.vx-login__subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.vx-login__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vx-login__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vx-login__label {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.vx-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--vixly-slate-300);
  border-radius: 12px;
  background: #ffffff;
  transition: all 160ms ease;
}

.vx-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.vx-login__assist-row {
  display: flex;
  justify-content: flex-end;
}

.vx-login__assist-link {
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 140ms ease;
}

.vx-login__assist-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.vx-login__error {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
}

.vx-login__actions {
  margin-top: 6px;
}

.vx-button--primary {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(37, 99, 235, 0.3);
  cursor: pointer;
  transition: all 160ms ease;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.vx-button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

.vx-login__footer {
  margin-top: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   11. RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 960px) {
  .vx-login__shell {
    grid-template-columns: 1fr;
  }

  .vx-login__showcase {
    padding: 36px;
  }

  .vx-login__card {
    padding: 36px;
  }
}

@media (max-width: 768px) {
  .vx-login__showcase-grid {
    grid-template-columns: 1fr;
  }

  .vx-platform-shell {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
  }

  .vx-platform-shell__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: 280px;
    transform: translateX(-100%);
    box-shadow: 12px 0 36px rgba(15, 23, 42, 0.25);
  }

  .vx-platform-shell.mobile-open .vx-platform-shell__sidebar {
    transform: translateX(0);
  }

  .vx-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
  }

  .vx-platform-shell.mobile-open .vx-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .vx-platform-shell__topbar {
    padding: 16px;
  }

  .vx-topbar-search {
    display: none;
  }

  .vx-platform-shell__content {
    padding: 16px;
  }

  .vx-platform-shell__topbar-content {
    min-width: 0;
  }

  .vx-platform-shell__topbar-title {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
  }

  .vx-topbar-right .status-pill {
    padding-inline: 8px;
  }

  .vx-topbar-right .status-pill span:last-child {
    display: none;
  }
}

@media (max-width: 420px) {
  .vx-platform-shell__topbar {
    min-height: 68px;
    padding: 12px;
  }

  .vx-platform-shell__topbar-badge {
    display: none;
  }

  .vx-platform-shell__content {
    padding: 12px;
  }
}
/* =========================================================
   DOCUMENT SCROLLBAR
   ========================================================= */

/*
 * Preserve document scrolling while hiding the browser-owned
 * scrollbar. The application content has its own scroll region.
 */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    html::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

/* =========================================================
   18. BLAZOR ERROR UI

   PURPOSE:
   Keep the Blazor circuit-error notification hidden during
   normal operation and display it only when Blazor reports
   an actual unhandled circuit failure.

   IMPORTANT NOTES:
   - MainLayout always renders #blazor-error-ui
   - Blazor controls visibility when a real error occurs
   - Do not remove display: none
   ========================================================= */

#blazor-error-ui {
    position: fixed;
    z-index: 15000;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: none;
    padding: 0.9rem 3rem 0.9rem 1rem;
    border: 1px solid rgba(248, 113, 113, 0.34);
    border-radius: 14px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 18px 44px rgba(127, 29, 29, 0.18);
}

    #blazor-error-ui .reload {
        margin-left: 0.4rem;
        color: #b91c1c;
        font-weight: 900;
        text-decoration: underline;
    }

    #blazor-error-ui .dismiss {
        position: absolute;
        top: 50%;
        right: 1rem;
        cursor: pointer;
        transform: translateY(-50%);
        color: #991b1b;
        font-size: 1rem;
        font-weight: 900;
    }
/* Prevent guarded mutations from being repeated during a Blazor round trip. */
.vx-action-guard-notice { position:fixed; right:1.25rem; bottom:1.25rem; z-index:10000; max-width:min(24rem,calc(100vw - 2.5rem)); padding:.85rem 1rem; border:1px solid #93c5fd; border-radius:.75rem; background:#eff6ff; color:#172554; box-shadow:0 1rem 2.5rem rgba(15,23,42,.18); font-weight:700; }
[data-vx-action-pending] { cursor:wait!important; opacity:.72; pointer-events:none; }

/* Print only the completed-payment receipt when it is present. */
@media print {
    body:has(.vx-payment-receipt) * {
        visibility: hidden !important;
    }

    body:has(.vx-payment-receipt) .vx-payment-receipt,
    body:has(.vx-payment-receipt) .vx-payment-receipt * {
        visibility: visible !important;
    }

    body:has(.vx-payment-receipt) .vx-payment-receipt {
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        max-width: none;
        margin: 0;
        border: 0;
        box-shadow: none;
    }

    body:has(.vx-payment-receipt) .no-print {
        display: none !important;
    }
}
