@import "swiper/css";
@import "swiper/css/navigation";
@import "tailwindcss";

@theme {
  --color-accent: #e8c7d0;
  --color-accent-red: #820000;
  --color-dark-red: #190000;
  --color-rose-light: #ffeaea;

  --color-input-bg: #f6f3f2;
  --color-input-placeholder: #858381;

  --animate-appear: appear 0.6s ease-out forwards;
  @keyframes appear {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  font-family: "Noto Sans", sans-serif;
}

.pagy {
  @apply flex space-x-1 font-semibold text-sm text-gray-500;

  a:not(.gap) {
    @apply block rounded-lg px-3 py-1 bg-gray-200;

    &:hover {
      @apply bg-gray-300;
    }

    &:not([href]) {
      /* disabled links */
      @apply text-gray-300 bg-gray-100 cursor-default;
    }

    &.current {
      @apply text-white bg-gray-400;
    }
  }

  label {
    @apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;

    input {
      @apply bg-gray-100 border-none rounded-md;
    }
  }
}

.pastel-rainbow-gradient {
  background: linear-gradient(
    135deg,
    #f8bbd9,
    #f4c2c2,
    #e8c5e8,
    #d4c5f9,
    #b8e6b8,
    #f5e6d3
  );
}

.dark-lingerie-gradient {
  background: linear-gradient(
    135deg,
    #2c1810,
    #4a0e0e,
    #1a1a2e,
    #0f3460,
    #16213e,
    #2d1b69
  );
}

.sidebar {
  border-right: 1px solid rgb(239, 241, 244);
  height: calc(var(--vh, 1dvh) * 100 - 0px);
  height: -webkit-fill-available;
  width: calc(100% - 64px);
  position: fixed;
  top: 0;
  left: -100%;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  transition: left 100ms ease-in;
  background: #fdfdff;
}

@media (min-width: 768px) {
  .sidebar {
    width: 250px;
    left: 0;
  }
}

.sidebar--show {
  left: 0;
}

.sidebar-bucket {
  border-radius: 8px;
  grid-template-columns: 36px 1fr;
  border: 1px solid rgba(0, 0, 0, 0.03);
  gap: 14px;
  display: grid;
  align-items: center;
  margin: 0 0 10px 0;
  padding: 10px;
  color: rgb(0, 0, 0);
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.02);
}

.sidebar-bucket__logo {
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
  background: rgba(0, 0, 0, 0.06);
}

.sidebar-bucket__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-bucket__logo i {
  font-size: 1rem;
}

.sidebar-bucket__role {
  font-weight: 500;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
}

.sidebar-bucket__name {
  margin-top: 0;
  line-height: 0.875rem;
  font-weight: 600;
  font-size: 0.813rem;
}

.sidebar-nav {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 16px;
  list-style: none;
}

.sidebar-nav hr {
  border: none;
  height: 1px;
  width: 100%;
  background: #e4e9ee;
}

.sidebar-nav__brand {
  display: block;
  margin-top: 0;
}

.sidebar-nav__brand img {
  height: 30px;
}

.sidebar-nav__sub-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.sidebar-nav__sub-brand img {
  margin-left: 10px;
  height: 16px;
}

.sidebar-nav-item {
  border-radius: 4px;
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  padding: 0px 2px 0px 6px;
  height: 27px;
  font-weight: 500;
  font-size: 0.813rem;
  color: #3c4149;
  transition:
    background 260ms ease 0s,
    width;
  border: none;
  outline: none;
  cursor: pointer;
  background: transparent;
}

.sidebar-nav-item:hover,
.sidebar-nav-item:focus,
.sidebar-nav-item.active {
  background: #f0f3f9;
}

.sidebar-nav-item__icon {
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.sidebar-nav-item__icon ion-icon {
  color: #3c4149;
}

.sidebar-nav-item__toggle {
  margin-left: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-nav-item__toggle::before {
  font-family: "Font Awesome 6 Pro";
  font-weight: 700;
  content: "\f078";
  font-size: 0.75rem;
  transition: transform ease-in 50ms;
}

.sidebar-nav-item--label {
  margin-top: 16px;
  padding: 0 8px;
  font-weight: 500;
  line-height: 1.5rem;
  font-size: 0.75rem;
  color: #797979;
  cursor: default;
}

.sidebar-nav-item--label:hover,
.sidebar-nav-item--label:focus,
.sidebar-nav-item--label.active {
  border: none;
  background: transparent;
}

.sidebar-nav-item--active .sidebar-nav-item__toggle::before {
  transform: rotate(180deg);
}

.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  background: #e8c7d099;
  border: 2px solid #00000066;
  border-radius: 100%;
  z-index: 10;
  color: var(--color-dark-red);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 24px;
  content: "";
}
