@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-family-base: "Nunito", system-ui, sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: var(--font-family-base);
  text-align: center;
  background-color: #1e1e1e;
}

* {
  box-sizing: border-box;
  font-family: var(--font-family-base);
}

/* Dialog base */
.app-dialog {
  border: none;
  flex-direction: column;
  border-radius: 8px;
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Backdrop */
.app-dialog::backdrop {
  background: rgba(0, 0, 0, 0.25);
}

.backdrop {
  background: rgba(0, 0, 0, 0.25);
}

.screen-root:focus {
  outline: 2px solid #4f46e5;
  /* indigo */
  outline-offset: 4px;
}

.screen-root:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 4px;
}

/* Ensure programmatic focus is visible */
button:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 3px;
}

/* Enhance keyboard-only focus */
button:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 3px;
}

/* If you have a CSS reset that removes outlines */
button {
  outline: none;
}

.screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen-content {
  padding: 5px;
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  background-color: #6f757a;
}

.app-bar {
  height: 60px;
  display: flex;
  flex-direction: column;
}

.screen-title {
  height: 60px;
  /* color: red; */
  display: flex;
  flex-direction: column;
  border-style: solid;
  border-width: 1px;
}

.screen-body {
  background-color: gray;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.screen-title {
  height: 40px;
  display: flex;
  flex-direction: column;
}
.screen-title > .title-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-grow: 1;
}
.screen-title > .title-bar > .title {
  display: flex;
  flex-direction: column;
  align-items: start;
  flex: 1;
  padding-left: 10px;
}
.screen-title > .title-bar > .title > .title-text {
  flex: 1;
  font-size: 18px;
  font-weight: bold;
}
.screen-title > .title-bar > .close {
  border-left: 1px solid #acacac;
  display: flex;
  padding-left: 5px;
  padding-right: 5px;
}

.screen-buttons {
  height: 40px;
  margin-top: 5px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.button-row {
  display: inline-flex;
  align-items: center;
  transform-origin: left center;
  will-change: transform;
  height: 100%;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  white-space: nowrap;
  height: 100%;
  box-sizing: border-box;
}

.btn span {
  font-size: 14px;
}

.input-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
}

.input {
  width: 100%;
  height: 24px;
  padding: 2px 4px;
  outline: none;
  border: 0;
  box-sizing: border-box;
  font-size: 14px;
}

.part {
  min-height: 0;
  border-width: 1px;
  scrollbar-width: thin;
}

.part.scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 180, 180, 0.8) transparent;
}

.part.scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.part.scroll::-webkit-scrollbar-track {
  background: transparent;
}

.part.scroll::-webkit-scrollbar-thumb {
  background-color: rgba(180, 180, 180, 0.8);
  /* MORE VISIBLE */
  border-radius: 6px;
}

.part.scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(220, 220, 220, 0.9);
}

.suggestions-panel {
  position: fixed;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: left;
}
.suggestions-panel > div:last-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}

/** tickbox style start **/
.tickbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
}

/* Checkbox box unchecked */
/*
.tickbox span {
  width: 14px;
  height: 14px;
  border-radius: 4px;              
  border: 1px solid var(--checkboxBorder, #c7c7c7);
  background-color: var(--checkboxBackgroundReadonly, #ffffff);
  position: relative;
  transition: all 0.2s ease;
}
*/
/* Checkbox box */
.tickbox span {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
  z-index: 0;
}

/*
.focusedtickbox:focus-visible::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 16px;
//   border-width: 1px;
//   border-style: solid;
  border: 1px solid var(--checkboxBorder, #c7c7c7);
  background-color: var(--hoverOverlay, #95b7ca);
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: -1;
}
  */
/*
.focusedtickbox-before {
  position: absolute;
  inset: -8px;
  border-radius: 16px;
//   border-width: 1px;
//   border-style: solid;
  border: 1px solid var(--checkboxBorder, #c7c7c7);
  background-color: var(--hoverOverlay, #95b7ca);
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: -1;
}
  */
/* Checkbox box checked */
.tickbox.checked span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 3px;
  height: 8px;
  border-style: solid;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  z-index: 1;
}

/** tickbox style end **/
/** linear progress bar style start **/
.progress-container {
  width: 100vw;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.bar {
  position: absolute;
  height: 100%;
  background: #2196f3;
  transform-origin: left;
}

/* First bar */
.bar1 {
  width: 100%;
  animation: bar1Anim 2s infinite;
}

/* Second bar */
.bar2 {
  width: 100%;
  animation: bar2Anim 2s infinite;
}

@keyframes bar1Anim {
  0% {
    transform: translateX(-100%) scaleX(0.4);
  }
  40% {
    transform: translateX(0%) scaleX(0.6);
  }
  100% {
    transform: translateX(100%) scaleX(0.4);
  }
}
@keyframes bar2Anim {
  0% {
    transform: translateX(-150%) scaleX(0.3);
  }
  60% {
    transform: translateX(50%) scaleX(0.5);
  }
  100% {
    transform: translateX(120%) scaleX(0.3);
  }
}
/* Material easing */
.bar1 {
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.bar2 {
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/** linear progress bar style end **/
