.monitorContainer {
  background:linear-gradient(180deg, oklch(0.49 0 0) 0%, oklch(0.43 0 0) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  padding: 4px 8px 8px 8px;
  height: 100%; /* Fixed viewport height */
  width: 100%;
  overflow: hidden; /* Prevent container from scrolling */
  position:fixed;
}

.monitorControls {
  display: flex;
  padding: 0 21px;
  justify-content: space-between;
  align-items: flex-end;
  align-self: stretch;
  flex-shrink: 0;
  gap: 24px;
}

.containerFrame {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  flex: 1;
  align-self: stretch;
  min-height: 0; /* Allow flex shrinking */

  border-radius: 8px;
  border: 2px solid oklch(0.55 0 0);
  background: linear-gradient(189deg, oklch(0.32 0 0) 25.41%, oklch(0.23 0 0) 86.07%), oklch(0.32 0 0);
  padding: 6px 6px;
  box-sizing: border-box;
}

.screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-self: stretch;
  position: relative; /* Enable absolute positioning for menu */
  background: var(--display-app-base);
  border: oklch(0.0 0.0 0) 3px solid;
  border-radius: 4px;
  min-height: 0; /* Allow flex shrinking */
  overflow: hidden; /* Ensure menu stays within screen bounds */
}

.screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--display-effect);
  background-repeat: repeat;
  mix-blend-mode: lighten;
  pointer-events: none;
  z-index: 20000; 
  opacity:var(--display-effect-strength);
}

.first-left {
  display: flex;
  justify-content: flex-start;
  gap:12px;
}

/* ==========================================================================
   CONTROL BUTTONS
   ========================================================================== */

.menu-control {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-direction: column;
}

.menu-control .switch {
  display: flex;
  width: 54px;
  height: 38px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  border: 2px solid oklch(0.03 0 0);
  background: oklch(0.43 0 0);
  color: oklch(0.80 0 0);
  font-family: "UbuntuMono-Regular", monospace;
  font-size: 16px;
  line-height: normal;
  cursor: pointer;
}

.menu-control span {
  font-family: "UbuntuMono-Regular", monospace;
  font-size: 12px;
}

.switch.active {
  color: oklch(1.0 0.0 0);
}

.switch:active {
  transform: scale(0.99);
  box-shadow: inset 0 0 4px oklch(0.3 0 0);
}

.switch:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: oklch(0.81 0 0);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon--home {
  -webkit-mask-image: url('../../assets/icons/home.svg');
  mask-image: url('../../assets/icons/home.svg');
}

.icon--back {
  -webkit-mask-image: url('../../assets/icons/back.svg');
  mask-image: url('../../assets/icons/back.svg');
}

.displayicon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../../assets/icons/display.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.color-scheme-control {
  display: flex;
  align-items: center;
  gap: 4px;
}

.display-control {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-direction: column;
}

.display-control .switch {
  display: flex;
  width: 64px;
  height: 24px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  border: 2px solid oklch(0.03 0 0);
  background: oklch(0.49 0 0);
  color: oklch(0.7 0 0);
  font-family: "UbuntuMono-Regular", monospace;
  font-size: 20px;
  line-height: normal;
  cursor: pointer;
}

.display-control span {
  font-family: "UbuntuMono-Regular", monospace;
  font-size: 12px;
  color: oklch(0.08 0 0);
}


/* Mobile responsive behavior */
@media (max-width: 640px) {

  .containerFrame {
    border-radius:24px;
  }

  .screen {
    border-radius:18px;
  }

}