@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@import "./styles/variables.scss";

:root {
  /* Background Colors */
  --background-dark: #171717;
  --background-darker: #1e1e1e;
  --background-black: #000000;
  --background-light: #fff7dc;
  --background-light-alt: #faedc9;
  
  /* Text Colors */
  --text-primary: #d7d7d7;
  --text-secondary: #777;
  --text-tertiary: #4d4d4d;
  --text-dark: #171717;
  --text-light: #fff;
  
  /* Border Colors */
  --border-dark: #2e2e2e;
  --border-light: #a49b73;
  
  /* Accent Colors */
  --accent-primary: #39d353;
  --accent-secondary: #2c2c2c;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 15px;
  --radius-xl: 20px;
  --radius-2xl: 30px;
  --radius-3xl: 40px;
  --radius-full: 9999px;
  
  /* NextUI Variables */
  --nextui-primary: 130 64% 53%;
  --nextui-primary-400: 130 64% 53%;
  --nextui-default-50: 0 0 13%;
  --nextui-primary-50: 0 0 9%;
}

* {
  box-sizing: border-box;
}

html {
  width: 100vw;
  scroll-behavior: smooth;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-nunito), sans-serif;
  translate: no;

  &.light {
    background-color: #fff7dc;
  }

  &.dark {
    background-color: var(--background-dark);
  }
}

::-webkit-scrollbar {
  display: none;
}

/* macOS-style scrollbar */
.scrollbar-macos {
  scrollbar-width: thin;
  scrollbar-color: #4d4d4d transparent;

  @include md {
    &::-webkit-scrollbar {
      width: 8px;
      height: 8px;
      display: block;
    }

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

    &::-webkit-scrollbar-thumb {
      background-color: #4d4d4d;
      border-radius: 8px;
      border: 2px solid transparent;
      background-clip: padding-box;
    }

    &::-webkit-scrollbar-thumb:hover {
      background-color: #6d6d6d;
    }
  }
}

@media screen and (min-width: 768px) {
  .scrollbar-macos::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    display: block;
  }

  .scrollbar-macos::-webkit-scrollbar-track {
    background: transparent;
  }

  .scrollbar-macos::-webkit-scrollbar-thumb {
    background-color: #4d4d4d;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  .scrollbar-macos::-webkit-scrollbar-thumb:hover {
    background-color: #6d6d6d;
  }
}

::selection {
  color: white;
  background-color: rgb(46, 46, 46);
}

textarea::selection {
  color: white;
  background-color: rgb(87, 87, 87);
}

a span::selection {
  color: #39d353;
  background-color: rgb(43, 43, 43);
}

.landing {
  background-color: #171717 !important;
}

/* NEXT UI REWRITING */
.nav-logout {
  flex-grow: unset !important;
}

.nav-header header {
  padding-right: 0;
  padding-left: 30px;

  @include md {
    padding-left: 5px;
  }
}

#tabs {
  z-index: 90;
  position: relative;
}

#tabsButton {
  height: 100%;
  margin: 0;
  border: none !important;
}

#tabsPlus {
  height: 100%;
}

button.tabJourney > div {
  text-align: center;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
}

.syncer svg {
  width: 25px;
  height: 25px;
}
