/* =============================================================================
   SynergyHub Design System v2.0
   Premium, Elegant & Modern UI Framework
   ============================================================================= */

/* =============================================================================
   FONTS - Load Outfit for distinctive typography
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* =============================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================= */
:root {
    /* -------------------------------------------------------------------------
       Brand Colors (RGB values for alpha manipulation)
       ------------------------------------------------------------------------- */
    --sh-primary-rgb: 111, 61, 255;
    --sh-secondary-rgb: 255, 152, 0;
    --sh-success-rgb: 16, 185, 129;
    --sh-warning-rgb: 245, 158, 11;
    --sh-error-rgb: 239, 68, 68;
    --sh-info-rgb: 59, 130, 246;

    /* -------------------------------------------------------------------------
       Premium Shadows - Layered for depth
       ------------------------------------------------------------------------- */
    --sh-shadow-xs: 0 1px 2px rgba(26, 26, 46, 0.04);
    --sh-shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06), 0 1px 2px rgba(26, 26, 46, 0.04);
    --sh-shadow-md: 0 4px 6px rgba(26, 26, 46, 0.05), 0 2px 4px rgba(26, 26, 46, 0.04);
    --sh-shadow-lg: 0 10px 15px rgba(26, 26, 46, 0.08), 0 4px 6px rgba(26, 26, 46, 0.04);
    --sh-shadow-xl: 0 20px 25px rgba(26, 26, 46, 0.1), 0 8px 10px rgba(26, 26, 46, 0.04);
    --sh-shadow-2xl: 0 25px 50px rgba(26, 26, 46, 0.15);

    /* Colored shadows for primary actions */
    --sh-shadow-primary-sm: 0 2px 8px rgba(var(--sh-primary-rgb), 0.15);
    --sh-shadow-primary: 0 4px 14px rgba(var(--sh-primary-rgb), 0.25);
    --sh-shadow-primary-lg: 0 8px 24px rgba(var(--sh-primary-rgb), 0.3);
    --sh-shadow-primary-glow: 0 0 20px rgba(var(--sh-primary-rgb), 0.4);

    /* -------------------------------------------------------------------------
       Border Radius - Soft & Modern
       ------------------------------------------------------------------------- */
    --sh-radius-xs: 4px;
    --sh-radius-sm: 6px;
    --sh-radius-md: 8px;
    --sh-radius-lg: 12px;
    --sh-radius-xl: 16px;
    --sh-radius-2xl: 20px;
    --sh-radius-3xl: 24px;
    --sh-radius-full: 9999px;

    /* -------------------------------------------------------------------------
       Spacing Scale
       ------------------------------------------------------------------------- */
    --sh-space-0: 0;
    --sh-space-1: 4px;
    --sh-space-2: 8px;
    --sh-space-3: 12px;
    --sh-space-4: 16px;
    --sh-space-5: 20px;
    --sh-space-6: 24px;
    --sh-space-8: 32px;
    --sh-space-10: 40px;
    --sh-space-12: 48px;
    --sh-space-16: 64px;

    /* -------------------------------------------------------------------------
       Transitions - Smooth & Elegant
       ------------------------------------------------------------------------- */
    --sh-ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --sh-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --sh-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --sh-duration-fast: 150ms;
    --sh-duration-base: 200ms;
    --sh-duration-slow: 300ms;
    --sh-duration-slower: 400ms;

    --sh-transition-fast: var(--sh-duration-fast) var(--sh-ease-out);
    --sh-transition-base: var(--sh-duration-base) var(--sh-ease-out);
    --sh-transition-slow: var(--sh-duration-slow) var(--sh-ease-out);
    --sh-transition-spring: var(--sh-duration-slow) var(--sh-ease-spring);

    /* -------------------------------------------------------------------------
       Typography
       ------------------------------------------------------------------------- */
    --sh-font-sans: 'Outfit', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sh-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --sh-font-weight-light: 300;
    --sh-font-weight-normal: 400;
    --sh-font-weight-medium: 500;
    --sh-font-weight-semibold: 600;
    --sh-font-weight-bold: 700;

    --sh-text-xs: 0.75rem;
    --sh-text-sm: 0.8125rem;
    --sh-text-base: 0.875rem;
    --sh-text-lg: 1rem;
    --sh-text-xl: 1.125rem;
    --sh-text-2xl: 1.25rem;
    --sh-text-3xl: 1.5rem;

    /* -------------------------------------------------------------------------
       Surface Colors (Light Mode)
       ------------------------------------------------------------------------- */
    --sh-surface-0: #ffffff;
    --sh-surface-1: #f8f9fc;
    --sh-surface-2: #f1f3f9;
    --sh-surface-3: #e8ebf2;

    --sh-bg-subtle: rgba(26, 26, 46, 0.02);
    --sh-bg-muted: rgba(26, 26, 46, 0.04);
    --sh-bg-hover: rgba(26, 26, 46, 0.06);
    --sh-bg-active: rgba(26, 26, 46, 0.08);
    --sh-bg-selected: rgba(var(--sh-primary-rgb), 0.08);

    --sh-border-subtle: rgba(26, 26, 46, 0.06);
    --sh-border-default: rgba(26, 26, 46, 0.1);
    --sh-border-strong: rgba(26, 26, 46, 0.15);
    --sh-border-focus: rgba(var(--sh-primary-rgb), 0.5);

    /* -------------------------------------------------------------------------
       Gradients
       ------------------------------------------------------------------------- */
    --sh-gradient-primary: linear-gradient(135deg, #6f3dff 0%, #9d7aff 100%);
    --sh-gradient-primary-dark: linear-gradient(135deg, #5a2ed9 0%, #6f3dff 100%);
    --sh-gradient-secondary: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    --sh-gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --sh-gradient-surface: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(248,249,252,1) 100%);
    --sh-gradient-shine: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);

    /* -------------------------------------------------------------------------
       Subtle Noise Texture
       ------------------------------------------------------------------------- */
    --sh-noise-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    --sh-noise-opacity: 0.03;

    /* -------------------------------------------------------------------------
       Glassmorphism
       ------------------------------------------------------------------------- */
    --sh-glass-bg: rgba(255, 255, 255, 0.7);
    --sh-glass-border: rgba(255, 255, 255, 0.3);
    --sh-glass-blur: 12px;
}

/* =============================================================================
   DARK MODE TOKENS
   ============================================================================= */
.mud-theme-dark,
[data-theme="dark"] {
    --sh-primary-rgb: 167, 139, 250;
    --sh-secondary-rgb: 251, 191, 36;
    --sh-success-rgb: 52, 211, 153;
    --sh-warning-rgb: 251, 191, 36;
    --sh-error-rgb: 248, 113, 113;
    --sh-info-rgb: 96, 165, 250;

    --sh-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.12);
    --sh-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
    --sh-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.2);
    --sh-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.35), 0 8px 10px rgba(0, 0, 0, 0.2);

    --sh-surface-0: #1a1a2e;
    --sh-surface-1: #16162a;
    --sh-surface-2: #121220;
    --sh-surface-3: #0f0f1a;

    --sh-bg-subtle: rgba(255, 255, 255, 0.02);
    --sh-bg-muted: rgba(255, 255, 255, 0.04);
    --sh-bg-hover: rgba(255, 255, 255, 0.06);
    --sh-bg-active: rgba(255, 255, 255, 0.08);
    --sh-bg-selected: rgba(var(--sh-primary-rgb), 0.12);

    --sh-border-subtle: rgba(255, 255, 255, 0.06);
    --sh-border-default: rgba(255, 255, 255, 0.1);
    --sh-border-strong: rgba(255, 255, 255, 0.15);

    --sh-gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --sh-gradient-surface: linear-gradient(180deg, rgba(26,26,46,0) 0%, rgba(15,15,26,1) 100%);

    --sh-glass-bg: rgba(26, 26, 46, 0.7);
    --sh-glass-border: rgba(255, 255, 255, 0.1);
}


/* =============================================================================
   GLOBAL STYLES
   ============================================================================= */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus outlines */
*:focus-visible {
    outline: 2px solid rgba(var(--sh-primary-rgb), 0.5);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(var(--sh-primary-rgb), 0.2);
    color: inherit;
}

/* =============================================================================
   MUDBLAZOR COMPONENT OVERRIDES
   ============================================================================= */

/* -------------------------------------------------------------------------
   AppBar - Premium Glass Effect
   ------------------------------------------------------------------------- */
.mud-appbar {
    backdrop-filter: blur(var(--sh-glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--sh-glass-blur)) !important;
    border-bottom: 1px solid var(--sh-border-subtle) !important;
}

/* -------------------------------------------------------------------------
   Drawer - Elegant Navigation
   ------------------------------------------------------------------------- */
.mud-drawer {
    border-right: 1px solid var(--sh-border-subtle) !important;
}

.mud-drawer .mud-nav-link {
    border-radius: var(--sh-radius-lg) !important;
    margin: var(--sh-space-1) var(--sh-space-2) !important;
    transition: all var(--sh-transition-base) !important;
}

.mud-drawer .mud-nav-link:hover {
    background: var(--sh-bg-hover) !important;
    transform: translateX(4px);
}

.mud-drawer .mud-nav-link.active {
    background: var(--sh-bg-selected) !important;
    color: rgb(var(--sh-primary-rgb)) !important;
}

.mud-drawer .mud-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--sh-gradient-primary);
    border-radius: 0 var(--sh-radius-full) var(--sh-radius-full) 0;
}

/* -------------------------------------------------------------------------
   Cards - Elevated & Interactive
   ------------------------------------------------------------------------- */
.mud-paper {
    transition: all var(--sh-transition-base) !important;
}

.mud-card {
    border: 1px solid var(--sh-border-subtle) !important;
    overflow: hidden;
}

.mud-card:hover {
    border-color: var(--sh-border-default) !important;
}

/* -------------------------------------------------------------------------
   Buttons - Premium Feel
   ------------------------------------------------------------------------- */
.mud-button-root {
    transition: all var(--sh-transition-base) !important;
    font-weight: var(--sh-font-weight-semibold) !important;
}

/* Primary button with gradient */
.mud-button-filled.mud-button-primary {
    background: var(--sh-gradient-primary) !important;
    box-shadow: var(--sh-shadow-primary-sm) !important;
}

.mud-button-filled.mud-button-primary:hover {
    background: var(--sh-gradient-primary-dark) !important;
    box-shadow: var(--sh-shadow-primary) !important;
    transform: translateY(-1px);
}

.mud-button-filled.mud-button-primary:active {
    transform: translateY(0);
    box-shadow: var(--sh-shadow-primary-sm) !important;
}

/* Secondary button */
.mud-button-filled.mud-button-secondary {
    background: var(--sh-gradient-secondary) !important;
}

/* Outlined buttons */
.mud-button-outlined {
    border-width: 1.5px !important;
}

.mud-button-outlined:hover {
    background: var(--sh-bg-hover) !important;
}

/* Icon buttons */
.mud-icon-button {
    transition: all var(--sh-transition-fast) !important;
}

.mud-icon-button:hover {
    background: var(--sh-bg-hover) !important;
    transform: scale(1.05);
}

/* FAB */
.mud-fab {
    box-shadow: var(--sh-shadow-primary) !important;
}

.mud-fab:hover {
    box-shadow: var(--sh-shadow-primary-lg) !important;
    transform: scale(1.05);
}

/* -------------------------------------------------------------------------
   Text Fields - Clean & Modern
   ------------------------------------------------------------------------- */
.mud-input-control {
    transition: all var(--sh-transition-base) !important;
}

.mud-input-outlined .mud-input-outlined-border {
    border-radius: var(--sh-radius-md) !important;
    transition: all var(--sh-transition-base) !important;
}

.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: var(--sh-border-strong) !important;
}

.mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: rgb(var(--sh-primary-rgb)) !important;
    box-shadow: 0 0 0 3px rgba(var(--sh-primary-rgb), 0.1) !important;
}

/* Filled inputs */
.mud-input-filled .mud-input-slot {
    border-radius: var(--sh-radius-md) var(--sh-radius-md) 0 0 !important;
    background: var(--sh-bg-muted) !important;
}

/* -------------------------------------------------------------------------
   Tables & DataGrids - Clean Data Display
   ------------------------------------------------------------------------- */
.mud-table {
    border: 1px solid var(--sh-border-subtle) !important;
    border-radius: var(--sh-radius-lg) !important;
    overflow: hidden !important;
}

.mud-table-head {
    background: var(--sh-bg-muted) !important;
}

.mud-table-head .mud-table-cell {
    font-weight: var(--sh-font-weight-semibold) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.mud-table-row {
    transition: background var(--sh-transition-fast) !important;
}

.mud-table-row:hover {
    background: var(--sh-bg-hover) !important;
}

/* DataGrid */
.mud-data-grid {
    border: 1px solid var(--sh-border-subtle) !important;
    border-radius: var(--sh-radius-lg) !important;
    overflow: hidden !important;
}

/* -------------------------------------------------------------------------
   Chips - Refined Pills
   ------------------------------------------------------------------------- */
.mud-chip {
    font-weight: var(--sh-font-weight-medium) !important;
    transition: all var(--sh-transition-fast) !important;
}

.mud-chip:hover {
    transform: scale(1.02);
}

.mud-chip.mud-chip-filled {
    box-shadow: var(--sh-shadow-xs) !important;
}

/* -------------------------------------------------------------------------
   Dialogs & Modals - Floating Elegance
   ------------------------------------------------------------------------- */
.mud-dialog {
    border-radius: var(--sh-radius-xl) !important;
    box-shadow: var(--sh-shadow-2xl) !important;
    border: 1px solid var(--sh-border-subtle) !important;
}

.mud-dialog-title {
    padding: var(--sh-space-6) !important;
    border-bottom: 1px solid var(--sh-border-subtle) !important;
}

.mud-dialog-content {
    padding: var(--sh-space-6) !important;
}

.mud-dialog-actions {
    padding: var(--sh-space-4) var(--sh-space-6) !important;
    border-top: 1px solid var(--sh-border-subtle) !important;
    background: var(--sh-bg-subtle) !important;
}

/* -------------------------------------------------------------------------
   Drawers (Side Panels) - Smooth Slide
   ------------------------------------------------------------------------- */
.mud-drawer-content {
    border-radius: var(--sh-radius-xl) 0 0 var(--sh-radius-xl) !important;
}

/* -------------------------------------------------------------------------
   Alerts - Clear Communication
   ------------------------------------------------------------------------- */
.mud-alert {
    border-radius: var(--sh-radius-lg) !important;
    border-left-width: 4px !important;
}

.mud-alert-filled {
    box-shadow: var(--sh-shadow-sm) !important;
}

/* -------------------------------------------------------------------------
   Tooltips - Subtle Hints
   ------------------------------------------------------------------------- */
.mud-tooltip {
    border-radius: var(--sh-radius-md) !important;
    box-shadow: var(--sh-shadow-lg) !important;
    font-size: var(--sh-text-sm) !important;
    padding: var(--sh-space-2) var(--sh-space-3) !important;
}

/* -------------------------------------------------------------------------
   Menus & Popovers - Floating Panels
   ------------------------------------------------------------------------- */
.mud-menu,
.mud-popover-paper {
    border-radius: var(--sh-radius-lg) !important;
    box-shadow: var(--sh-shadow-xl) !important;
    border: 1px solid var(--sh-border-subtle) !important;
    overflow: hidden !important;
}

.mud-list-item {
    border-radius: var(--sh-radius-md) !important;
    margin: var(--sh-space-1) !important;
    transition: all var(--sh-transition-fast) !important;
}

.mud-list-item:hover {
    background: var(--sh-bg-hover) !important;
}

/* -------------------------------------------------------------------------
   Tabs - Clean Navigation
   ------------------------------------------------------------------------- */
.mud-tabs {
    border-radius: var(--sh-radius-lg) !important;
}

.mud-tab {
    font-weight: var(--sh-font-weight-medium) !important;
    transition: all var(--sh-transition-base) !important;
}

.mud-tab:hover {
    background: var(--sh-bg-hover) !important;
}

.mud-tab-active {
    font-weight: var(--sh-font-weight-semibold) !important;
}

.mud-tabs-toolbar {
    border-bottom: 1px solid var(--sh-border-subtle) !important;
}

/* Tab indicator with gradient */
.mud-tabs-slider {
    background: var(--sh-gradient-primary) !important;
    height: 3px !important;
    border-radius: var(--sh-radius-full) !important;
}

/* -------------------------------------------------------------------------
   Progress Indicators - Smooth Motion
   ------------------------------------------------------------------------- */
.mud-progress-linear {
    border-radius: var(--sh-radius-full) !important;
    overflow: hidden !important;
}

.mud-progress-linear-bar {
    background: var(--sh-gradient-primary) !important;
}

.mud-progress-circular-circle {
    stroke: rgb(var(--sh-primary-rgb)) !important;
}

/* -------------------------------------------------------------------------
   Avatars - Refined Identities
   ------------------------------------------------------------------------- */
.mud-avatar {
    box-shadow: var(--sh-shadow-sm) !important;
    border: 2px solid var(--sh-surface-0) !important;
}

.mud-avatar-group .mud-avatar {
    margin-left: -8px;
}

/* -------------------------------------------------------------------------
   Badges - Attention Grabbers
   ------------------------------------------------------------------------- */
.mud-badge .mud-badge-content {
    font-weight: var(--sh-font-weight-semibold) !important;
    box-shadow: var(--sh-shadow-sm) !important;
}

/* -------------------------------------------------------------------------
   Switches & Checkboxes - Toggle States
   ------------------------------------------------------------------------- */
.mud-switch-track {
    transition: all var(--sh-transition-base) !important;
}

.mud-checkbox-icons {
    transition: all var(--sh-transition-fast) !important;
}

/* -------------------------------------------------------------------------
   Skeleton Loaders - Elegant Loading
   ------------------------------------------------------------------------- */
.mud-skeleton {
    background: linear-gradient(
        90deg,
        var(--sh-bg-muted) 25%,
        var(--sh-bg-hover) 50%,
        var(--sh-bg-muted) 75%
    ) !important;
    background-size: 200% 100% !important;
    animation: sh-shimmer 1.5s infinite !important;
    border-radius: var(--sh-radius-md) !important;
}

@keyframes sh-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* =============================================================================
   CUSTOM COMPONENT CLASSES
   ============================================================================= */

/* -------------------------------------------------------------------------
   Premium Card Variants
   ------------------------------------------------------------------------- */
.sh-card {
    position: relative;
    background: var(--sh-surface-0);
    border: 1px solid var(--sh-border-subtle);
    border-radius: var(--sh-radius-lg);
    box-shadow: var(--sh-shadow-sm);
    transition: all var(--sh-transition-base);
    overflow: hidden;
}

.sh-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--sh-noise-texture);
    opacity: var(--sh-noise-opacity);
    pointer-events: none;
    border-radius: inherit;
}

.sh-card:hover {
    box-shadow: var(--sh-shadow-md);
    border-color: var(--sh-border-default);
}

.sh-card-elevated {
    box-shadow: var(--sh-shadow-md);
}

.sh-card-elevated:hover {
    box-shadow: var(--sh-shadow-lg);
    transform: translateY(-2px);
}

.sh-card-interactive {
    cursor: pointer;
}

.sh-card-interactive:active {
    transform: scale(0.98);
}

.sh-card-glass {
    background: var(--sh-glass-bg);
    backdrop-filter: blur(var(--sh-glass-blur));
    -webkit-backdrop-filter: blur(var(--sh-glass-blur));
    border: 1px solid var(--sh-glass-border);
}

.sh-card-gradient {
    background: var(--sh-gradient-surface);
}

/* Card sections */
.sh-card-header {
    padding: var(--sh-space-5) var(--sh-space-6);
    border-bottom: 1px solid var(--sh-border-subtle);
}

.sh-card-content {
    padding: var(--sh-space-5) var(--sh-space-6);
}

.sh-card-footer {
    padding: var(--sh-space-4) var(--sh-space-6);
    border-top: 1px solid var(--sh-border-subtle);
    background: var(--sh-bg-subtle);
}

/* -------------------------------------------------------------------------
   KPI Cards - Dashboard Highlights
   ------------------------------------------------------------------------- */
.sh-kpi-card {
    position: relative;
    background: var(--sh-surface-0);
    border: 1px solid var(--sh-border-subtle);
    border-radius: var(--sh-radius-xl);
    padding: var(--sh-space-6);
    box-shadow: var(--sh-shadow-sm);
    transition: all var(--sh-transition-base);
    overflow: hidden;
}

.sh-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sh-gradient-primary);
    opacity: 0;
    transition: opacity var(--sh-transition-base);
}

.sh-kpi-card:hover {
    box-shadow: var(--sh-shadow-md);
    transform: translateY(-2px);
}

.sh-kpi-card:hover::before {
    opacity: 1;
}

.sh-kpi-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--sh-noise-texture);
    opacity: var(--sh-noise-opacity);
    pointer-events: none;
    border-radius: inherit;
}

.sh-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--sh-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--sh-primary-rgb), 0.1);
    color: rgb(var(--sh-primary-rgb));
}

.sh-kpi-icon-success {
    background: rgba(var(--sh-success-rgb), 0.1);
    color: rgb(var(--sh-success-rgb));
}

.sh-kpi-icon-warning {
    background: rgba(var(--sh-warning-rgb), 0.1);
    color: rgb(var(--sh-warning-rgb));
}

.sh-kpi-icon-error {
    background: rgba(var(--sh-error-rgb), 0.1);
    color: rgb(var(--sh-error-rgb));
}

.sh-kpi-value {
    font-size: var(--sh-text-3xl);
    font-weight: var(--sh-font-weight-bold);
    line-height: 1.2;
}

.sh-kpi-label {
    font-size: var(--sh-text-sm);
    color: var(--mud-palette-text-secondary);
    font-weight: var(--sh-font-weight-medium);
}

.sh-kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: var(--sh-space-1);
    font-size: var(--sh-text-sm);
    font-weight: var(--sh-font-weight-medium);
    padding: var(--sh-space-1) var(--sh-space-2);
    border-radius: var(--sh-radius-full);
}

.sh-kpi-trend-up {
    background: rgba(var(--sh-success-rgb), 0.1);
    color: rgb(var(--sh-success-rgb));
}

.sh-kpi-trend-down {
    background: rgba(var(--sh-error-rgb), 0.1);
    color: rgb(var(--sh-error-rgb));
}

/* -------------------------------------------------------------------------
   Status Badges - State Indicators
   ------------------------------------------------------------------------- */
.sh-status {
    display: inline-flex;
    align-items: center;
    gap: var(--sh-space-2);
    padding: var(--sh-space-1) var(--sh-space-3);
    font-size: var(--sh-text-sm);
    font-weight: var(--sh-font-weight-medium);
    border-radius: var(--sh-radius-full);
}

.sh-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.sh-status-success {
    background: rgba(var(--sh-success-rgb), 0.1);
    color: rgb(var(--sh-success-rgb));
}

.sh-status-warning {
    background: rgba(var(--sh-warning-rgb), 0.1);
    color: rgb(var(--sh-warning-rgb));
}

.sh-status-error {
    background: rgba(var(--sh-error-rgb), 0.1);
    color: rgb(var(--sh-error-rgb));
}

.sh-status-info {
    background: rgba(var(--sh-info-rgb), 0.1);
    color: rgb(var(--sh-info-rgb));
}

.sh-status-neutral {
    background: var(--sh-bg-muted);
    color: var(--mud-palette-text-secondary);
}

/* -------------------------------------------------------------------------
   Section Headers
   ------------------------------------------------------------------------- */
.sh-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sh-space-6);
}

.sh-section-title {
    font-size: var(--sh-text-xl);
    font-weight: var(--sh-font-weight-semibold);
    color: var(--mud-palette-text-primary);
}

.sh-section-subtitle {
    font-size: var(--sh-text-sm);
    color: var(--mud-palette-text-secondary);
    margin-top: var(--sh-space-1);
}

/* -------------------------------------------------------------------------
   Page Headers - Elegant Centered Design
   ------------------------------------------------------------------------- */
.sh-page-header {
    margin-bottom: var(--sh-space-8);
}

.sh-page-title {
    font-size: var(--sh-text-3xl);
    font-weight: var(--sh-font-weight-bold);
    color: var(--mud-palette-text-primary);
    margin-bottom: var(--sh-space-2);
}

.sh-page-description {
    font-size: var(--sh-text-lg);
    color: var(--mud-palette-text-secondary);
    max-width: 600px;
}

/* Elegant centered page header */
.page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--sh-space-8);
    padding: var(--sh-space-6) var(--sh-space-4);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.page-title-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgb(var(--sh-primary-rgb)), rgba(var(--sh-primary-rgb), 0.5));
    border-radius: var(--sh-radius-full);
    margin: var(--sh-space-3) 0;
}

.page-subtitle {
    font-size: var(--sh-text-base);
    color: var(--mud-palette-text-secondary);
    font-weight: var(--sh-font-weight-normal);
    margin: 0;
    max-width: 400px;
}

/* -------------------------------------------------------------------------
   Toolbar
   ------------------------------------------------------------------------- */
.sh-toolbar {
    display: flex;
    align-items: center;
    gap: var(--sh-space-4);
    padding: var(--sh-space-4) var(--sh-space-6);
    background: var(--sh-surface-0);
    border: 1px solid var(--sh-border-subtle);
    border-radius: var(--sh-radius-lg);
    box-shadow: var(--sh-shadow-xs);
}

.sh-toolbar-sticky {
    position: sticky;
    top: var(--sh-space-4);
    z-index: 10;
    backdrop-filter: blur(var(--sh-glass-blur));
    -webkit-backdrop-filter: blur(var(--sh-glass-blur));
    background: var(--sh-glass-bg);
}

/* -------------------------------------------------------------------------
   Empty States
   ------------------------------------------------------------------------- */
.sh-empty-state {
    text-align: center;
    padding: var(--sh-space-12) var(--sh-space-6);
}

.sh-empty-state-icon {
    font-size: 4rem;
    color: var(--mud-palette-text-disabled);
    margin-bottom: var(--sh-space-4);
    opacity: 0.5;
}

.sh-empty-state-title {
    font-size: var(--sh-text-xl);
    font-weight: var(--sh-font-weight-semibold);
    color: var(--mud-palette-text-primary);
    margin-bottom: var(--sh-space-2);
}

.sh-empty-state-description {
    font-size: var(--sh-text-base);
    color: var(--mud-palette-text-secondary);
    max-width: 400px;
    margin: 0 auto var(--sh-space-6);
}

/* -------------------------------------------------------------------------
   Data List Items
   ------------------------------------------------------------------------- */
.sh-list-item {
    display: flex;
    align-items: center;
    gap: var(--sh-space-4);
    padding: var(--sh-space-4);
    border-radius: var(--sh-radius-lg);
    transition: all var(--sh-transition-fast);
    cursor: pointer;
}

.sh-list-item:hover {
    background: var(--sh-bg-hover);
}

.sh-list-item-selected {
    background: var(--sh-bg-selected);
    border: 1px solid rgba(var(--sh-primary-rgb), 0.2);
}

/* -------------------------------------------------------------------------
   Form Sections
   ------------------------------------------------------------------------- */
.sh-form-section {
    margin-bottom: var(--sh-space-8);
}

.sh-form-section-title {
    font-size: var(--sh-text-lg);
    font-weight: var(--sh-font-weight-semibold);
    color: var(--mud-palette-text-primary);
    margin-bottom: var(--sh-space-4);
    padding-bottom: var(--sh-space-3);
    border-bottom: 1px solid var(--sh-border-subtle);
}

.sh-form-group {
    margin-bottom: var(--sh-space-5);
}

.sh-form-label {
    display: block;
    font-size: var(--sh-text-sm);
    font-weight: var(--sh-font-weight-medium);
    color: var(--mud-palette-text-secondary);
    margin-bottom: var(--sh-space-2);
}

/* =============================================================================
   FORM LAYOUT COMPONENTS
   Shared form structure classes used across wizard steps and form components
   ============================================================================= */

/* Form Section Container */
.sh-form-section {
    margin-bottom: 32px;
}

.sh-form-section:last-child {
    margin-bottom: 0;
}

/* Service Selection Grid & Cards */
.sh-service-grid {
    display: grid;
    gap: 16px;
}

.sh-service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sh-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(111, 61, 255, 0.05) 0%, rgba(111, 61, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sh-service-card:hover {
    border-color: rgba(111, 61, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(111, 61, 255, 0.15);
}

.sh-service-card:hover::before {
    opacity: 1;
}

.sh-service-card--selected {
    border-color: #6f3dff;
    background: linear-gradient(135deg, rgba(111, 61, 255, 0.08) 0%, rgba(111, 61, 255, 0.04) 100%);
    box-shadow: 0 4px 20px rgba(111, 61, 255, 0.15);
}

.sh-service-card--selected::before {
    opacity: 1;
}

.sh-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(111, 61, 255, 0.15) 0%, rgba(111, 61, 255, 0.08) 100%);
    color: #6f3dff;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.sh-service-card--selected .sh-service-icon {
    background: linear-gradient(135deg, #6f3dff 0%, #9d7aff 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(111, 61, 255, 0.3);
}

.sh-service-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.sh-service-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.sh-service-card--selected .sh-service-title {
    color: #6f3dff;
}

.sh-service-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.sh-service-checkbox {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Service Card Checkbox - Light Mode */
.sh-service-checkbox .mud-checkbox .mud-icon-root {
    color: rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.sh-service-card:hover .sh-service-checkbox .mud-checkbox .mud-icon-root {
    color: rgba(111, 61, 255, 0.4);
}

.sh-service-card--selected .sh-service-checkbox .mud-checkbox .mud-icon-root {
    color: #6f3dff;
}

/* Input Card Container */
.sh-input-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sh-input-card:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.sh-input-card--highlight {
    background: linear-gradient(135deg, rgba(111, 61, 255, 0.06) 0%, rgba(111, 61, 255, 0.03) 100%);
    border-color: rgba(111, 61, 255, 0.3);
}

/* Toggle Group Layout */
.sh-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

/* Radio Card Group */
.sh-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sh-radio-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sh-radio-card:hover {
    border-color: rgba(111, 61, 255, 0.25);
    background: rgba(111, 61, 255, 0.03);
}

.sh-radio-card--selected {
    border-color: #6f3dff;
    background: linear-gradient(135deg, rgba(111, 61, 255, 0.08) 0%, transparent 100%);
}

.sh-radio-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sh-radio-card--selected .sh-radio-indicator {
    border-color: #6f3dff;
    background: #6f3dff;
}

.sh-radio-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.sh-radio-card--selected .sh-radio-indicator::after {
    opacity: 1;
    transform: scale(1);
}

.sh-radio-content {
    flex: 1;
}

.sh-radio-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a2e;
}

.sh-radio-description {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

/* Checkbox Card */
.sh-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.sh-checkbox-card:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
}

.sh-checkbox-card--checked {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, transparent 100%);
    border-color: rgba(16, 185, 129, 0.35);
}

.sh-checkbox-content {
    flex: 1;
    padding-top: 2px;
}

.sh-checkbox-label {
    font-size: 0.9rem;
    color: #1a1a2e;
    line-height: 1.5;
}

/* Text Utilities */
.sh-text-muted {
    color: #64748b;
    font-style: italic;
}

.sh-text-gradient {
    background: linear-gradient(135deg, #6f3dff 0%, #9d7aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark Mode Support for Form Components */
.mud-theme-dark .sh-service-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.mud-theme-dark .sh-service-card:hover {
    border-color: rgba(111, 61, 255, 0.4);
    box-shadow: 0 4px 20px rgba(111, 61, 255, 0.2);
}

.mud-theme-dark .sh-service-card--selected {
    background: linear-gradient(135deg, rgba(111, 61, 255, 0.15) 0%, rgba(111, 61, 255, 0.08) 100%);
}

.mud-theme-dark .sh-service-title {
    color: #e2e8f0;
}

.mud-theme-dark .sh-service-card--selected .sh-service-title {
    color: #a78bfa;
}

.mud-theme-dark .sh-service-description {
    color: #94a3b8;
}

/* Service Card Checkbox - Dark Mode */
.mud-theme-dark .sh-service-checkbox .mud-checkbox .mud-icon-root {
    color: rgba(255, 255, 255, 0.3);
}

.mud-theme-dark .sh-service-card:hover .sh-service-checkbox .mud-checkbox .mud-icon-root {
    color: rgba(167, 139, 250, 0.6);
}

.mud-theme-dark .sh-service-card--selected .sh-service-checkbox .mud-checkbox .mud-icon-root {
    color: #a78bfa;
}

.mud-theme-dark .sh-input-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.mud-theme-dark .sh-input-card:hover {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.15);
}

.mud-theme-dark .sh-input-card--highlight {
    background: linear-gradient(135deg, rgba(111, 61, 255, 0.12) 0%, rgba(111, 61, 255, 0.06) 100%);
    border-color: rgba(111, 61, 255, 0.4);
}

.mud-theme-dark .sh-radio-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.mud-theme-dark .sh-radio-card:hover {
    background: rgba(111, 61, 255, 0.08);
    border-color: rgba(111, 61, 255, 0.3);
}

.mud-theme-dark .sh-radio-card--selected {
    background: linear-gradient(135deg, rgba(111, 61, 255, 0.15) 0%, transparent 100%);
}

.mud-theme-dark .sh-radio-indicator {
    border-color: rgba(255, 255, 255, 0.2);
}

.mud-theme-dark .sh-radio-label {
    color: #e2e8f0;
}

.mud-theme-dark .sh-radio-description {
    color: #94a3b8;
}

.mud-theme-dark .sh-checkbox-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.mud-theme-dark .sh-checkbox-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.mud-theme-dark .sh-checkbox-card--checked {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, transparent 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

.mud-theme-dark .sh-checkbox-label {
    color: #e2e8f0;
}

.mud-theme-dark .sh-text-muted {
    color: #94a3b8;
}

/* Responsive Adjustments for Form Components */
@media (max-width: 768px) {
    .sh-service-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    .sh-service-icon {
        margin-bottom: 8px;
    }

    .sh-toggle-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .sh-service-card {
        padding: 16px 12px;
    }

    .sh-input-card {
        padding: 16px;
    }
}

/* =============================================================================
   LAYOUT UTILITIES
   ============================================================================= */

/* Flex utilities */
.sh-flex { display: flex; }
.sh-flex-col { flex-direction: column; }
.sh-flex-wrap { flex-wrap: wrap; }
.sh-flex-center { align-items: center; justify-content: center; }
.sh-flex-between { justify-content: space-between; }
.sh-items-center { align-items: center; }
.sh-items-start { align-items: flex-start; }
.sh-items-end { align-items: flex-end; }
.sh-justify-center { justify-content: center; }
.sh-justify-between { justify-content: space-between; }
.sh-justify-end { justify-content: flex-end; }

/* Gap utilities */
.sh-gap-1 { gap: var(--sh-space-1); }
.sh-gap-2 { gap: var(--sh-space-2); }
.sh-gap-3 { gap: var(--sh-space-3); }
.sh-gap-4 { gap: var(--sh-space-4); }
.sh-gap-5 { gap: var(--sh-space-5); }
.sh-gap-6 { gap: var(--sh-space-6); }
.sh-gap-8 { gap: var(--sh-space-8); }

/* Grid utilities */
.sh-grid { display: grid; gap: var(--sh-space-4); }
.sh-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sh-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sh-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
    .sh-grid-3, .sh-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .sh-grid-2, .sh-grid-3, .sh-grid-4 { grid-template-columns: 1fr; }
}

/* =============================================================================
   TYPOGRAPHY UTILITIES
   ============================================================================= */

.sh-text-muted { color: var(--mud-palette-text-secondary); }
.sh-text-primary { color: rgb(var(--sh-primary-rgb)); }
.sh-text-success { color: rgb(var(--sh-success-rgb)); }
.sh-text-warning { color: rgb(var(--sh-warning-rgb)); }
.sh-text-error { color: rgb(var(--sh-error-rgb)); }

.sh-text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sh-text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sh-text-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================================================
   ANIMATION UTILITIES
   ============================================================================= */

.sh-fade-in {
    animation: sh-fade-in var(--sh-duration-slow) var(--sh-ease-out);
}

@keyframes sh-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sh-scale-in {
    animation: sh-scale-in var(--sh-duration-base) var(--sh-ease-spring);
}

@keyframes sh-scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sh-slide-up {
    animation: sh-slide-up var(--sh-duration-slow) var(--sh-ease-out);
}

@keyframes sh-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sh-slide-in-right {
    animation: sh-slide-in-right var(--sh-duration-slow) var(--sh-ease-out);
}

@keyframes sh-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered children animation */
.sh-stagger > * {
    animation: sh-fade-in var(--sh-duration-slow) var(--sh-ease-out) both;
}

.sh-stagger > *:nth-child(1) { animation-delay: 0ms; }
.sh-stagger > *:nth-child(2) { animation-delay: 50ms; }
.sh-stagger > *:nth-child(3) { animation-delay: 100ms; }
.sh-stagger > *:nth-child(4) { animation-delay: 150ms; }
.sh-stagger > *:nth-child(5) { animation-delay: 200ms; }
.sh-stagger > *:nth-child(6) { animation-delay: 250ms; }

/* -------------------------------------------------------------------------
   Noise Texture Overlay Utility
   ------------------------------------------------------------------------- */
.sh-noise {
    position: relative;
}

.sh-noise::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--sh-noise-texture);
    opacity: var(--sh-noise-opacity);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.sh-noise > * {
    position: relative;
    z-index: 1;
}

/* =============================================================================
   SPACING UTILITIES
   ============================================================================= */

/* Margin */
.sh-m-0 { margin: 0; }
.sh-m-1 { margin: var(--sh-space-1); }
.sh-m-2 { margin: var(--sh-space-2); }
.sh-m-3 { margin: var(--sh-space-3); }
.sh-m-4 { margin: var(--sh-space-4); }
.sh-m-5 { margin: var(--sh-space-5); }
.sh-m-6 { margin: var(--sh-space-6); }

.sh-mt-0 { margin-top: 0; }
.sh-mt-2 { margin-top: var(--sh-space-2); }
.sh-mt-4 { margin-top: var(--sh-space-4); }
.sh-mt-6 { margin-top: var(--sh-space-6); }
.sh-mt-8 { margin-top: var(--sh-space-8); }

.sh-mb-0 { margin-bottom: 0; }
.sh-mb-2 { margin-bottom: var(--sh-space-2); }
.sh-mb-4 { margin-bottom: var(--sh-space-4); }
.sh-mb-6 { margin-bottom: var(--sh-space-6); }
.sh-mb-8 { margin-bottom: var(--sh-space-8); }

/* Padding */
.sh-p-0 { padding: 0; }
.sh-p-2 { padding: var(--sh-space-2); }
.sh-p-3 { padding: var(--sh-space-3); }
.sh-p-4 { padding: var(--sh-space-4); }
.sh-p-5 { padding: var(--sh-space-5); }
.sh-p-6 { padding: var(--sh-space-6); }

/* =============================================================================
   ACCESSIBILITY
   ============================================================================= */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --sh-border-subtle: rgba(0, 0, 0, 0.3);
        --sh-border-default: rgba(0, 0, 0, 0.5);
        --sh-border-strong: rgba(0, 0, 0, 0.7);
    }
}

/* Focus visible for keyboard navigation */
.sh-focusable:focus-visible {
    outline: 2px solid rgb(var(--sh-primary-rgb));
    outline-offset: 2px;
}

/* Screen reader only */
.sh-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================================================
   MOBILE RESPONSIVENESS - Global Touch Targets & Mobile Optimizations
   ============================================================================= */

/* Touch target minimum size (WCAG 2.5.5 - 44x44px) */
@media (max-width: 768px) {
    /* Icon buttons need larger touch area */
    .mud-icon-button {
        min-width: 44px !important;
        min-height: 44px !important;
    }

    /* Regular buttons */
    .mud-button-root {
        min-height: 44px !important;
    }

    /* Menu items */
    .mud-menu-item,
    .mud-list-item {
        min-height: 48px !important;
    }

    /* Nav links */
    .mud-nav-link {
        min-height: 48px !important;
        padding: 12px 16px !important;
    }

    /* Chips */
    .mud-chip {
        min-height: 36px !important;
    }

    /* Select and input touch targets */
    .mud-input-control {
        min-height: 48px !important;
    }

    /* Checkbox and switch larger touch area */
    .mud-checkbox,
    .mud-switch {
        min-height: 44px !important;
    }

    /* Tab buttons */
    .mud-tab {
        min-height: 48px !important;
        padding: 12px 16px !important;
    }
}

/* Mobile padding adjustments */
@media (max-width: 600px) {
    /* Reduce overall page padding */
    .mud-main-content {
        padding: 12px !important;
    }

    /* Cards get less padding */
    .mud-card-content {
        padding: 12px !important;
    }

    .mud-card-header {
        padding: 12px !important;
    }

    /* Dialogs full width */
    .mud-dialog {
        margin: 8px !important;
        max-width: calc(100vw - 16px) !important;
    }

    /* Tables scroll horizontally */
    .mud-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
}

/* Very small screens (< 360px) */
@media (max-width: 360px) {
    .mud-button-root {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 0.8125rem !important;
    }

    /* Stack button icons and text vertically if needed */
    .mud-button-label {
        gap: 4px !important;
    }
}

/* =============================================================================
   STEPPER WIZARD - Premium Multi-Step Form Component
   ============================================================================= */

.sh-wizard {
    display: flex;
    flex-direction: column;
    gap: var(--sh-space-6);
    max-width: 900px;
    margin: 0 auto;
    padding: var(--sh-space-4);
}

/* -------------------------------------------------------------------------
   Wizard Header
   ------------------------------------------------------------------------- */
.sh-wizard-header {
    text-align: center;
    margin-bottom: var(--sh-space-4);
}

/* -------------------------------------------------------------------------
   Progress Container - Steps & Progress Bar
   ------------------------------------------------------------------------- */
.sh-wizard-progress-container {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--sh-glass-bg);
    backdrop-filter: blur(var(--sh-glass-blur));
    -webkit-backdrop-filter: blur(var(--sh-glass-blur));
    padding: var(--sh-space-4) var(--sh-space-2);
    border-radius: var(--sh-radius-xl);
    border: 1px solid var(--sh-border-subtle);
    box-shadow: var(--sh-shadow-sm);
}

/* -------------------------------------------------------------------------
   Step Indicators - Horizontal Layout
   ------------------------------------------------------------------------- */
.sh-wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0 var(--sh-space-2);
}

.sh-wizard-step-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 0;
}

.sh-wizard-step-wrapper:last-child {
    flex: 0;
}

/* Step Circle Indicator */
.sh-wizard-step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--sh-font-weight-semibold);
    font-size: var(--sh-text-sm);
    transition: all var(--sh-transition-base);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.sh-wizard-step-number {
    line-height: 2;
}

/* Pending State */
.sh-wizard-step-pending {
    background: var(--sh-surface-2);
    color: var(--mud-palette-text-secondary);
    border: 2px solid var(--sh-border-default);
}

/* Current State */
.sh-wizard-step-current {
    background: var(--sh-gradient-primary);
    color: white;
    border: 2px solid transparent;
    box-shadow: var(--sh-shadow-primary);
    transform: scale(1.1);
}

.sh-wizard-step-current::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(var(--sh-primary-rgb), 0.3);
    animation: sh-pulse-ring 2s ease-out infinite;
}

@keyframes sh-pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Completed State */
.sh-wizard-step-completed {
    background: rgb(var(--sh-success-rgb));
    color: white;
    border: 2px solid transparent;
}

/* Clickable State */
.sh-wizard-step-clickable {
    cursor: pointer;
}

.sh-wizard-step-clickable:hover {
    transform: scale(1.05);
    box-shadow: var(--sh-shadow-md);
}

.sh-wizard-step-current.sh-wizard-step-clickable:hover {
    transform: scale(1.15);
}

/* Step Labels */
.sh-wizard-step-label {
    text-align: center;
    margin-top: var(--sh-space-2);
    max-width: 100px;
}

.sh-wizard-step-title {
    font-size: var(--sh-text-xs);
    font-weight: var(--sh-font-weight-medium);
    color: var(--mud-palette-text-secondary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--sh-transition-fast);
}

.sh-wizard-step-label-active .sh-wizard-step-title {
    color: rgb(var(--sh-primary-rgb));
    font-weight: var(--sh-font-weight-semibold);
}

.sh-wizard-step-optional {
    font-size: 0.65rem;
    color: var(--mud-palette-text-disabled);
    display: block;
    margin-top: 2px;
}

/* Connector Lines */
.sh-wizard-connector {
    position: absolute;
    top: 20px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
    height: 2px;
    background: var(--sh-border-default);
    z-index: 1;
    transition: background var(--sh-transition-base);
}

.sh-wizard-connector-completed {
    background: var(--sh-gradient-primary);
}

/* -------------------------------------------------------------------------
   Progress Bar
   ------------------------------------------------------------------------- */
.sh-wizard-progress-bar {
    margin-top: var(--sh-space-4);
    height: 4px;
    background: var(--sh-bg-muted);
    border-radius: var(--sh-radius-full);
    overflow: hidden;
}

.sh-wizard-progress-fill {
    height: 100%;
    background: var(--sh-gradient-primary);
    border-radius: var(--sh-radius-full);
    transition: width var(--sh-transition-slow);
}

/* -------------------------------------------------------------------------
   Step Content Card
   ------------------------------------------------------------------------- */
.sh-wizard-content {
    animation: sh-fade-in var(--sh-duration-slow) var(--sh-ease-out);
}

.sh-wizard-card {
    background: var(--sh-surface-0);
    border: 1px solid var(--sh-border-subtle);
    border-radius: var(--sh-radius-xl);
    box-shadow: var(--sh-shadow-md);
    overflow: hidden;
}

.sh-wizard-card-header {
    display: flex;
    align-items: center;
    gap: var(--sh-space-4);
    padding: var(--sh-space-6);
    border-bottom: 1px solid var(--sh-border-subtle);
    background: var(--sh-bg-subtle);
}

.sh-wizard-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--sh-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--sh-primary-rgb), 0.1);
    color: rgb(var(--sh-primary-rgb));
    flex-shrink: 0;
}

.sh-wizard-card-title-group {
    flex: 1;
    min-width: 0;
}

.sh-wizard-card-title {
    font-size: var(--sh-text-2xl);
    font-weight: var(--sh-font-weight-bold);
    color: var(--mud-palette-text-primary);
    margin: 0 0 var(--sh-space-1) 0;
    line-height: 1.2;
}

.sh-wizard-card-subtitle {
    font-size: var(--sh-text-base);
    color: var(--mud-palette-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.sh-wizard-card-body {
    padding: var(--sh-space-6);
    min-height: 200px;
}

.sh-wizard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* -------------------------------------------------------------------------
   Navigation Buttons
   ------------------------------------------------------------------------- */
.sh-wizard-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sh-space-4);
    background: var(--sh-surface-0);
    border: 1px solid var(--sh-border-subtle);
    border-radius: var(--sh-radius-lg);
    box-shadow: var(--sh-shadow-xs);
}

.sh-wizard-nav-left,
.sh-wizard-nav-right {
    flex: 1;
}

.sh-wizard-nav-left {
    display: flex;
    justify-content: flex-start;
}

.sh-wizard-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.sh-wizard-nav-right {
    display: flex;
    justify-content: flex-end;
}

.sh-wizard-step-counter {
    font-size: var(--sh-text-sm);
    color: var(--mud-palette-text-secondary);
    font-weight: var(--sh-font-weight-medium);
}

/* -------------------------------------------------------------------------
   Wizard Footer
   ------------------------------------------------------------------------- */
.sh-wizard-footer {
    padding: var(--sh-space-4);
    text-align: center;
}

/* -------------------------------------------------------------------------
   Step Content Form Styling
   ------------------------------------------------------------------------- */
.sh-wizard-form-section {
    margin-bottom: var(--sh-space-6);
}

.sh-wizard-form-section-title {
    font-size: var(--sh-text-lg);
    font-weight: var(--sh-font-weight-semibold);
    color: var(--mud-palette-text-primary);
    margin-bottom: var(--sh-space-4);
    padding-bottom: var(--sh-space-2);
    border-bottom: 1px solid var(--sh-border-subtle);
}

.sh-wizard-form-row {
    display: grid;
    gap: var(--sh-space-4);
    margin-bottom: var(--sh-space-4);
}

.sh-wizard-form-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sh-wizard-form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sh-wizard-form-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Service Selection Cards */
.sh-wizard-service-card {
    padding: var(--sh-space-4);
    border: 2px solid var(--sh-border-subtle);
    border-radius: var(--sh-radius-lg);
    cursor: pointer;
    transition: all var(--sh-transition-base);
    display: flex;
    align-items: center;
    gap: var(--sh-space-3);
}

.sh-wizard-service-card:hover {
    border-color: var(--sh-border-strong);
    background: var(--sh-bg-hover);
}

.sh-wizard-service-card-selected {
    border-color: rgb(var(--sh-primary-rgb));
    background: rgba(var(--sh-primary-rgb), 0.05);
}

.sh-wizard-service-card-selected:hover {
    border-color: rgb(var(--sh-primary-rgb));
    background: rgba(var(--sh-primary-rgb), 0.08);
}

.sh-wizard-service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--sh-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--sh-primary-rgb), 0.1);
    color: rgb(var(--sh-primary-rgb));
    flex-shrink: 0;
}

.sh-wizard-service-content {
    flex: 1;
    min-width: 0;
}

.sh-wizard-service-title {
    font-weight: var(--sh-font-weight-semibold);
    color: var(--mud-palette-text-primary);
    margin-bottom: var(--sh-space-1);
}

.sh-wizard-service-description {
    font-size: var(--sh-text-sm);
    color: var(--mud-palette-text-secondary);
}

/* -------------------------------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .sh-wizard {
        padding: var(--sh-space-2);
        gap: var(--sh-space-4);
    }

    .sh-wizard-progress-container {
        padding: var(--sh-space-3) var(--sh-space-2);
    }

    .sh-wizard-step-indicator {
        width: 32px;
        height: 32px;
        font-size: var(--sh-text-xs);
    }

    .sh-wizard-step-current {
        transform: scale(1.05);
    }

    .sh-wizard-connector {
        top: 16px;
        left: calc(50% + 20px);
        right: calc(-50% + 20px);
    }

    .sh-wizard-step-label {
        display: none;
    }

    .sh-wizard-card-header {
        padding: var(--sh-space-4);
        flex-direction: column;
        text-align: center;
    }

    .sh-wizard-card-icon {
        width: 48px;
        height: 48px;
    }

    .sh-wizard-card-title {
        font-size: var(--sh-text-xl);
    }

    .sh-wizard-card-body {
        padding: var(--sh-space-4);
    }

    .sh-wizard-navigation {
        flex-wrap: wrap;
        gap: var(--sh-space-3);
        padding: var(--sh-space-3);
    }

    .sh-wizard-nav-center {
        order: 3;
        flex: 0 0 100%;
    }

    .sh-wizard-form-row-2,
    .sh-wizard-form-row-3,
    .sh-wizard-form-row-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sh-wizard-step-indicator {
        width: 28px;
        height: 28px;
    }

    .sh-wizard-connector {
        top: 14px;
        left: calc(50% + 18px);
        right: calc(-50% + 18px);
    }

    .sh-wizard-navigation {
        flex-direction: column;
    }

    .sh-wizard-nav-left,
    .sh-wizard-nav-right {
        width: 100%;
    }

    .sh-wizard-nav-left .mud-button-root,
    .sh-wizard-nav-right .mud-button-root {
        width: 100%;
    }
}

/* =============================================================================
   WIZARD DARK MODE - Global overrides for StepperWizard
   ============================================================================= */

/* Progress Container (Steps Header) - Dark Mode */
.mud-theme-dark .sh-wizard-progress-container {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Navigation Footer - Dark Mode */
.mud-theme-dark .sh-wizard-navigation-modern {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Step Indicators - Dark Mode */
.mud-theme-dark .sh-wizard-step-pending {
    background: #334155 !important;
    color: #94a3b8 !important;
    border-color: #475569 !important;
}

.mud-theme-dark .sh-wizard-step-completed {
    background: linear-gradient(145deg, #10b981, #059669) !important;
}

.mud-theme-dark .sh-wizard-step-current {
    background: linear-gradient(145deg, #a78bfa, #8b5cf6) !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4) !important;
}

/* Step Labels - Dark Mode */
.mud-theme-dark .sh-wizard-step-title {
    color: #94a3b8 !important;
}

.mud-theme-dark .sh-wizard-step-label-active .sh-wizard-step-title {
    color: #a78bfa !important;
}

.mud-theme-dark .sh-wizard-step-optional {
    color: #64748b !important;
}

/* Connector Lines - Dark Mode */
.mud-theme-dark .sh-wizard-connector {
    background: #475569 !important;
}

.mud-theme-dark .sh-wizard-connector-completed {
    background: linear-gradient(90deg, #10b981, #8b5cf6) !important;
}

/* Progress Bar - Dark Mode */
.mud-theme-dark .sh-wizard-progress-bar {
    background: #334155 !important;
}

/* Step Counter Badge - Dark Mode */
.mud-theme-dark .sh-wizard-step-counter {
    color: #e2e8f0 !important;
    background: #334155 !important;
    border-color: #475569 !important;
}

/* Back/Cancel Button - Dark Mode (high visibility) */
.mud-theme-dark .sh-wizard-btn-back.mud-button-outlined,
.mud-theme-dark .sh-wizard-btn-cancel.mud-button-outlined {
    color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    border-width: 2px !important;
}

.mud-theme-dark .sh-wizard-btn-back.mud-button-outlined .mud-button-label,
.mud-theme-dark .sh-wizard-btn-cancel.mud-button-outlined .mud-button-label {
    color: #f1f5f9 !important;
}

.mud-theme-dark .sh-wizard-btn-back.mud-button-outlined .mud-icon-root,
.mud-theme-dark .sh-wizard-btn-cancel.mud-button-outlined .mud-icon-root {
    color: #f1f5f9 !important;
}

.mud-theme-dark .sh-wizard-btn-back:hover,
.mud-theme-dark .sh-wizard-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #cbd5e1 !important;
}

/* Next Button Glow - Dark Mode */
.mud-theme-dark .sh-wizard-btn-next {
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4) !important;
}

.mud-theme-dark .sh-wizard-btn-next:hover {
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5) !important;
}
