@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  font-family: "Manrope", sans-serif;
  list-style: none;
}

:root {
  /* Colors */
  --main-bg: rgba(245, 245, 247, 0.55);
  --screen: rgba(245, 245, 247, 1);
  --text-primary: rgba(0, 0, 0, 0.7);
  --text-secondary: rgba(0, 0, 0, 0.4);
  --foreground: rgba(0, 0, 0, 0.07);
  --border: rgba(255, 255, 255, 1);
  --svg-color: #000;

  /* Gradient */
  --gradient: linear-gradient(to bottom, #f6f0d1, #f2ddc9);

  /* Image */
  --bg-image: url("../img/main-bg-light.jpg");
}

.dark {
  /* Colors */
  --main-bg: rgba(4, 6, 24, 0.5);
  --screen: rgba(10, 10, 8, 0.95);
  --text-primary: rgba(255, 255, 255, 0.7);
  --text-secondary: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.12);
  --svg-color: #fff;

  /* Gradient */
  --gradient: linear-gradient(to bottom, #662261, #14054d);

  /* Image */
  --bg-image: url("../img/main-bg-dark.jpg");
}

html {
  scroll-behavior: smooth;
  user-select: none;
}

h1 {
  margin: 0;
  color: var(--text-primary);
}

.hidden {
  display: none !important;
}

.arc-icon path {
  fill: var(--svg-color);
  stroke-opacity: 0.4;
}

.sidebar-icon path,
.sidebar-transform-icon path,
.columns-icon path,
.pen-square-icon path,
.search-icon path,
.plus-icon path,
.moon-icon path,
.spaces-icons path,
.sun-icon path {
  stroke: var(--svg-color);
  stroke-opacity: 0.4;
}

.icons {
  padding: 0px;
  cursor: pointer;
}

.icon-selected path {
  stroke-opacity: 1;
}

body {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.window {
  border-radius: 12px;
  background-color: var(--main-bg);
  display: flex;
  justify-content: start;
  align-items: start;
  width: 100%;
  height: 100vh;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  gap: 8px;
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 14%), 0 20px 50px 0 rgba(0, 0, 0, 20%);
  backdrop-filter: blur(40px);
  margin: 0 auto;
}

.sidebar {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 16px;
  width: 100%;
  min-width: 220px;
  max-width: 332px;
  height: calc(100vh - 20px);
  padding: 8px 8px 0 0;
}

.sidebar-float {
  position: absolute;
  left: -352px;
  top: 8px;
  transition: left 0.3s ease;
  z-index: 100;
  border-radius: 12px;
  padding: 8px 8px;
  background-image: var(--gradient);
  border: 1px solid var(--border);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.sidebar-float.visible {
  left: 8px;
}

.sidebar-trigger {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  z-index: 99;
}

.header-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 16px;
  width: 100%;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: start;
  width: 100%;
}

.controls {
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 8px;
}

.url-and-favs {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 8px;
  width: 100%;
}

.search-bar {
  position: relative;
  display: flex;
  justify-content: start;
  align-items: start;
  width: 100%;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  cursor: text;
}

#search {
  background-color: var(--foreground);
  padding: 12px 8px 12px 32px;
  width: 100%;
  border-radius: 12px;
  outline: 1px solid transparent;
  border: none;
  transition: all 0.3s ease;

  /* Fonts */
  font-size: 12px;
  font-weight: 400;
  line-height: auto;
  letter-spacing: -1%;
  color: var(--text-secondary);

  &:hover {
    outline-color: var(--text-secondary);
  }

  &:focus {
    outline-color: var(--text-primary);
  }
}

.pinned-favourite-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
}

.pinned-favourite-element {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  background-color: var(--foreground);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    filter: brightness(0.8);
  }

  &:active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-color: rgba(255, 255, 255, 1);
  }
}

.profil-pinned {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 16px;
  width: 100%;
}

.spaces-and-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.spaces-container {
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 8px 8px;
  gap: 4px;
  width: 100%;

  /* Fonts */
  font-size: 12px;
  font-weight: 600;
  line-height: auto;
  letter-spacing: -0.5%;
  text-align: left;
  color: var(--text-secondary);

  .space-icon-container {
    padding: 0px;
  }

  svg path {
    stroke: var(--text-primary);
  }
}

#select-box {
  background-color: transparent;
  border: none;
  cursor: pointer;

  /* Fonts */
  font-size: 12px;
  font-weight: 600;
  line-height: auto;
  letter-spacing: -0.5%;
  text-align: left;
  color: var(--text-primary);

  option {
    cursor: pointer;
    background-color: var(--screen);
  }
}

.tabs-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 4px;
  width: 100%;
  height: 68.5vh;
}

.tab-container {
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 8px;
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    background-color: var(--foreground);
  }

  &:active {
    background-color: var(--border);
  }
}

.img-tab-container {
  width: 68px;
  height: 68px;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.text-tab-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: start;
  width: 100%;
  padding: 12px 8px 12px 0;
}

.profil-tab {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 4px;
}

.profil-name {
  font-size: 16px;
  font-weight: 600;
  line-height: auto;
  letter-spacing: -0.5%;
  text-align: left;
  color: var(--text-primary);
}

.message-profil {
  font-size: 16px;
  font-weight: 400;
  line-height: auto;
  letter-spacing: -0.5%;
  text-align: left;
  color: var(--text-secondary);
}

.date-text {
  font-size: 16px;
  font-weight: 400;
  line-height: auto;
  letter-spacing: -0.5%;
  text-align: left;
  color: var(--text-secondary);
}

.footer-sidebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;

  .moon-icon,
  .sun-icon {
    fill: var(--svg-color);
  }
}

.screen {
  border: 1px solid var(--border);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  background-color: var(--screen);
  width: 100%;
  height: calc(100vh - 20px);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
}

.welcome-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 16px;
}

.title-welcome {
  font-size: 24px;
  font-weight: 600;
  line-height: auto;
  letter-spacing: -0.5%;
  text-align: left;
  color: var(--text-primary);
}

.text-welcome {
  font-size: 16px;
  font-weight: 400;
  line-height: auto;
  letter-spacing: -0.5%;
  text-align: left;
  color: var(--text-secondary);
}

.btn-welcome {
  position: relative;
  padding: 12px 24px;
  border-radius: 12px;
  background-image: var(--gradient);
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;

  /* Fonts */
  font-size: 16px;
  font-weight: 600;
  line-height: auto;
  letter-spacing: -0.5%;
  text-align: left;

  &:hover {
    filter: hue-rotate(100deg);
  }
}

.connect-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

.connect-btn-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 320px;

  button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    transition: all 0.3s ease;

    /* Fonts */
    font-size: 16px;
    font-weight: 600;
    line-height: auto;
    letter-spacing: -0.5%;
    text-align: left;

    &:hover {
      filter: brightness(0.8);
    }
  }
}

.social-icon {
  width: 24px;
  height: 24px;
}

.message {
  background-color: #0078ff;
  color: white;
}

.gmail {
  background-color: #ea4335;
  color: white;
}

.whatsapp {
  background-color: #25d366;
  color: white;
}

.snapchat {
  background-color: #fffc00;
  color: black;
}

.discord {
  background-color: #5865f2;
  color: white;
}

.instagram {
  background: linear-gradient(
    45deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d
  );
  color: white;
}
