@import "@explodingcamera/css/all.css" layer(base);
@import "@picocss/pico/css/pico.lime.min.css" layer(pico);
@import "react-tooltip/dist/react-tooltip.css" layer(tooltip);

:root {
  --pico-background-color: #f7f8ff;
  --card-background-base: 0deg 0% 100%;
  --pico-card-background-color: hsl(var(--card-background-base));
  --pico-block-spacing-vertical: 1rem;
  --pico-block-spacing-horizontal: 1rem;
  --pico-card-box-shadow: 0px 0px 24px #15233610;
  --pico-dropdown-background-color: #ffffff81;

  --pico-form-element-active-border-color: var(--pico-secondary-hover);
  --pico-form-element-focus-color: var(--pico-secondary-hover);
  --pico-border-radius: 0.7rem;
  --pico-spacing: 0.75rem;
  --pico-form-element-spacing-vertical: 0.5rem;
  --pico-form-element-spacing-horizontal: 0.6rem;

  --pico-font-family:
    "Outfit Variable", system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue",
    sans-serif, var(--pico-font-family-emoji);
  --pico-font-family-sans-serif: var(--pico-font-family);
  font-variant-numeric: tabular-nums;
}

:root[data-theme="dark"] {
  --pico-background-color: #0a0c10;
  --card-background-base: 218.8 23.9% 13.9%;
  --pico-dropdown-background-color: #181c25d4;
  /* --pico-card-box-shadow: 0 0 0.5rem 0.1rem hsla(0, 0%, 0%, 0.1); */
}

@media only screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pico-background-color: #0a0c10;
    --card-background-base: 218.8 23.9% 13.9%;
    --pico-dropdown-background-color: #181c25d4;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  --pico-font-weight: 500;
}

html body[data-scroll-locked] {
  margin-right: 0 !important;
}

.full {
  min-height: 100%;
}

.react-tooltip {
  z-index: 10;
}

[type="search"] {
  --pico-border-radius: 0.7rem;
}

[type="button"],
[type="reset"],
[type="submit"] {
  margin-bottom: 0;
}

hr {
  background-color: var(--pico-form-element-border-color);
  height: 1px;
  border: 0;
}

details.dropdown.right summary + ul {
  left: unset;
  right: 0;
  transform: translateX(-4px);
  min-width: 11rem;
  width: auto;
}

details.dropdown summary + ul {
  backdrop-filter: blur(3px);
}

details.dropdown summary + ul li:has(hr) {
  &::before {
    display: none;
  }

  hr {
    margin: 0;
  }
}

td,
th {
  background: unset;
}

.loading-spinner {
  flex: 1;
  background-image: var(--pico-icon-loading);
  background-size: 1.5em auto;
  background-repeat: no-repeat;
  background-position: center;
}
