@import url("https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --background: #ffffff;
  --foreground: #171717;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: "Urbanist", sans-serif;
}

body {
  color: var(--foreground);
  background: var(--background);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.imgDark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }

  .imgLight {
    display: none;
  }
  .imgDark {
    display: unset;
  }
}

/* remove autofill background in Chrome, Safari */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  -webkit-text-fill-color: #000000 !important; /* keep text color black */
  transition: background-color 9999s ease-in-out 0s;
}

.w-70 {
  width: 280px;
}

.ml-70 {
  margin-left: 280px;
}

.w-20 {
  width: 80px;
}

.ml-20 {
  margin-left: 80px;
}

/* Responsive sidebar transitions */
.sidebar-transition {
  transition:
    width 0.3s ease-in-out,
    margin-left 0.3s ease-in-out;
}

/* Custom Scrollbar Styles */
.scrollbar-visible {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

.scrollbar-visible::-webkit-scrollbar {
  width: 8px;
}

.scrollbar-visible::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.scrollbar-visible::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.scrollbar-visible::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Google Auth Button Styling */
.google-auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;

  .custom-google-button {
    width: 100%;

    div[role="button"] {
      border-radius: 100px;
      border: 0.5px solid rgba(0, 0, 0, 1);
      background-color: #ffffff;
      height: 52px;
      width: 100%;
      font-family: "Urbanist", sans-serif;
      font-size: 14px;
      font-weight: 500;
      color: #000000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px 20px;
      transition: all 0.2s ease-in-out;
      box-shadow: none;
      outline: none;

      &:hover {
        background-color: #f8f9fa;
      }

      img {
        margin-right: 12px;
      }

      span {
        font-family: "Urbanist", sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #000000;
      }
    }
  }
}
