body {
  margin: 0;
  --token-fontFamily:
    "Ubuntu", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    AppleSDGothic, "Apple SD Gothic Neo", NanumGothic, "NanumGothicOTF",
    "Nanum Gothic", "Malgun Gothic", sans-serif;
  font-family: var(--token-fontFamily);
  --lumo-font-family: var(--token-fontFamily);
  --lumo-primary-text-color: var(--token-colorPrimary, #27824f);
  --lumo-primary-color-50pct: var(--token-colorPrimary, #27824f);
  background-color: var(--token-colorBgBase, rgba(247, 247, 246, 1));
}

body.dark-theme {
  background-color: #191919;
}

.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--token-colorBgBase, rgba(247, 247, 246, 1));
  transition: opacity 0.2s ease-out;
}

body.dark-theme .splash {
  background-color: #191919;
}

.splash-drag-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  -webkit-app-region: drag;
  background-color: transparent;
}

.splash-hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-card {
  position: relative;
  width: 340px;
  min-height: 260px;
  border: 1px solid var(--token-colorBorder, #ccc);
  border-radius: 10px;
  background-color: #ffffff;
}

body.dark-theme .splash-card {
  background-color: #191919;
  border: 1px solid var(--token-colorBorder, #444);
  color: #dcdcdc;
}

.splash-header {
  width: 340px;
  min-height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left top;
  background-color: RGB(246, 253, 247);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-size: 28px;
  font-weight: 400;
  line-height: 60px;
  overflow: hidden;
}
.splash-header .logo {
  background-image: url("/manifest/backend.ai-text.svg");
  width: 300px;
  height: 50px;
  margin: 15px 20px;
  background-repeat: no-repeat;
  background-size: contain;
}

body.dark-theme .splash-header .logo {
  background-image: url("/manifest/backend.ai-text-bgdark.svg");
}

body.dark-theme .splash-header {
  background-color: var(--token-colorBgContainer, #141414);
}

ul {
  list-style-type: none;
}

.splash-information .detail {
  font-weight: 400;
  font-size: 13px;
}

.splash-loading {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.loading-message {
  font-size: 16px;
}

.sk-folding-cube {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  -webkit-transform: rotateZ(45deg);
  transform: rotateZ(45deg);
}

.sk-folding-cube .sk-cube {
  float: left;
  width: 50%;
  height: 50%;
  position: relative;
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}

.sk-folding-cube .sk-cube:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3e872d;
  -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
  animation: sk-foldCubeAngle 2.4s infinite linear both;
  -webkit-transform-origin: 100% 100%;
  -ms-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
}

.sk-folding-cube .sk-cube2 {
  -webkit-transform: scale(1.1) rotateZ(90deg);
  transform: scale(1.1) rotateZ(90deg);
}

.sk-folding-cube .sk-cube3 {
  -webkit-transform: scale(1.1) rotateZ(180deg);
  transform: scale(1.1) rotateZ(180deg);
}

.sk-folding-cube .sk-cube4 {
  -webkit-transform: scale(1.1) rotateZ(270deg);
  transform: scale(1.1) rotateZ(270deg);
}

.sk-folding-cube .sk-cube2:before {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}

.sk-folding-cube .sk-cube3:before {
  -webkit-animation-delay: 0.6s;
  animation-delay: 0.6s;
}

.sk-folding-cube .sk-cube4:before {
  -webkit-animation-delay: 0.9s;
  animation-delay: 0.9s;
}

@-webkit-keyframes sk-foldCubeAngle {
  0%,
  10% {
    -webkit-transform: perspective(140px) rotateX(-180deg);
    transform: perspective(140px) rotateX(-180deg);
    opacity: 0;
  }
  25%,
  75% {
    -webkit-transform: perspective(140px) rotateX(0deg);
    transform: perspective(140px) rotateX(0deg);
    opacity: 1;
  }
  90%,
  100% {
    -webkit-transform: perspective(140px) rotateY(180deg);
    transform: perspective(140px) rotateY(180deg);
    opacity: 0;
  }
}

@keyframes sk-foldCubeAngle {
  0%,
  10% {
    -webkit-transform: perspective(140px) rotateX(-180deg);
    transform: perspective(140px) rotateX(-180deg);
    opacity: 0;
  }
  25%,
  75% {
    -webkit-transform: perspective(140px) rotateX(0deg);
    transform: perspective(140px) rotateX(0deg);
    opacity: 1;
  }
  90%,
  100% {
    -webkit-transform: perspective(140px) rotateY(180deg);
    transform: perspective(140px) rotateY(180deg);
    opacity: 0;
  }
}

.copyright {
  font-size: 12px;
}

/* Global Vaadin components */

vaadin-combo-box-item[selected],
vaadin-select-item[selected] {
  background-color: rgba(232, 247, 232, 1);
}

vaadin-combo-box-item:hover,
vaadin-select-item:hover {
  background-color: rgba(247, 247, 246, 1);
}
