:root {
   --rz-layout-body-padding: 0;
   --add-10-black: rgba(0, 0, 0, 0.1);
   --add-20-black: rgba(0, 0, 0, 0.2);
   --add-30-black: rgba(0, 0, 0, 0.3);
   --add-40-black: rgba(0, 0, 0, 0.4);
   --add-50-black: rgba(0, 0, 0, 0.5);
   --add-60-black: rgba(0, 0, 0, 0.6);
   --add-70-black: rgba(0, 0, 0, 0.7);
   --add-80-black: rgba(0, 0, 0, 0.8);
   --add-90-black: rgba(0, 0, 0, 0.9);
   --add-10-gray: rgba(127, 127, 127, 0.1);
   --add-20-gray: rgba(127, 127, 127, 0.2);
   --add-30-gray: rgba(127, 127, 127, 0.3);
   --add-40-gray: rgba(127, 127, 127, 0.4);
   --add-50-gray: rgba(127, 127, 127, 0.5);
   --add-60-gray: rgba(127, 127, 127, 0.6);
   --add-70-gray: rgba(127, 127, 127, 0.7);
   --add-80-gray: rgba(127, 127, 127, 0.8);
   --add-90-gray: rgba(127, 127, 127, 0.9);
   --add-10-white: rgba(255, 255, 255, 0.1);
   --add-20-white: rgba(255, 255, 255, 0.2);
   --add-30-white: rgba(255, 255, 255, 0.3);
   --add-40-white: rgba(255, 255, 255, 0.4);
   --add-50-white: rgba(255, 255, 255, 0.5);
   --add-60-white: rgba(255, 255, 255, 0.6);
   --add-70-white: rgba(255, 255, 255, 0.7);
   --add-80-white: rgba(255, 255, 255, 0.8);
   --add-90-white: rgba(255, 255, 255, 0.9);
}

html, body {
   font-family: 'Commissioner', sans-serif;
   font-optical-sizing: auto;
   font-weight: 400;
   font-style: normal;
}

body {
   overflow: hidden;
   margin: 0;
   padding: 0;
}

a, .btn-link {
   color: #006bb7;
}

h3 {
   font-weight: 500;
   margin: .35rem 0;
}

.btn-primary {
   color: #fff;
   background-color: #1b6ec2;
   border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
   box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
   padding-top: 1.1rem;
}

h1:focus {
   outline: none;
}

.valid.modified:not([type=checkbox]) {
   outline: 1px solid #26b050;
}

.invalid {
   outline: 1px solid #e50000;
}

.validation-message {
   color: #e50000;
}

.blazor-error-boundary {
   background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA9IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDY2LjAxODMuMjYzLjU4NiA2Ni4wMTgzIDI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODcuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
   padding: 1rem 1rem 1rem 3.7rem;
   color: white;
}

   .blazor-error-boundary::after {
      content: "An error has occurred."
   }

.darker-border-checkbox.form-check-input {
   border-color: #929292;
}

.hg-source-code-editor {
   height: 100%;
   width: 100%;
   padding: 0;
   border: 1px solid var(--bs-gray-500);
}

@media (max-width: 641px) {
   .hg-source-code-editor {
      width: calc(100vw - 4rem);
   }
}

.hg-click-card {
   cursor: pointer;
   transition: all 0.2s ease-in-out;
}

   .hg-click-card:hover {
      transform: scale(1.02);
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
   }

.hg-toolbar {
   border-bottom: 1px solid var(--add-20-gray);
}

/* Rich Text Editor Styles */
.hg-rich-text-editor {
   border: 1px solid var(--mud-palette-lines-default);
   border-radius: 4px;
   background-color: var(--mud-palette-surface);
   display: flex;
   flex-direction: column;
   height: 100%;
   min-height: 300px;
}

/* Readonly state styling */
.hg-rich-text-editor.hg-readonly {
   background-color: var(--mud-palette-surface-variant);
   border-color: var(--mud-palette-lines-default);
}

.hg-rich-text-editor.hg-readonly .hg-rich-editor-content {
   background-color: var(--mud-palette-surface);
}

/* Locked state styling */
.hg-rich-text-editor.hg-locked {
   background-color: var(--add-10-gray);
   border-color: var(--mud-palette-lines-default);
}

.hg-rich-text-editor.hg-locked .hg-rich-editor-content {
   background-color: var(--mud-palette-surface);
}

.hg-editor-area.hg-readonly {
   background-color: var(--mud-palette-surface);
   cursor: default;
   user-select: text; /* Allow text selection but not editing */
}

/* Editor container for lock indicator positioning */
.hg-editor-container {
   position: relative;
   flex: 1;
   display: flex;
   flex-direction: column;
}

.hg-editor-container.hg-locked {
   background-color: var(--add-10-gray);
}

/* Lock indicator positioned in top-right corner */
.hg-lock-indicator {
   position: absolute;
   top: 8px;
   right: 8px;
   z-index: 10;
   background-color: var(--mud-palette-surface);
   border-radius: 50%;
   padding: 4px;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
   display: flex;
   align-items: center;
   justify-content: center;
}

/* Locked content styling */
.hg-rich-editor-content.hg-locked-content {
   background-color: var(--add-10-gray);
}

/* Custom toolbar container with full control over wrapping */
.hg-rich-editor-toolbar-container {
   background-color: var(--mud-palette-surface-variant);
   border-bottom: 1px solid var(--mud-palette-lines-default);
   flex-shrink: 0;
   width: 100%;
   box-sizing: border-box;
   padding: 4px; /* Reduced from 8px */
   
   /* Perfect flex wrapping behavior */
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   align-content: flex-start;
   gap: 3px; /* Reduced from 6px */
   
   /* Minimum height but allows expansion - more compact */
   min-height: 36px; /* Reduced from 48px */
   height: auto;
}

/* Spacer to push items to the right */
.hg-toolbar-spacer {
   flex: 1;
   min-width: 15px; /* Reduced from 20px */
}

.hg-toolbar-group {
   display: flex;
   gap: 1px; /* Reduced from 2px */
   background-color: var(--mud-palette-surface);
   border-radius: 3px; /* Reduced from 4px */
   padding: 1px; /* Reduced from 2px */
   flex-shrink: 0; /* Prevent toolbar groups from shrinking */
}

.hg-rich-editor-toolbar-container .mud-icon-button {
   min-width: 26px; /* Reduced from 32px */
   min-height: 26px; /* Reduced from 32px */
   border-radius: 3px; /* Reduced from 4px */
   transition: all 0.2s ease-in-out;
   flex-shrink: 0; /* Prevent buttons from shrinking */
}

.hg-rich-editor-toolbar-container .mud-icon-button:hover {
   background-color: var(--mud-palette-action-hover);
}

.hg-rich-editor-toolbar-container .mud-icon-button.hg-active {
   background-color: var(--mud-palette-primary);
   color: var(--mud-palette-primary-text);
}

.hg-font-size-select {
   min-width: 70px; /* Reduced from 80px */
   max-width: 70px; /* Reduced from 80px */
   flex-shrink: 0; /* Prevent font size select from shrinking */
}

.hg-font-size-select .mud-input-control {
   height: 26px; /* Reduced from 32px */
}

.hg-font-size-select .mud-input > input.mud-input-root, div.mud-input-slot.mud-input-root {
   font-size: .8rem;
}

/* Ensure dividers don't interfere with wrapping */
.hg-rich-editor-toolbar-container .mud-divider {
   flex-shrink: 0;
   height: 20px; /* Reduced from 28px */
   align-self: center;
}

/* Hide vertical dividers on small screens when wrapping occurs */
@media (max-width: 1200px) {
   .hg-rich-editor-toolbar-container .mud-divider {
      display: none;
   }
}

.hg-rich-editor-content {
   flex: 1;
   display: flex;
   flex-direction: column;
   overflow: hidden;
   overflow-y: auto;
   min-height: 0; /* Allow content to shrink properly when toolbar expands */
}

.hg-editor-area {
   flex: 1;
   padding: 12px;
   outline: none;
   overflow-y: auto;
   font-family: inherit;
   font-size: 14px;
   line-height: 1.5;
   min-height: 200px;
}

.hg-editor-area:focus {
   outline: none;
}

.hg-code-view .hg-editor-area {
   display: none;
}

.hg-code-editor {
   flex: 1;
   font-family: 'Courier New', monospace;
   font-size: 12px;
}

.hg-code-editor .mud-input-control {
   height: 100%;
}

.hg-code-editor .mud-input-control textarea {
   height: 100% !important;
   resize: none;
}

.hg-color-picker-grid {
   display: grid;
   grid-template-columns: repeat(8, 1fr);
   gap: 8px;
   padding: 16px 0;
}

.hg-color-swatch {
   border: 2px solid var(--mud-palette-lines-default);
   border-radius: 4px;
   cursor: pointer;
   transition: all 0.2s ease-in-out;
}

.hg-color-swatch:hover {
   transform: scale(1.1);
   border-color: var(--mud-palette-primary);
}

/* Rich Text Editor Content Styling */
.hg-editor-area h1, .hg-editor-area h2, .hg-editor-area h3, 
.hg-editor-area h4, .hg-editor-area h5, .hg-editor-area h6 {
   margin: 0.5em 0;
   font-weight: bold;
}

.hg-editor-area h1 { font-size: 2em; }
.hg-editor-area h2 { font-size: 1.5em; }
.hg-editor-area h3 { font-size: 1.17em; }
.hg-editor-area h4 { font-size: 1em; }
.hg-editor-area h5 { font-size: 0.83em; }
.hg-editor-area h6 { font-size: 0.67em; }

.hg-editor-area p {
   margin: 0.5em 0;
}

.hg-editor-area ul, .hg-editor-area ol {
   margin: 0.5em 0;
   padding-left: 2em;
}

.hg-editor-area li {
   margin: 0.25em 0;
}

.hg-editor-area a {
   color: var(--mud-palette-primary);
   text-decoration: underline;
}

.hg-editor-area img {
   max-width: 100%;
   height: auto;
}

.hg-editor-area blockquote {
   margin: 1em 0;
   padding: 0.5em 1em;
   border-left: 4px solid var(--mud-palette-primary);
   background-color: var(--mud-palette-surface-variant);
}

/* Responsive adjustments */
@media (max-width: 768px) {
   .hg-rich-editor-toolbar-container {
      padding: 3px; /* Reduced from 6px */
      gap: 2px; /* Reduced from 4px */
      min-height: 32px; /* Reduced from 44px */
   }

   .hg-toolbar-group {
      gap: 0px; /* Further reduced from 1px */
      padding: 1px;
   }

   .hg-font-size-select {
      min-width: 65px; /* Reduced from 70px */
      max-width: 65px; /* Reduced from 70px */
   }
   
   /* Reduce button sizes slightly on mobile */
   .hg-rich-editor-toolbar-container .mud-icon-button {
      min-width: 24px; /* Reduced from 28px */
      min-height: 24px; /* Reduced from 28px */
   }
   
   /* Smaller spacer on mobile */
   .hg-toolbar-spacer {
      min-width: 8px; /* Reduced from 10px */
   }
   
   /* Compact font size select on mobile */
   .hg-font-size-select .mud-input-control {
      height: 24px; /* Reduced from 26px */
   }
}

.hg-website-editor {
   display: grid;
   grid-template-columns: 15rem 1fr;
   grid-template-rows: 3rem 1fr;
   height: 100%;
}

   .hg-website-editor .hg-toolbar {
      grid-column: 1 / span 2;
   }

   .hg-website-editor .hg-editor-menu {
      grid-column-start: 1;
      grid-row-start: 2;
      height: 100%;
      width: 100%;
   }

   .hg-website-editor .hg-editor-splitters {
      grid-column-start: 2;
      grid-row-start: 2;
      height: 100%;
      width: 100%;
   }

   .hg-website-editor .hg-editor-tabs, .hg-website-editor .hg-editor-tabs .mud-tabs-panels {
      height: 100%;
      width: 100%;
   }

.hg-page-editor-panes {
   display: grid;
   grid-template-rows: 1fr 1fr;
   grid-template-columns: 1fr calc(50vw - 150px);
   height: 100%;
}

   .hg-page-editor-panes .hg-editor-pane {
      border-left: 1px solid var(--add-20-gray);
      border-right: 1px solid var(--add-20-gray);
      grid-column: 1 / span 2;
      grid-row: 1 / span 2;
   }

   .hg-page-editor-panes .hg-editor-pane-off {
      grid-column: 1 / span 2;
      grid-row: 1 / span 2;
   }

   .hg-page-editor-panes .hg-editor-pane-bottom {
      grid-column: 1 / span 2;
      grid-row: 1;
   }

   .hg-page-editor-panes .hg-editor-pane-right {
      grid-column: 1;
      grid-row: 1 / span 2;
   }

   .hg-page-editor-panes .hg-preview-pane-off {
      visibility: collapse;
      display: none;
   }

   .hg-page-editor-panes .hg-preview-pane-bottom {
      grid-column: 1 / span 2;
      grid-row: 2;
   }

   .hg-page-editor-panes .hg-preview-pane-right {
      grid-column: 2;
      grid-row: 1 / span 2;
   }

.hg-settings-wrap {
   display: flex;
   height: 100%;
}

   .hg-settings-wrap .hg-settings {
      width: 100%;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      padding: 1rem;
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      gap: .15rem;
   }

.hg-data-editor {
   display: grid;
   grid-template-columns: 15rem 1fr;
   height: 100%;
}

   .hg-data-editor .hg-editor-pane {
      display: flex;
      flex-direction: column;
   }

   .hg-data-editor .hg-editor-list {
      border-left: 1px solid var(--add-20-gray);
      border-right: 1px solid var(--add-20-gray);
   }

.hg-data-cell {
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   max-height: 2rem;
   max-width: 15rem;
}

.hg-click-grid .mud-table-row {
   cursor: pointer;
}

.hg-website-editor .mud-toolbar {
   min-height: 0;
   background-color: var(--mud-palette-surface-variant);
   display: flex;
   gap: .25rem;
   grid-column: 1 / span 2;
}

.hg-assets {
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
}

   .hg-assets .hg-asset-card {
      width: 250px;
      height: 250px;
      position: relative;
   }

   .hg-assets .hg-asset-thumb {
      height: 110px;
      width: 110px;
      margin: auto;
      margin-top: .5rem;
      margin-bottom: .5rem;
      display: flex;
      background-color: var(--add-50-gray);
      border-radius: .35rem;
   }

      .hg-assets .hg-asset-thumb img {
         height: auto;
         width: auto;
         max-height: 100px;
         max-width: 100px;
         margin: auto;
         border-radius: .35rem;
      }

   .hg-assets .hg-asset-title {
      font-size: 0.8rem;
      text-align: center;
      font-weight: bold;
      text-transform: uppercase;
      height: 2.5rem;
      align-content: center;
   }

   .hg-assets .mud-card-content {
      padding: 0 1rem;
   }

.hg-dialog-80 {
   height: 80vh !important;
}

.hg-editor-menu .mud-nav-link {
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.hg-options-tools {
   width: 7rem;
   justify-content: center;
   background-color: var(--add-20-gray);
   padding: .75rem 0;
   border-radius: .5rem;
   margin-bottom: 1.25rem;
}

.hg-asset-manager-container {
   display: flex;
   flex-direction: column;
   height: 100%;
}

.hg-asset-manager-dialog {
   height: 80vh;
}

.hg-asset-manager-full {
   height: 100%;
}

.hg-asset-manager-header {
   flex-shrink: 0;
   border-bottom: 1px solid var(--add-20-gray);
   background-color: var(--mud-palette-surface);
   position: sticky;
   top: 0;
   z-index: 10;
}

.hg-asset-manager-content {
   flex: 1;
   overflow-y: auto;
   overflow-x: hidden;
   padding: 1rem 0;
   min-height: 0;
}

   .hg-asset-manager-content .hg-assets {
      width: 100%;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: flex-start;
      padding: 0 1rem;
   }

      .hg-asset-manager-content .hg-assets.hg-asset-manager-grid {
         display: flex;
         flex-wrap: wrap;
         justify-content: flex-start;
         height: calc(100vh - 20.8rem);
      }

.hg-asset-info {
   display: flex;
   flex-direction: row;
   justify-content: space-around;
}

.hg-asset-manager-empty {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 4rem 2rem;
   text-align: center;
   width: 100%;
}

.hg-asset-manager-footer {
   flex-shrink: 0;
   border-top: 1px solid var(--add-20-gray);
   background-color: var(--mud-palette-surface);
}

/* Make asset cards responsive */
.hg-asset-manager-content .hg-assets .hg-asset-card {
   flex: 0 0 auto;
   width: 250px;
   height: 250px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
   .hg-asset-manager-content .hg-assets {
      justify-content: center;
   }

      .hg-asset-manager-content .hg-assets .hg-asset-card {
         width: 200px;
         height: 200px;
      }
}

@media (max-width: 480px) {
   .hg-asset-manager-content .hg-assets .hg-asset-card {
      width: 180px;
      height: 180px;
   }
}

.hg-dialog-script-editor {
   height: 20vh;
   min-width: 30rem;
}

/* ---------------------------------
   Helpers
------------------------------------ */
.hg-height-100p {
   height: 100%;
}

.hg-width-100p {
   width: 100%;
}

.hg-height-100vh {
   height: 100vh;
}

.hg-thin-scroll {
   scrollbar-width: thin;
}

   .hg-thin-scroll::-webkit-scrollbar {
      width: 6px;
   }

   .hg-thin-scroll::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.05);
   }

   .hg-thin-scroll::-webkit-scrollbar-thumb {
      background-color: rgba(0, 0, 0, 0.2);
      border-radius: 3px;
   }

.hg-x-thin-button.mud-button-root, .hg-x-thin-button .mud-button-root {
   padding-right: 0 !important;
   padding-left: 0 !important;
}


.hg-thin-button.mud-button-root, .hg-thin-button .mud-button-root {
   padding-right: 6px !important;
   padding-left: 6px !important;
}

.hg-scroll-wrap {
   position: relative;
   height: 100%;
}

   .hg-scroll-wrap .hg-scroll-content {
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      overflow-y: auto;
      overflow-x: auto;
      width: 100%;
   }

.chat-scroll-container {
   height: calc(100vh - 34rem);
   min-height: 0;
   overflow-y: auto;
}

.hg-grid-auto-1fr-auto-rows {
   display: grid;
   grid-template-rows: auto 1fr auto;
   height: 100%;
   min-height: 0;
}

.hg-small-icons .mud-icon-root.mud-svg-icon {
   width: 16px;
   height: 16px;
}

.hg-fill {
   flex: 1;
   height: 100%;
}

.hg-max-40w-col {
   display: flex;
   flex-direction: column;
   max-width: 40rem;
}

.hg-menu-item-active {
   background-color: var(--add-20-gray);
}

/* DataSchemaEditor */

.hg-schema-column-row {
   transition: all 0.2s ease;
   border: 1px solid transparent;
}

   .hg-schema-column-row:hover {
      border-color: var(--mud-palette-primary);
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
   }

.hg-locked-column {
   background-color: var(--add-10-gray);
   border-left: 3px solid var(--mud-palette-info) !important;
}

.hg-hidden-column {
   background-color: rgba(158, 158, 158, 0.1);
   opacity: 0.8;
}

   .hg-hidden-column .hg-mud-text {
      color: var(--mud-palette-text-disabled) !important;
   }

.hg-locked-column .mud-grid-item-xs-1 {
   margin-left: 1rem;
   margin-right: -1rem;
}
/*preview controls*/
.hg-preview-container {
   display: flex;
   flex-direction: column;
   height: 100%;
   width: 100%;
   overflow: hidden; /* Prevent container from expanding beyond bounds */
}

.hg-iframe-viewport {
   flex: 1;
   display: flex;
   justify-content: center;
   align-items: flex-start;
   padding: 1rem;
   background-color: var(--mud-palette-background-grey);
   overflow: hidden; /* Prevent expanding the parent */
   min-height: 0; /* Allow flexbox shrinking */
   min-width: 0; /* Allow flexbox shrinking */
}

.hg-iframe-container {
   position: relative;
   height: 100%;
   min-height: 400px; /* Minimum height for usability */
   border: 1px solid #ccc;
   border-radius: 8px;
   background-color: white;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   transform-origin: top center; /* Ensure scaling transforms from top-center for horizontal centering */
}

   .hg-iframe-container iframe {
      width: 100%;
      height: 100%;
      border: none;
   }

   .hg-iframe-container .hg-loading-spinner {
      position: absolute;
      top: 50%;
      left: 50%;
      border: 8px solid #f3f3f3; /* Light grey */
      border-top: 8px solid #3498db; /* Blue */
      border-radius: 50%;
      width: 50px;
      height: 50px;
      animation: spin 1s linear infinite;
      transform: translate(-50%, -50%);
      z-index: 10;
   }

.hg-breakpoint-controls {
   border-top: 1px solid var(--mud-palette-divider);
   background-color: var(--mud-palette-surface);
   padding: 0;
   flex-shrink: 0;
}

.hg-breakpoint-chip {
   cursor: pointer;
   transition: all 0.2s ease;
}

   .hg-breakpoint-chip:hover {
      transform: translateY(-1px);
   }

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
   .hg-iframe-viewport {
      padding: 0.5rem;
   }

   .hg-breakpoint-controls .mud-stack {
      flex-wrap: wrap;
   }

   .hg-breakpoint-chip {
      font-size: 0.75rem;
   }

   .hg-iframe-container {
      min-height: 300px; /* Smaller minimum on mobile */
   }
}

@keyframes hg-spin {
   0% {
      transform: translate(-50%, -50%) rotate(0deg);
   }

   100% {
      transform: translate(-50%, -50%) rotate(360deg);
   }
}


/*main layout*/

#blazor-error-ui {
   background-color: #dc3545;
   color: white;
   box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
   box-sizing: border-box;
   display: none;
   position: fixed;
   bottom: 20px;
   right: 20px;
   padding: 1rem 1.5rem;
   border-radius: 8px;
   z-index: 10000;
   max-width: 400px;
   min-width: 300px;
   font-family: 'Commissioner', sans-serif;
   
   /* Animation for slide in/out */
   transform: translateX(100%);
   transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
   opacity: 0;
}

/* Show state for the error UI */
#blazor-error-ui.show {
   transform: translateX(0);
   opacity: 1;
}

#blazor-error-ui .sg-reload {
   color: white;
   text-decoration: underline;
   font-weight: 500;
   margin-left: 0.5rem;
}

#blazor-error-ui .sg-reload:hover {
   color: #f8f9fa;
   text-decoration: none;
}

#blazor-error-ui .hg-dismiss {
   cursor: pointer;
   position: absolute;
   right: 0.75rem;
   top: 0.5rem;
   font-size: 1.2rem;
   font-weight: bold;
   opacity: 0.8;
   transition: opacity 0.2s ease;
}

#blazor-error-ui .hg-dismiss:hover {
   opacity: 1;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
   #blazor-error-ui {
      bottom: 10px;
      right: 10px;
      left: 10px;
      max-width: none;
      min-width: auto;
      padding: 0.875rem 1.25rem;
      font-size: 0.9rem;
   }
   
   #blazor-error-ui .hg-dismiss {
      right: 0.5rem;
      top: 0.375rem;
      font-size: 1.1rem;
   }
}


.mud-selected-item .mud-list-item-text {
   color: var(--mud-palette-secondary-darken);
} 