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

/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* You can override the default Infima variables here. */
:root {
  --ifm-color-primary: #f59e0b;
  --ifm-color-primary-dark: #dd8e09;
  --ifm-color-primary-darker: #d18709;
  --ifm-color-primary-darkest: #ac6f07;
  --ifm-color-primary-light: #f6a824;
  --ifm-color-primary-lighter: #f7ad30;
  --ifm-color-primary-lightest: #f8bb55;
  --ifm-background-color: #f8fafc;
  --ifm-code-font-size: 95%;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
  --ifm-color-primary: #facc15;
  --ifm-color-primary-dark: #efc005;
  --ifm-color-primary-darker: #e2b505;
  --ifm-color-primary-darkest: #ba9504;
  --ifm-color-primary-light: #fbd230;
  --ifm-color-primary-lighter: #fbd53d;
  --ifm-color-primary-lightest: #fcdd65;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

.navbar-sidebar
  .toggle_node_modules-\@docusaurus-theme-classic-lib-theme-ColorModeToggle-styles-module {
  display: none;
}
@media (max-width: 996px) {
  .navbar
    .colorModeToggle_node_modules-\@docusaurus-theme-classic-lib-theme-Navbar-Content-styles-module {
    display: block;
  }
}

.footer .footer__links {
  margin-bottom: 0;
}
.footer .footer__col {
  margin-bottom: 0;
}
.footer .footer__title {
  font: unset;
}
.footer .footer__items {
  display: flex;
  gap: 1.5rem;
}
@media (min-width: 997px) {
  .theme-doc-sidebar-container {
    border-right: none !important;
  }
  main {
    padding-left: 0.5rem;
  }
  .footer .footer__col {
    display: flex;
    justify-content: space-between;
  }
  .footer .footer__title {
    margin-bottom: 0;
  }
  .footer .footer__items {
    gap: 2rem;
  }
}
@media (min-width: 1440px) {
  .docItemCol_node_modules-\@docusaurus-theme-classic-lib-theme-DocItem-Layout-styles-module {
    padding-right: 4%;
  }
}

.tabs {
  border-bottom: 1px solid var(--ifm-color-emphasis-300);
}

/* ---------------------------------------------------------------------------------------------- */

.custom-sidebar-category {
  border-top: 1px solid var(--ifm-color-emphasis-300);
  margin: 0.75rem 0.75rem 0;
  padding-top: 0.75rem;
  color: var(--ifm-color-emphasis-600);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.875rem;
}
.custom-sidebar-sub-item {
  padding-left: 0.5rem;
}
@media (min-width: 997px) {
  .theme-doc-sidebar-container
    .menu_node_modules-\@docusaurus-theme-classic-lib-theme-DocSidebar-Desktop-Content-styles-module {
    padding: 0.5rem;
  }
}

hr.custom-hr {
  @apply mt-14 border-t border-t-[--ifm-hr-background-color] border-dashed bg-transparent;
}

.custom-browser-window + .tabs-container {
  margin-bottom: 3.5rem;
}

/* ---------------------------------------------------------------------------------------------- */

@layer components {
  .btn {
    @apply px-4 py-2 bg-slate-500 text-white border-none rounded-lg text-base disabled:bg-slate-500/40;
  }

  .input {
    @apply px-4 py-2 rounded-lg border border-solid text-base;
  }

  .bundle-size {
    @apply pl-0 mb-0 grid gap-x-8 text-sm;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }
  .bundle-size > li {
    @apply !mt-0 flex gap-2.5;
  }
  .bundle-size > li > span {
    @apply text-green-600 font-semibold;
  }
  .bundle-size > li > span > span {
    @apply ml-px text-[--ifm-color-emphasis-600] font-normal;
  }
}
