body {
  --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
  font-family: var(--body-font);
  font-size: var(--type-ramp-base-font-size);
  line-height: var(--type-ramp-base-line-height);
  margin: 0;
}

.navmenu-icon {
  display: none;
}

.main {
  min-height: calc(100dvh - 86px);
  color: var(--neutral-foreground-rest);
  align-items: stretch !important;
}

.body-content {
  align-self: stretch;
  height: calc(100dvh - 86px) !important;
  display: flex;
}

.content {
  padding: 0.5rem 1.5rem;
  align-self: stretch !important;
  width: 100%;
}

.manage {
  width: 100dvw;
}

footer {
  background: var(--neutral-layer-4);
  color: var(--neutral-foreground-rest);
  align-items: center;
  padding: 10px 10px;
}

  footer a {
    color: var(--neutral-foreground-rest);
    text-decoration: none;
  }

    footer a:focus {
      outline: 1px dashed;
      outline-offset: 3px;
    }

    footer a:hover {
      text-decoration: underline;
    }

.alert {
  border: 1px dashed var(--accent-fill-rest);
  padding: 5px;
  margin: 10px 0;
}

.alert-danger {
  border: 1px dashed var(--error);
}

.alert-success {
  border: 1px dashed var(--success);
}

.alert-warning {
  border: 1px dashed var(--warning);
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
  margin: 20px 0;
}

  #blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
  }

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoP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YuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

/* Virtualized List Styles */
.virtualized-list-container {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #ffffff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.virtualized-list-item {
  transition: background-color 0.2s ease;
}

  .virtualized-list-item:hover {
    background-color: #f5f5f5;
  }

.virtualized-list-item-placeholder {
  animation: pulse 1.5s infinite;
}

/* Virtualized Tree List Styles */
.virtualized-tree-container {
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tree-item {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

  .tree-item:hover {
    background-color: #f0f0f0;
  }

.expand-btn {
  transition: transform 0.2s ease;
  font-size: 12px;
  line-height: 1;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .expand-btn:hover {
    color: #000;
  }

.tree-item-placeholder {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.blazor-error-boundary::before {
  content: "An error has occurred. "
}

.loading-progress {
  position: relative;
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 20vh auto 1rem auto;
}

  .loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
  }

    .loading-progress circle:last-child {
      stroke: #1b6ec2;
      stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
      transition: stroke-dasharray 0.05s ease-in-out;
    }

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-weight: bold;
  inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

  .loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
  }

code {
  color: #c02d76;
}

@media (max-width: 600px) {
  .header-gutters {
    margin: 0.5rem 3rem 0.5rem 1.5rem !important;
  }

  [dir="rtl"] .header-gutters {
    margin: 0.5rem 1.5rem 0.5rem 3rem !important;
  }

  .main {
    flex-direction: column !important;
    row-gap: 0 !important;
  }

  nav.sitenav {
    width: 100%;
    height: 100%;
  }

  #main-menu {
    width: 100% !important;
  }

    #main-menu > div:first-child:is(.expander) {
      display: none;
    }

  .navmenu {
    width: 100%;
  }

  #navmenu-toggle {
    appearance: none;
  }

    #navmenu-toggle ~ nav {
      display: none;
    }

    #navmenu-toggle:checked ~ nav {
      display: block;
    }

  .navmenu-icon {
    cursor: pointer;
    z-index: 10;
    display: block;
    position: absolute;
    top: 15px;
    left: unset;
    right: 20px;
    width: 20px;
    height: 20px;
    border: none;
  }

  [dir="rtl"] .navmenu-icon {
    left: 20px;
    right: unset;
  }
}

/* Table */

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

  table td,
  table th {
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    text-align: left;
    vertical-align: middle;
    border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
  }


.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.topbar {
  height: 56px;
  background: #e60000;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-weight: 600;
  font-size: 18px;
}

.top-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.icon-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.main-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.sidebar-icons {
  width: 56px;
  background: #f8f8f8;
  border-right: 1px solid #e1dfdd;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
  gap: 8px;
}

.sidebar-icon {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

  .sidebar-icon:hover {
    background: #edebe9;
  }

  .sidebar-icon.active {
    background: #e1dfdd;
  }

.navigation-panel {
  width: 330px;
  background: white;
  border-right: 1px solid #e1dfdd;
  display: flex;
  flex-direction: column;
}

.panel-header {
  padding: 14px;
  border-bottom: 1px solid #edebe9;
}

.expand-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid #d2d0ce;
  background: white;
  border-radius: 4px;
  cursor: pointer;
}

.tree {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0;
}

.tree-item,
.tree-child {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

  .tree-item:hover,
  .tree-child:hover {
    background: #f3f2f1;
  }

  .tree-item.active,
  .tree-child.active {
    background: #edebe9;
    border-left: 3px solid #e60000;
  }

.tree-child {
  padding-left: 40px;
  color: #605e5c;
}

.tree-arrow {
  width: 16px;
}

.designer {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #faf9f8;
}

.designer-toolbar {
  height: 56px;
  background: white;
  border-bottom: 1px solid #e1dfdd;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}

  .designer-toolbar button {
    border: 1px solid #d2d0ce;
    background: white;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
  }

.designer-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.empty-state {
  text-align: center;
  color: #605e5c;
}

.cube {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #c8c6c4 0%, #e1dfdd 50%, #b3b0ad 100%);
  transform: rotate(45deg);
  margin: 0 auto 30px auto;
  border-radius: 12px;
  opacity: 0.6;
}

.empty-state h2 {
  font-size: 22px;
  font-weight: 400;
}

.properties-panel {
  width: 420px;
  background: white;
  border-left: 1px solid #e1dfdd;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.properties-header h2 {
  margin-bottom: 4px;
}

.properties-header p {
  color: #605e5c;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

  .form-group label {
    font-size: 14px;
    color: #605e5c;
  }

  .form-group input,
  .form-group select {
    height: 40px;
    border: 1px solid #d2d0ce;
    border-radius: 4px;
    padding: 0 12px;
    background: white;
  }

.accordion {
  border-top: 1px solid #edebe9;
  padding-top: 16px;
}

.accordion-header {
  font-weight: 600;
}

.save-btn {
  margin-top: auto;
  height: 42px;
  border: none;
  border-radius: 4px;
  background: #d13438;
  color: white;
  cursor: pointer;
}

.bottom-panel {
  height: 40px;
  background: white;
  border-top: 1px solid #e1dfdd;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  flex-shrink: 0;
}

  .bottom-panel button {
    border: none;
    background: transparent;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
  }

  .bottom-panel button:hover {
    background: #f3f2f1;
  }


button {
  font: inherit;
}

.interop-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 1.5rem;
  min-height: 100vh;
  padding: 3rem;
  box-sizing: border-box;
}

.blazor-side,
.react-side {
  min-width: 0;
}

.blazor-side {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  color: #526077;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.blazor-side h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.intro {
  max-width: 46rem;
  margin: 0;
  color: #435166;
  font-size: 1.05rem;
  line-height: 1.55;
}

.blazor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

  .blazor-actions button {
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #2f7d68;
    border-radius: 6px;
    background: #2f7d68;
    color: #ffffff;
    cursor: pointer;
  }

    .blazor-actions button:hover:not(:disabled) {
      background: #286c5a;
    }

    .blazor-actions button:disabled {
      border-color: #b9c2cf;
      background: #d8dee8;
      color: #617088;
      cursor: default;
    }

.event-log {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

  .event-log h2 {
    margin: 0;
    font-size: 1rem;
  }

  .event-log ul {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .event-log li {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
  }

  .event-log strong {
    color: #17324d;
  }

  .event-log span,
  .event-log small,
  .muted {
    color: #526077;
  }

@media (max-width: 860px) {
  .interop-shell {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
}
