body {
  overflow: hidden;
}

#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* background */
  background: url(https://wallpapers.com/images/hd/elegant-2560-x-1440-background-1jgmt6l7kwdx55yf.jpg);
  background-repeat: no-repeat;
  background-position: center;

  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }

  ::-webkit-scrollbar-track {
    background-color: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background-color: var(--color-gray-400);
    border-radius: 8px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-gray-500);
  }
}

.liquid {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mini-desktop {
  fill: #f005;
  stroke: black;
  stroke-width: 2px;
}

.solid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  backdrop-filter: blur(10px);
}

.desktops-container {
  background-color: #ffffffe0;
  height: 100%;
  width: 100%;
  padding: 20px;
  display: grid;
  grid-template-rows: 1fr 140px;
  gap: 10px;
  overflow: hidden;

  .desktop-list {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    direction: rtl;

    .desktop-container {
      width: 100%;
      direction: ltr;

      .desktop {
        width: 100%;
        display: flex;
        flex-direction: column;

        .desktop-header {
          --header-height: 40px;
          width: 100%;
          height: var(--header-height);
          background-color: var(--color-gray-100);
          color: var(--color-gray-900);
          display: grid;
          grid-template-columns: 1fr var(--header-height);
          align-items: center;
          border-radius: 14px 14px 0 0;
          overflow: hidden;
        }

        .desktop-preview {
          width: 100%;
          aspect-ratio: 16/9;
          background-color: #111;
          border-radius: 0 0 14px 14px;
        }
      }
    }
  }

  .add-desktop {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    border: 2px dashed var(--color-gray-300);
    &:hover {
      background-color: #0002;
    }
  }
}

.focused-desktop-window-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  height: min-content;
  gap: 10px;
}

.window-container {
  width: 30%;
  aspect-ratio: 16/9;
}

.window {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.window-header {
  --header-height: 40px;

  width: 100%;
  height: var(--header-height);
  background-color: var(--color-gray-100);
  color: var(--color-gray-900);
  display: grid;
  grid-template-columns: var(--header-height) 1fr var(--header-height);
  align-items: center;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.window-header-icon {
  height: 100%;
}

.window-header-label {
  font-weight: 600;
  justify-self: flex-start;
}

.window-header-close {
  height: 100%;
  &:hover {
    background-color: var(--color-red-900);
  }
}

.window-preview {
  flex: 1;
  background-color: #111;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}
