 *:focus-visible {
     outline: none;
 }

 .mud-main-content {
     position: relative;
     z-index: 1;
     padding: 0 !important;
     height: 100vh;
     overflow-y: auto;
     overflow-x: hidden;
 }

 /* Page wrapper for sticky footer layout */
 .page-wrapper {
     display: flex;
     flex-direction: column;
     min-height: 100%;
 }

 .page-content {
     flex: 1 0 auto;
     padding-top: var(--mud-appbar-height);
 }

 .site-footer {
     flex-shrink: 0;
 }

 html,
 body {
     margin: 0;
     padding: 0;
     width: 100%;
     height: 100%;
     min-height: 100vh;
     min-height: 100dvh;
     /* Dynamic viewport height for mobile */
     min-height: -webkit-fill-available;
     /* iOS Safari fallback */
     overflow: hidden;
 }

 html {
     /* Fix for iOS Safari 100vh issue */
     height: -webkit-fill-available;
 }

 .frosted,
 .borderless-frosted,
 .mud-dialog {
     --border-width: 0px;
     border-radius: 1rem;
     position: relative;
     -webkit-backdrop-filter: blur(100px);
     backdrop-filter: blur(100px);
     /* GPU acceleration for Safari */
     -webkit-transform: translateZ(0);
     transform: translateZ(0);
     will-change: backdrop-filter;
 }

 .dark-theme .frosted,
 .dark-theme .borderless-frosted,
 .dark-theme .mud-dialog {
     background: hsl(from var(--mud-palette-white) h s l / 0.03);
 }

 .light-theme .frosted,
 .light-theme .borderless-frosted {

     /*background: hsl(from rgb(0 0 0 / 4%) h s l / 0.05);*/
     background: color(srgb 1 1 1 / 0.61);
 }

 /* Light theme appbar text color override for visibility 
 .light-theme .mud-appbar {
     color: var(--mud-palette-text-primary);
 }

 .light-theme .mud-appbar .mud-icon-button,
 .light-theme .mud-appbar .mud-button,
 .light-theme .mud-appbar .mud-link {
     color: var(--mud-palette-text-primary);
 }

 */

 .light-theme .mud-charts-gridlines-yaxis path {
     stroke: rgb(0 0 0) !important;
 }

 .light-theme .mud-overlay .mud-overlay-scrim.mud-overlay-dark {
     border-color: rgb(255 255 255 / 5%);
     background-color: rgb(255 255 255 / 5%);
 }

 .frosted::before,
 .borderless-frosted::before,
 .mud-dialog::before {
     content: "";
     position: absolute;
     z-index: -1;
     inset: 0;
     border-radius: inherit;
     border: var(--border-width) solid transparent;
     /*background: linear-gradient(var(--mud-palette-dark-lighten), var(--mud-palette-surface)) border-box;*/
     mask: linear-gradient(black, black) border-box,
         linear-gradient(black, black) padding-box;
     mask-composite: subtract;
 }

 .borderless-frosted::before {
     border: none;
 }

 .gradient-box {
     background-color: color-mix(in srgb, var(--mud-palette-background) 80%, transparent);
     border-radius: 1rem;
     position: relative;
     aspect-ratio: 1 / 1;
 }

 @property --deg {
     syntax: '<angle>';
     inherits: true;
     initial-value: 0deg;
 }

 .gradient-box::before,
 .gradient-box::after {
     content: "";
     position: absolute;
     height: 100%;
     width: 100%;
     top: 0;
     left: 0;
     background: conic-gradient(from var(--deg) at center,
             var(--mud-palette-primary),
             var(--mud-palette-secondary),
             var(--mud-palette-tertiary),
             var(--mud-palette-primary));
     border-radius: inherit;
     z-index: -2;
     padding: 2px;
     animation: autoRotate 2s linear infinite;
 }

 .gradient-box::after {
     filter: blur(10px);
 }

 @keyframes autoRotate {
     to {
         --deg: 360deg;
     }
 }



 body {
     position: relative;
     min-height: 100vh;
     min-height: 100dvh;
     /* Dynamic viewport height for mobile */
     min-height: -webkit-fill-available;
 }

 .dark-theme .nebula-svg {
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     height: 100dvh;
     /* Dynamic viewport height - works better on mobile */
     height: -webkit-fill-available;
     /* iOS Safari fallback */
     z-index: -1;
     pointer-events: none;
     opacity: 0.6;
     /* Force GPU acceleration for better mobile rendering */
     -webkit-transform: translateZ(0);
     transform: translateZ(0);
     -webkit-backface-visibility: hidden;
     backface-visibility: hidden;
     /* Removed will-change for Safari performance - it causes layer explosion */
     contain: strict;
 }

 /* Animation paused state - completely disable animations */
 .nebula-svg.animation-paused,
 .nebula-svg.animation-paused * {
     animation: none !important;
     animation-play-state: paused !important;
 }

 /* Animate the entire SVG container - only when not paused */
 .dark-theme .nebula-svg:not(.animation-paused) {
     animation: nebula-drift 30s ease-in-out infinite alternate,
         nebula-color-shift 45s linear infinite;
 }

 /* Reduce animation complexity on mobile for better performance */
 @media (max-width: 768px),
 (hover: none) {
     .dark-theme .nebula-svg {
         /* Simpler animation for mobile - less transform changes */
         animation: nebula-drift-mobile 30s ease-in-out infinite alternate,
             nebula-color-shift 45s linear infinite;
     }
 }

 @keyframes nebula-drift-mobile {
     0% {
         transform: scale(1.1) translateZ(0);
     }

     50% {
         transform: scale(1.15) translateZ(0);
     }

     100% {
         transform: scale(1.1) translateZ(0);
     }
 }

 @keyframes nebula-drift {
     0% {
         transform: scale(1.2) translate(0, 0) rotate(0deg);
     }

     33% {
         transform: scale(1.4) translate(2%, -2%) rotate(3deg);
     }

     66% {
         transform: scale(1.3) translate(-2%, 2%) rotate(-2deg);
     }

     100% {
         transform: scale(1.2) translate(0, 0) rotate(0deg);
     }
 }

 @keyframes nebula-color-shift {
     0% {
         filter: hue-rotate(0deg) brightness(1);
     }

     25% {
         filter: hue-rotate(20deg) brightness(1.1);
     }

     50% {
         filter: hue-rotate(0deg) brightness(1);
     }

     75% {
         filter: hue-rotate(-20deg) brightness(0.9);
     }

     100% {
         filter: hue-rotate(0deg) brightness(1);
     }
 }

 .stars-layer {
     animation: stars-twinkle 3s ease-in-out infinite;
 }

 @keyframes stars-twinkle {

     0%,
     100% {
         opacity: 1;
     }

     50% {
         opacity: 0.7;
     }
 }

 .app-content {
     position: relative;
     z-index: 1;
     min-height: 100vh;
     min-height: 100dvh;
     /* Dynamic viewport height for mobile */
     min-height: -webkit-fill-available;
 }

 /* Scroll to top button visibility */
 .visible {
     visibility: visible;
     opacity: 1;
     transition: opacity 0.3s ease-in-out;
 }

 .visible.absolute {
     position: fixed !important;
     bottom: 32px;
     right: 32px;
     z-index: 2000;
 }

 .invisible {
     visibility: hidden;
     opacity: 0;
     transition: opacity 0.3s ease-in-out;
 }

 /* Override Radzen CSS variables with MudBlazor theme colors */
 :root {
     /* Primary colors */
     --rz-primary: var(--mud-palette-primary);
     --rz-primary-light: var(--mud-palette-primary-lighten);
     --rz-primary-lighter: var(--mud-palette-primary-lighten);
     --rz-primary-dark: var(--mud-palette-primary-darken);
     --rz-primary-darker: var(--mud-palette-primary-darken);

     /* Secondary colors */
     --rz-secondary: var(--mud-palette-secondary);
     --rz-secondary-light: var(--mud-palette-secondary-lighten);
     --rz-secondary-lighter: var(--mud-palette-secondary-lighten);
     --rz-secondary-dark: var(--mud-palette-secondary-darken);
     --rz-secondary-darker: var(--mud-palette-secondary-darken);

     /* Success colors */
     --rz-success: var(--mud-palette-success);
     --rz-success-light: var(--mud-palette-success-lighten);
     --rz-success-lighter: var(--mud-palette-success-lighten);
     --rz-success-dark: var(--mud-palette-success-darken);
     --rz-success-darker: var(--mud-palette-success-darken);

     /* Info colors */
     --rz-info: var(--mud-palette-info);
     --rz-info-light: var(--mud-palette-info-lighten);
     --rz-info-lighter: var(--mud-palette-info-lighten);
     --rz-info-dark: var(--mud-palette-info-darken);
     --rz-info-darker: var(--mud-palette-info-darken);

     /* Warning colors */
     --rz-warning: var(--mud-palette-warning);
     --rz-warning-light: var(--mud-palette-warning-lighten);
     --rz-warning-lighter: var(--mud-palette-warning-lighten);
     --rz-warning-dark: var(--mud-palette-warning-darken);
     --rz-warning-darker: var(--mud-palette-warning-darken);

     /* Danger/Error colors */
     --rz-danger: var(--mud-palette-error);
     --rz-danger-light: var(--mud-palette-error-lighten);
     --rz-danger-lighter: var(--mud-palette-error-lighten);
     --rz-danger-dark: var(--mud-palette-error-darken);
     --rz-danger-darker: var(--mud-palette-error-darken);

     /* Base colors */
     --rz-base-background-color: var(--mud-palette-background);
     --rz-base-foreground-color: var(--mud-palette-text-primary);
     --rz-text-color: var(--mud-palette-text-primary);
     --rz-text-secondary-color: var(--mud-palette-text-secondary);

     /* Surface colors */
     --rz-surface-background-color: var(--mud-palette-surface);
     --rz-content-background-color: var(--mud-palette-background);

     /* Border colors */
     --rz-border-color: var(--mud-palette-lines-default);
     --rz-border-disabled-color: var(--mud-palette-lines-inputs);

     /* Divider colors */
     --rz-divider-color: var(--mud-palette-divider);

     /* Disabled state */
     --rz-disabled-background-color: var(--mud-palette-action-disabled-background);
     --rz-disabled-color: var(--mud-palette-action-disabled);

     /* Hover states */
     --rz-hover-background-color: var(--mud-palette-action-default-hover);

     /* Selection/Active states */
     --rz-selection-background-color: var(--mud-palette-primary);
     --rz-selection-color: var(--mud-palette-primary-text);

     /* Tertiary colors (if MudBlazor has them) */
     --rz-tertiary: var(--mud-palette-tertiary, var(--mud-palette-primary));

     /* Dark mode support */
     --rz-series-1: var(--mud-palette-primary);
     --rz-series-2: var(--mud-palette-secondary);
     --rz-series-3: var(--mud-palette-tertiary, var(--mud-palette-info));
     --rz-series-4: var(--mud-palette-success);
     --rz-series-5: var(--mud-palette-warning);
     --rz-series-6: var(--mud-palette-error);
     --rz-scheduler-event-background-color: var(--mud-palette-primary);
     --rz-scheduler-view-selected-background-color: var(--mud-palette-surface);
     --rz-scheduler-view-selected-color: var(--mud-palette-tertiary);
     --rz-scheduler-toolbar-background-color: transparent;
     --rz-scheduler-header-background-color: transparent;
     --rz-scheduler-prev-next-button-background-color: transparent;
     --rz-scheduler-view-selected-background-color: transparent;
     --rz-scheduler-view-button-background-color: transparent;
     --rz-scheduler-toolbar-title-color: initial;
     --rz-editor-content-background-color: transparent;
     --rz-editor-button-background-color: #00000015;
     --rz-editor-toolbar-background-color: transparent;
     --rz-editor-button-selected-background-color: var(--mud-palette-primary);
     --rz-editor-button-selected-color: var(--mud-palette-primary-text);
 }

 /* ============================================
   Chat Component Styles
   ============================================ */

 /* Chat Icon Container */
 .chat-icon-container {
     position: relative;
     display: inline-flex;
     align-items: center;
 }

 .chat-badge {
     position: absolute;
     top: 0;
     right: 0;
     pointer-events: none;
 }

 /* Chat Window Overlay */
 .chat-window-overlay {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background-color: rgba(0, 0, 0, 0.3);
     z-index: 1300;
     backdrop-filter: blur(2px);
 }

 /* Chat Window */
 .chat-window {
     position: fixed;
     top: 70px;
     right: 20px;
     width: 400px;
     max-width: calc(100vw - 40px);
     height: 600px;
     max-height: calc(100vh - 100px);
     min-height: 300px;
     background: var(--mud-palette-surface);
     border-radius: 12px;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
     display: flex;
     flex-direction: column;
     z-index: 1301;
     overflow: hidden;
 }

 /* Medium screens - adjust positioning */
 @media (max-width: 900px) {
     .chat-window {
         right: 10px;
         width: 350px;
         max-width: calc(100vw - 20px);
     }
 }

 /* Smaller screens - take more space */
 @media (max-width: 768px) {
     .chat-window {
         top: 60px;
         right: 5px;
         left: 5px;
         width: auto;
         max-width: none;
         height: calc(100vh - 70px);
         max-height: none;
     }
 }

 /* Chat Header */
 .chat-header {
     display: flex;
     align-items: center;
     padding: 16px;
     border-bottom: 1px solid var(--mud-palette-divider);
     background: var(--mud-palette-background);
 }

 .chat-header-actions {
     display: flex;
     gap: 8px;
     margin-left: auto;
 }

 /* Chat Body */
 .chat-body {
     flex: 1;
     overflow-y: auto;
     padding: 8px;
 }

 /* Chat Groups List */
 .chat-groups-list {
     display: flex;
     flex-direction: column;
     gap: 4px;
 }

 .chat-group-item {
     display: flex;
     align-items: center;
     padding: 10px 12px;
     border-radius: 8px;
     cursor: pointer;
     transition: background-color 0.2s;
     gap: 10px;
 }

 .chat-group-item:hover {
     background: var(--mud-palette-action-default-hover);
 }

 .chat-group-item.has-unread {
     background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
 }

 .chat-group-details {
     flex: 1;
     min-width: 0;
     display: flex;
     flex-direction: column;
     gap: 4px;
 }

 .chat-group-name {
     font-weight: 500;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
     line-height: 1.3;
 }

 .chat-group-meta {
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .chat-group-member-count {
     font-size: 0.75rem;
     opacity: 0.7;
     white-space: nowrap;
 }

 .chat-group-avatars {
     display: flex;
     align-items: center;
     flex-shrink: 0;
 }

 .chat-list-avatar-container {
     position: relative;
     margin-left: -6px;
 }

 .chat-list-avatar-container:first-child {
     margin-left: 0;
 }

 .chat-list-avatar {
     width: 22px !important;
     height: 22px !important;
     font-size: 0.55rem !important;
     border: 1.5px solid var(--mud-palette-surface);
 }

 .chat-list-avatar.more-avatar {
     background-color: var(--mud-palette-action-default-hover) !important;
     color: var(--mud-palette-text-secondary) !important;
     font-size: 0.5rem !important;
     margin-left: -6px;
 }

 .chat-list-avatar-indicator {
     position: absolute;
     bottom: -1px;
     right: -1px;
     width: 7px;
     height: 7px;
     border-radius: 50%;
     border: 1px solid var(--mud-palette-surface);
 }

 .chat-list-avatar-indicator.online {
     background-color: #4caf50;
 }

 .chat-list-avatar-indicator.away {
     background-color: #ff9800;
 }

 .chat-list-avatar-indicator.offline {
     background-color: #9e9e9e;
 }

 .chat-group-members {
     opacity: 0.7;
     line-height: 1.2;
 }

 .unread-chip {
     flex-shrink: 0;
 }

 .chat-group-members {
     opacity: 0.7;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
 }

 /* Chat Conversation */
 .chat-conversation {
     display: flex;
     flex-direction: column;
     height: 100%;
     overflow: hidden;
 }

 .chat-conversation-header {
     display: flex;
     align-items: center;
     padding: 8px 12px;
     border-bottom: 1px solid var(--mud-palette-divider);
     background: var(--mud-palette-background);
     gap: 6px;
     flex-shrink: 0;
 }

 .chat-conversation-title {
     flex: 0 1 auto;
     min-width: 0;
     max-width: 150px;
 }

 .chat-conversation-title .MudText-root:first-child {
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
     font-size: 0.95rem !important;
     line-height: 1.2;
 }

 .chat-conversation-title .chat-header-info {
     font-size: 0.7rem;
     opacity: 0.7;
 }

 /* Chat Messages */
 .chat-messages {
     flex: 1;
     overflow-y: auto;
     overflow-x: hidden;
     padding: 16px;
     display: flex;
     flex-direction: column;
     gap: 12px;
     scroll-behavior: smooth;
     min-height: 0;
 }

 .chat-message {
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     max-width: 80%;
 }

 .message-bubble {
     position: relative;
     background: var(--mud-palette-background);
     padding: 8px 10px 8px 40px;
     border-radius: 12px;
     word-wrap: break-word;
     word-break: break-word;
 }

 .message-avatar-container {
     position: absolute;
     top: 8px;
     left: 8px;
     flex-shrink: 0;
 }

 .message-avatar-container.own {
     left: auto;
     right: 8px;
 }

 .message-avatar-container.own .message-avatar {
     background-color: var(--mud-palette-primary-darken) !important;
 }

 .message-avatar {
     font-size: 0.75rem;
 }

 .avatar-status-indicator {
     position: absolute;
     bottom: 0;
     right: 0;
     width: 10px;
     height: 10px;
     border-radius: 50%;
     border: 2px solid var(--mud-palette-surface);
 }

 .avatar-status-indicator.online {
     background-color: #4caf50;
 }

 .avatar-status-indicator.away {
     background-color: #ff9800;
 }

 .avatar-status-indicator.offline {
     background-color: #9e9e9e;
 }

 /* Presence Status in Header */
 .presence-status {
     display: inline-flex;
     align-items: center;
     gap: 4px;
 }

 .presence-status .presence-indicator {
     font-size: 8px !important;
     width: 8px;
     height: 8px;
 }

 .presence-status.online {
     color: #4caf50;
 }

 .presence-status.online .presence-indicator {
     color: #4caf50;
 }

 .presence-status.away {
     color: #ff9800;
 }

 .presence-status.away .presence-indicator {
     color: #ff9800;
 }

 .presence-status.offline {
     color: #9e9e9e;
 }

 .presence-status.offline .presence-indicator {
     color: #9e9e9e;
 }

 /* Chat Header Info */
 .chat-header-info {
     display: flex;
     align-items: center;
     gap: 4px;
 }

 .member-count {
     color: var(--mud-palette-text-secondary);
     font-size: 0.7rem;
 }

 /* Chat Header Avatars */
 .chat-header-avatars {
     display: flex;
     align-items: center;
     margin-left: 4px;
 }

 .header-avatar-container {
     position: relative;
     display: inline-block;
     margin-left: -6px;
 }

 .header-avatar-container:first-child {
     margin-left: 0;
 }

 .header-avatar {
     cursor: pointer;
     transition: transform 0.2s ease;
     width: 26px !important;
     height: 26px !important;
     font-size: 0.6rem !important;
     border: 2px solid var(--mud-palette-surface);
 }

 .header-avatar:hover {
     transform: scale(1.1);
     z-index: 1;
 }

 .header-avatar-indicator {
     position: absolute;
     bottom: -1px;
     right: -1px;
     width: 8px;
     height: 8px;
     border-radius: 50%;
     border: 1.5px solid var(--mud-palette-surface);
 }

 .header-avatar-indicator.online {
     background-color: #4caf50;
 }

 .header-avatar-indicator.away {
     background-color: #ff9800;
 }

 .header-avatar-indicator.offline {
     background-color: #9e9e9e;
 }

 .more-members-button {
     background-color: var(--mud-palette-action-default-hover);
     border-radius: 50%;
     width: 26px !important;
     height: 26px !important;
     min-width: 26px !important;
     margin-left: -6px;
 }

 /* Member List Dialog */
 .member-list-item {
     display: flex;
     align-items: center;
     gap: 12px;
     padding: 8px 0;
     width: 100%;
 }

 .member-avatar-container {
     position: relative;
     flex-shrink: 0;
 }

 .member-avatar-indicator {
     position: absolute;
     bottom: 0;
     right: 0;
     width: 12px;
     height: 12px;
     border-radius: 50%;
     border: 2px solid var(--mud-palette-surface);
 }

 .member-avatar-indicator.online {
     background-color: #4caf50;
 }

 .member-avatar-indicator.away {
     background-color: #ff9800;
 }

 .member-avatar-indicator.offline {
     background-color: #9e9e9e;
 }

 .member-info {
     flex: 1;
     min-width: 0;
 }

 .member-info .MudText-root:first-child {
     font-weight: 500;
 }

 .message-content-wrapper {
     display: flex;
     flex-direction: column;
     flex: 1;
     min-width: 0;
 }

 .chat-message.own {
     align-items: flex-end;
     align-self: flex-end;
 }

 .chat-message.system {
     align-items: center;
     align-self: center;
     max-width: 100%;
     margin: 8px 0;
 }

 .system-message-text {
     opacity: 0.6;
     font-style: italic;
 }

 .message-sender {
     margin-bottom: 4px;
     opacity: 0.7;
 }

 .chat-message.own .message-bubble {
     background: var(--mud-palette-primary);
     color: var(--mud-palette-primary-text);
     padding: 8px 40px 8px 10px;
 }

 .message-content {
     margin-bottom: 4px;
 }

 .message-content a {
     color: inherit;
     text-decoration: underline;
     opacity: 0.9;
 }

 .message-content a:hover {
     opacity: 1;
 }

 .message-meta {
     display: flex;
     align-items: center;
     gap: 4px;
     font-size: 0.75rem;
     opacity: 0.7;
 }

 .message-time {
     font-size: 0.75rem;
 }

 /* Chat Input */
 .chat-input-container {
     border-top: 1px solid var(--mud-palette-divider);
     padding: 12px;
     background: var(--mud-palette-background);
     flex-shrink: 0;
 }

 .chat-input-row {
     display: flex;
     align-items: flex-start;
     gap: 8px;
 }

 .chat-input-row .flex-grow-1 {
     flex: 1;
 }

 .chat-input-button {
     margin-top: 4px;
 }

 .chat-message-input {
     width: 100%;
 }

 .chat-message-input textarea {
     max-height: 120px !important;
     /* Approximately 5 lines */
     overflow-y: auto !important;
     resize: none !important;
 }

 /* Emoji Picker */
 .emoji-picker {
     display: grid;
     grid-template-columns: repeat(10, 1fr);
     gap: 4px;
     padding: 12px;
     background: var(--mud-palette-surface);
     border-radius: 8px;
     margin-bottom: 8px;
     max-height: 200px;
     overflow-y: auto;
 }

 .emoji-button {
     background: none;
     border: none;
     font-size: 1.5rem;
     cursor: pointer;
     padding: 4px;
     border-radius: 4px;
     transition: background-color 0.2s;
 }

 .emoji-button:hover {
     background: var(--mud-palette-action-default-hover);
 }

 /* Mobile Responsive - Full screen chat */
 @media (max-width: 600px) {
     .chat-window {
         top: 0 !important;
         right: 0 !important;
         left: 0 !important;
         bottom: 0 !important;
         width: 100vw !important;
         height: 100vh !important;
         max-width: 100vw !important;
         max-height: 100vh !important;
         border-radius: 0;
     }

     .emoji-picker {
         grid-template-columns: repeat(8, 1fr);
     }
 }

 .mud-table-empty-row,
 .mud-tabs-tabbar {
     background-color: transparent !important;
 }

 /* Safari performance optimizations */
 @supports (-webkit-touch-callout: none) {

     /* Safari-only styles - reduce expensive effects */
     .frosted,
     .borderless-frosted,
     .mud-dialog {
         -webkit-backdrop-filter: blur(10px);
         backdrop-filter: blur(10px);
     }

     .nebula-svg {
         /* Disable animations completely on Safari for better input performance */
         animation: none !important;
     }

     .nebula-svg * {
         animation: none !important;
     }

     .stars-layer {
         animation: none !important;
     }

     .chat-window-overlay {
         -webkit-backdrop-filter: none;
         backdrop-filter: none;
         background-color: rgba(0, 0, 0, 0.5);
     }

     /* Reduce will-change usage which causes layer explosion in Safari */
     .nebula-svg {
         will-change: auto;
     }

     /* Optimize input focus performance */
     input:focus,
     textarea:focus,
     .mud-input-control:focus-within {
         will-change: auto;
     }
 }

 .light-theme,
 .dark-theme {
     --rz-dropdown-open-background-color: var(--mud-palette-surface);
 }

 /* Light theme drawer and menu text colors */
 .light-theme .mud-drawer {
     color: var(--mud-palette-drawer-text);
 }

 .light-theme .mud-nav-link,
 .light-theme .mud-navmenu .mud-nav-link {
     color: var(--mud-palette-drawer-text);
 }

 .light-theme .mud-nav-link:hover,
 .light-theme .mud-navmenu .mud-nav-link:hover {
     color: var(--mud-palette-text-primary);
 }

 .light-theme .mud-nav-link.active,
 .light-theme .mud-navmenu .mud-nav-link.active {
     color: var(--mud-palette-primary);
 }

 .light-theme .mud-nav-group-title {
     color: var(--mud-palette-text-primary);
 }

 /* Light theme menu/popover text colors */
 .light-theme .mud-menu .mud-list-item,
 .light-theme .mud-popover .mud-list-item {
     color: var(--mud-palette-text-primary);
 }

 .background-transparent {
     background-color: transparent !important;
 }

 .dark-theme .static-nebula-bg2 {
     pointer-events: visible;
     background:
         radial-gradient(ellipse 80% 60% at 30% 30%, color-mix(in srgb, var(--mud-palette-primary) 40%, transparent) 0%, transparent 70%),
         radial-gradient(ellipse 70% 70% at 70% 60%, color-mix(in srgb, var(--mud-palette-tertiary) 35%, transparent) 0%, transparent 70%),
         radial-gradient(ellipse 60% 50% at 50% 80%, color-mix(in srgb, var(--mud-palette-secondary) 30%, transparent) 0%, transparent 70%),
         var(--mud-palette-background);
     background-attachment: fixed;
     background-size: cover;
 }

 .light-theme header {
     box-shadow: rgb(0 0 0 / 20%) 0px 8px 24px !important;
 }

 .dark-theme header {
     box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px !important;
 }

.mud-nav-link-active{
   background-color: var(--mud-palette-primary-hover);
}

/* Make disabled field text more readable */
.mud-disabled .mud-input > input.mud-input-root,
.mud-disabled div.mud-input-slot.mud-input-root {
    color: var(--mud-palette-text-secondary) !important;
}

.mud-input>input.mud-input-root, div.mud-input-slot.mud-input-root 
.mud-disabled div.mud-input-slot.mud-input-root::placeholder {
    color: var(--mud-palette-text-secondary) !important;
}
.e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-content {
    color: var(--mud-palette-primary) !important;
}

.e-accordion .e-acrdn-item.e-select.e-acrdn-item>.e-acrdn-header:hover .e-acrdn-header-content {
    color: var(--mud-palette-tertiary) !important;
}

.e-accordion {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    background: var(--mud-palette-surface);
    border: none;
    border-radius: 0;
}



/* Diagram selection visuals - more prominent */
.e-diagram .e-diagram-resize-handle {
    fill: var(--mud-palette-primary) !important;
    stroke: var(--mud-palette-primary-darken) !important;
    stroke-width: 2px !important;
}

.e-diagram .e-diagram-border {
    stroke: var(--mud-palette-primary) !important;
    stroke-width: 2px !important;
    stroke-dasharray: 5, 3 !important;
}

.e-diagram .e-diagram-selector {
    stroke: var(--mud-palette-primary) !important;
    stroke-width: 2px !important;
}

.e-diagram .e-diagram-pivot-line {
    stroke: var(--mud-palette-primary) !important;
}

.e-diagram .e-diagram-rotate-handle {
    fill: var(--mud-palette-secondary) !important;
    stroke: var(--mud-palette-secondary-darken) !important;
}

/* Lane selection highlight */
.e-diagram .e-lane-selector,
.e-diagram .e-swimlane-selector {
    stroke: var(--mud-palette-tertiary) !important;
    stroke-width: 3px !important;
    stroke-dasharray: 8, 4 !important;
}

/* Connector selection */
.e-diagram .e-connector-selector {
    stroke: var(--mud-palette-primary) !important;
    stroke-width: 2px !important;
}

/* Bezier control handles */
.e-diagram .e-bezier-handle {
    fill: var(--mud-palette-warning) !important;
    stroke: var(--mud-palette-warning-darken, #e65100) !important;
    stroke-width: 2px !important;
    r: 6 !important;
}

.e-diagram .e-bezier-line {
    stroke: var(--mud-palette-warning) !important;
    stroke-width: 1.5px !important;
    stroke-dasharray: 4, 2 !important;
}

.greeting-center .mud-avatar-large{
    width: 100px !important;
    height: 100px !important;
    padding: 3px;
}

.greeting-center .mud-avatar-large img{
    border-radius: 50%;
}