body {
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  box-sizing: border-box;
  font-family: var(--font-system);
  letter-spacing: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  height: 100%;
  scrollbar-width: 10px;
  scrollbar-color: #939393 #2d2d2d ;

  &.dev-env {
    border: 4px dashed #1d00dc;
  }
}

.display-1,
.display-2,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 24px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 0;
}

/* Subheadings */
h4 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  font-family: var(--font-system);
  letter-spacing: 0;
}

h5 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  font-family: var(--font-system);
  letter-spacing: 0;
}

h6 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  font-family: var(--font-system);
  letter-spacing: 0;
}

.body-medium {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.body-small {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.overline {
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  font-family: var(--font-monospace);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Remove the old display classes as they're not in the new system */
.display-1,
.display-2 {
  display: none;
}

/* Update pagination to use new monospace font */
.pagination {
  font-family: var(--font-monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 18px;
  color: var(--neutral-950);

  span,
  a,
  em {
    padding: 4px 8px;
  }

  .current {
    background-color: var(--gold-100);
    text-decoration: none;
    font-style: normal;
    font-weight: 600;
  }

  .disabled {
    color: var(--neutral-500);
    opacity: 0.3;
  }
}

/* Update any monospace usage to use IBM Plex Mono */
.help-mark,
blockquote,
.overline-large,
.overline-small {
  font-family: var(--font-monospace);
}

/* Update caption styles to use IBM Plex Sans */
.caption,
.caption-large {
  font-family: var(--font-system);
}

.caption {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0em;
  line-height: 19.5px;
}

.caption-large {
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  letter-spacing: 0em;
}

blockquote {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0em;
  line-height: 18px;
}

.is-large {
  font-size: 18px;
  letter-spacing: 0em;
  line-height: 27px;
}

.is-small {
  font-size: 14px;
  letter-spacing: 0em;
  line-height: 21px;
}

blockquote.is-large {
  font-size: 14px;
  line-height: 21px;
}

blockquote.is-small {
  font-size: 11px;
  line-height: 16.5px;
}

.overline-large {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 18px;
  text-transform: uppercase;
}

.overline-small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 16.5px;
  text-transform: uppercase;
}

* Organization avatar positioning */
.main-nav .avatar.is-small {
  margin: 0 auto;
  margin-top: calc(var(--base-spacing) * 2);
}

/* Notification bell positioning */
.main-nav .notification-bell-container {
  margin: 0 auto;
}

@keyframes flash-blip {
  0% {
    transform: translateX(1%);
  }
  1% {
    transform: translateX(-1%) rotate(1deg);
  }
  2% {
    transform: translateX(2%) rotate(-1deg);
  }
  3% {
    transform: translateX(-2%);
  }
  4% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes fade-in-modal {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: block;
    opacity: 0;
  }
  100% {
    display: block;
    opacity: 1;
  }
}

#toasts {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
  top: var(--base-spacing);
  text-align: center;
}

.flash,
.alert,
.notice {
  margin-top: 0.5rem;
  animation: flash-blip 4s forwards;
  cursor: pointer;
  &:hover {
    &:after {
      opacity: 1;
    }
  }

  &:after {
    content: "x";
    display: block;
    font-family: var(--font-monospace);
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0.3;
    padding: 0 calc(var(--base-spacing) / 2);
  }
}

p {
  margin-bottom: var(--base-spacing);
}

a {
  color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  text-decoration: none;
  &.is-link {
    text-decoration: underline;
  }
}

legend,
.legend,
label,
.label {
  display: inline;
  font-weight: 500;
  color: var(--neutral-700);
}

.field {
  margin-bottom: 1.25em;

  select,
  textarea,
  input {
    margin: 0.25rem 0;
    width: 100%;
    max-width: 100%;
  }
  .error {
    /* Error hints */
    font-size: 1rem;
    color: var(--color-danger);
  }

  input[type='file'],
  select {
    padding: calc(var(--base-spacing) / 2) calc(var(--base-spacing) / 2);
  }

  &.is-error {
    /* Error on field */
    input,
    select,
    textarea {
      border-color: var(--color-danger);
    }
  }
}

input[type="checkbox"] {
  width: auto;
  width: 25px !important;
  min-width: 25px !important;
}

.card {
  background-color: var(--card-background);
  padding: calc(var(--base-spacing) * 2) calc(var(--base-spacing) * 2);
  border-radius: 4px;
  line-height: 1.5;
  border: 1px solid var(--neutral-150);

  &:empty {
    display: none;
  }

  &.is-narrow {
    padding: var(--base-spacing) calc(var(--base-spacing) * 2);
  }
  &.is-super-narrow {
    padding: calc(var(--base-spacing) / 2) var(--base-spacing);
  }

  &.notice,
  &.is-notice {
    border-color: var(--color-yellow-700);
    color: var(--color-yellow-700);
    background-color: var(--color-yellow-50);
  }

  &.is-danger,
  &.alert,
  &.is-alert,
  &.error,
  &.is-error {
    border-color: var(--color-danger);
    color: var(--color-danger);
    background-color: white;
  }
}

summary {
  list-style: none; /* No ::marker element */
  cursor: pointer;
  user-select: none;

  &.no-marker {
    &::before {
      display: none !important;
    }
  }
}

/* Marker for collapsed state */
details:not([open], .filter) > summary::before {
  color: var(--neutral-700);
  font-size: 1.2rem;
  line-height: 1rem;
  margin-right: calc(var(--base-spacing) / 2);
  content: "+";
  display: inline-block;
  font-family: var(--font-system);
  min-width: 0.75rem;
}

/* Marker for expanded state */
details[open]:not(.filter) > summary::before {
  color: var(--neutral-700);
  font-size: 1.2rem;
  line-height: 1rem;
  margin-right: calc(var(--base-spacing) / 2);
  font-family: var(--font-monospace);
  content: "-";
  display: inline-block;
  font-family: var(--font-system);
  min-width: 0.75rem;

}

details.filter > summary::after {
  color: var(--neutral-500);
  font-size: 0.6rem;
  margin-left: 0.3rem;
  vertical-align: 2px;
  content: "\25bc";
  display: block-inline;
  font-family: var(--font-system);
}

details.filter {
  summary {
    border: 1px solid transparent;
    border-radius: 4px;
  }
}

details.filter[open] {
  summary {
    border-color: var(--neutral-400) !important;
  }
}

.filter-container {
  position: sticky;
  top: 0;
  background-color: var(--bg-background);
  z-index: 2;
}

.filter-select {
  color: var(--neutral-500);

  padding: 2px 8px;
  margin: 2px 4px;
}

details {
  &.is-link {
    summary::before {
      display: none;
    }
  }
}

.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

input {
  border-radius: var(--form-radius);
}
.input,
textarea,
input[type="tel"],
input[type="time"],
input[type="date"],
input[type="url"],
input[type="datetime-local"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="submit"],
input[type="text"],
select {
  border-radius: var(--form-radius);
  align-items: center;
  border: 1px solid var(--input-outline);
  box-shadow: none;
  justify-content: flex-start;
  padding: calc(var(--base-spacing) / 2) var(--base-spacing);
  border-color: var(--border-color);
  line-height: 1.25rem;
  background-color: white;

  &.is-invalid {
    border-color: var(--color-danger);
    animation: shake 0.25s;
    &:hover {
      border: 1px solid var(--color-danger);
    }
  }

  &:hover {
    border-color:var(--border-color-hover);
  }
}

input[type="time"],
input[type="date"],
input[type="datetime-local"] {
  box-sizing: border-box;
}

.button-group {
  display: flex;

  .button {
    border-radius: 0;
  }

  form:first-child > .button,
  .button:first-child {
    border-top-left-radius: var(--button-radius);
    border-bottom-left-radius: var(--button-radius);
  }

  form:not(:last-child) > .button,
  .button:not(:last-child) {
    margin-right: 0;
    border-right: none;
  }

  form:last-child > .button,
  .button:last-child {
    border-top-right-radius: var(--button-radius);
    border-bottom-right-radius: var(--button-radius);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }
}

button,
.button,
input[type="submit"] {
  display: inline-block;
  user-select: none;
  border-radius: var(--button-radius);
  background-color: transparent;
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0.75rem;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  font-size: var(--font-size);
  cursor: pointer;
  line-height: 1.25rem;
  font-family: var(--font-system);
  border-radius: var(--button-radius);
  color: var(--neutral-700);
  font-weight: 500;

  a {
    text-decoration: none;
  }

  &[disabled],
  &.disabled {
    cursor: not-allowed;
    opacity: 0.3;
    border-color: transparent !important;
  }

  &:active {
    filter: brightness(1.1);
  }

  &.is-primary {
    color: white;
    border-color: var(--neutral-600);
    background-color: var(--bg-primary);

    &:hover,
    &:focus {
      background-color: var(--bg-primary-dark);
    }
  }

  &.is-secondary {
    background-color: white;
    border-color: var(--neutral-800);
    color: var(--neutral-700);

    &:hover,
    &:focus {
      transition: hue-rotate 0.5s;
      filter: hue-rotate(10deg);
      background-color: var(--neutral-150);
      border-color: var(--neutral-800);
    }
  }

  &.is-action {
    background-color: white;
    font-size: 13px;
    letter-spacing: 0em;
    line-height: 19.5px;
    border-color: transparent;
    color: var(--neutral-500);

    i {
      font-size: 16px;
      vertical-align: middle;
    }

    &:hover,
    &:focus {
      transition: hue-rotate 0.5s;
      filter: hue-rotate(10deg);
      color: var(--neutral-600);
      background-color: var(--gold-100);
    }

    &:active {
      transition: hue-rotate 0.5s;
      filter: hue-rotate(10deg);
      color: var(--neutral-900);
      font-weight: 500;
      border-color: var(--neutral-900);
    }
  }

  &.is-small {
    padding: 0.4rem 0.4rem;
    font-size: 0.8rem;
  }
  &.is-tiny {
    padding: 0rem 0.4rem;
    font-size: 0.6rem;
  }
  &.is-link {
    border-color: transparent;
    text-decoration: underline;
    &:focus,
    &:hover {
      background: transparent;
      border-color: transparent;
    }
  }
  &.is-borderless {
    border-color: transparent;
  }

  &.is-borderless {
    border-color: transparent;
  }

  &.is-large {
    padding: 1rem 2rem;
    font-size: 1.4rem;
    line-height: 1.4rem;
  }

  &.is-right {
    border-radius: 0 var(--button-radius) var(--button-radius) 0;
  }
  &.is-left {
    border-radius: var(--button-radius) 0 0 var(--button-radius);
    border-right: 0;
  }
  &.is-middle {
    border-radius: 0;
    border-right: 0;
  }
  &.is-danger {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
    color: white;
    &:focus,
    &:hover {
      background-color: var(--color-red-950) !important;
    }
  }
}

ul {
  list-style: none;
}

table {
  border-collapse: collapse;

  thead {
    color: var(--neutral-400);
    font-weight: 500;

    tr:hover {
      background-color: initial;
      cursor: default;
    }
  }

  tr {
    border-top: 1px solid var(--neutral-100);
    border-bottom: 1px solid var(--neutral-100);
  }

  th {
    padding: 12px;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    color: var(--neutral-600);
  }

  td {
    padding: 16px 12px;
    text-align: left;
    color: var(--neutral-950);
  }

  &.is-striped {
    tr:nth-child(even) {
      background-color: rgba(0, 0, 0, 0.01);
    }
  }

  tr:hover,
  tr:focus {
    background-color: var(--neutral-100);
  }
}

.table-container {
  position: relative;
  border: 1px solid var(--neutral-100);
  flex: 1;
  overflow-y: auto;
}

.table-container thead {
  position: sticky;
  top: 0;

  background-color: white; /* Ensure the header has a background */
  z-index: 1; /* Ensure the header is above the body rows */

  /* Work around for border not moving when header is stick (table has border-collapse: separate) */
  box-shadow: inset 0 -1px 0 var(--neutral-100);
  tr {
    border: none;
  }
}

.table-container tbody {
  background: white;
}

hr {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: none;
}

.tag {
  cursor: default;
  border: 1px solid transparent;
  font-size: 12px;
  display: inline-block;
  border-radius: 0;
  padding: 0.2rem 0.6rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--button-radius);
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid #e0e0e0;
  user-select: none;
  line-height: 16px;

  .delete {
    opacity: 0.3;
  }
  &:hover,
  &:focus {
    .delete {
      opacity: 1;
    }
  }

  &.is-circle {
    border-color: transparent;
    display: inline-block;
    width: 5px;
    height: 5px;
    max-width: 5px;
    max-height: 5px;
    padding: 0;
    border-radius: 50%;
  }

  &.is-solid {
    background-color: #e0e0e0;
  }

  &.is-error,
  &.is-danger {
    background-color: var(--color-danger);
    color: white;
  }

  &.Paused {
    background-color: var(--color-yellow-300);
  }

  &.Open,
  &.is-success {
    color: white;
    background-color: var(--color-success);
  }

  &.hired {
    background-color: var(--green-100);
    border-color: var(--green-200);
    color: var(--green-900);
  }

  &.is-new {
    background-color: var(--color-blue-100);
    border-color: var(--color-blue-200);
    color: var(--color-blue-800);
    font-weight: 600;
  }
}

.laz-logo {
  width: 32px;
  height: 32px;
  background-image: url("/images/lazarus/laz-logo.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.modal {
  z-index: 6;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  width: var(--page-width);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  animation: fade-in-modal 0.225s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--neutral-200);
  display: flex;
  flex-direction: column;
}

.modal-bg {
  z-index: 5;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6,
h7 {
  margin: 0;
  padding: 0;
}

/* Will-Paginate */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  margin-top: 8px;
  width: 100%;
}

.page-info {
  display: inline-block;
  padding: 8px 16px;
  color: var(--neutral-400);
}

.avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--neutral-100);
  color: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  line-height: 50px;
  cursor: default;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  image-rendering: auto;
  flex: 0 0 auto;

  &.is-small {
    font-size: 13px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    line-height: 41px;
  }

  &.is-tiny {
    font-size: 10px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    line-height: 31px;
  }
}

.tag.paused,
.tag.flagged {
  background-color: var(--color-yellow-300);
  color: rgba(0, 0, 0, 0.8);
}

.tag.errored {
  background-color: var(--color-red-600);
  color: white;
}

.tag.completed {
  background-color: var(--green-100);
  color: var(--green-900);
}

.tag.in_progress {
  background-color: var(--color-yellow-50);
  color: rgba(0, 0, 0, 0.9);
}

.tag.invalid_email,
.tag.invalid_phone,
.tag.retired,
.tag.inavlid_role {
  background-color: var(--neutral-100);
  border-color: var(--neutral-150);
}

.tag.interview_link_sent {
  background-color: var(--green-100);
  border-color: var(--green-200);
  color: var(--green-900);
}
.tag.circumventing_instruction,
.tag.innapropriate_communication,
.tag.requested_no_contact {
  background-color: var(--color-yellow-300);
  color: rgba(0, 0, 0, 0.9);
}

.tag.call_requested {
  background-color: var(--color-yellow-50);
}

.help-mark {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.5);
  cursor: help;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: fixed;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 100;
  padding: 12px 16px;
}

.dropdown[open] .dropdown-content {
  display: block;
}

.checkbox {
  margin-bottom: 8px;
}

.hint {
  color: var(--neutral-400);
  font-size: 14px;
}

.tooltip {
  cursor: help;
}

.tooltip-text {
  pointer-events: none;
  position: fixed;
  max-width: 350px;
  color: #fff;
  background-color: #333;
  text-align: left;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 14px;
  line-height: 1.4;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 99999;
}

.tooltip-text::after {
  content: "";
  position: fixed;
  top: 100%;
  left: 50%;
  margin-left: -7px;
  border-width: 7px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-text.tooltip-fade,
.tooltip-text.tooltip-fade::after {
  opacity: 1;
}

.tooltip-text.tooltip-hide-arrow::after {
  opacity: 0;
}

.form-footer {
  word-spacing: 0.75rem;
  margin-top: 3rem;
  text-align: right;
}

form {
  abbr[title] {
    border-bottom: none;
    text-decoration: none;
  }
}

.link-overflow {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  cursor: pointer;
}

.data-table,
.data-card {
  background-color: var(--gold-50);
  padding: 1.25rem;

  table {
    width: 100%;
    background-color: white;
  }

  h1,
  h2,
  h3,
  h4,
  h5 {
    color: var(--color-neutral-600);
    padding: 0 0.75rem 1rem 0;
  }

  tr {
    border: solid 2px var(--gold-50);
  }

  .data-body {
    background-color: white;
    padding: 0.75rem;
  }
}

.data-table {
  td,
  th {
    padding: 0.75rem;
    background-color: white;
  }
}

.data-card {
  td {
    font-size: 14px;
    font-weight: 400;
    padding: 0.75rem;
  }

  tr {
    background-color: white;
  }

  td:first-child {
    font-size: 16px;
    font-weight: 500;
    width: 25%;

    i {
      padding-right: 12px;
    }
  }
}

.tab-container {
  color: var(--neutral-500);
  border-top: 1px solid var(--neutral-100);
  border-bottom: 1px solid var(--neutral-100);
  padding: 4px 8px;
  display: flex;
  gap: 10px;

  .tab {
    padding: 12px;
    background-color: transparent;
    border-color: transparent;
    line-height: 16px;

    i {
      padding: 0 8px 0 0;
    }
  }

  .active {
    color: var(--neutral-900);
    background-color: var(--neutral-100);
    font-weight: 500;
  }

  .active::after {
    content: "\00B7";
    padding: 0 0 0 10px;
  }
}

.empty-container {
  border: 1px dashed var(--neutral-300);
}

.modal-footer {
  position: sticky;
  bottom: 0;
  background: white;
  padding-top: 8px;
  border-top: 1px solid var(--neutral-100);
}

svg.loading-spinner {
  display: block;
  width: 2rem;
  height: 2rem;
  animation: spin 0.5s linear infinite;
}

.selector-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-foreground);
  background-color: var(--bg-accent-half);
  border: 2px solid var(--bg-accent);
  border-radius: 0.125rem;
  cursor: pointer;
  transition: all 300ms;
  white-space: nowrap;
}

.selector-chip .chip-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
  color: var(--bg-accent-dark);
}

.selector-chip:hover {
  background-color: var(--bg-accent);
}

.radio-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  min-height: 2.5rem;
  max-height: 3rem;
  transition: all 300ms;
}

.radio-chip {
  position: relative;
  display: inline-block;
}

.radio-chip-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.radio-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.125rem;
  background-color: var(--bg-background);
  border: 1px solid var(--border-border);
  font-weight: 400;
  color: var(--bg-foreground);
  cursor: pointer;
  transition: all 300ms;
}

.radio-chip-input:checked + .radio-chip-label {
  border: 2px solid var(--border-border-darkest);
  background-color: var(--bg-background-dark);
  font-weight: 600;
}

.radio-chip-label:hover {
  border-color: var(--border-border-dark);
  background-color: var(--bg-background-half);
  font-weight: 500;
}

.radio-chip-input:checked + .radio-chip-label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 0.25rem;
}

.nav-tab-container {
  display: inline-flex;
  gap: 8px;
  padding: 0;
  border: none;

  .tab {
    transition: all 300ms;
    font-size: 14px;
    padding: 0.15rem 0.8rem;
    font-family: var(--font-system);
    font-weight: 400;
    border: 1px solid var(--border-border);
    border-radius: 2px;
    background-color: var(--bg-background);
    color: var(--bg-foreground);
    cursor: pointer;

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

    /* i {
      padding: 0 8px 0 0;
    } */
  }

  .active {
    background-color: #fff;
    border-color: var(--border-border-darkest);
    color: var(--bg-foreground);
    font-weight: 600;
  }

  .active::after {
    content: none;
  }
}


.btn-3d,
a.btn-3d,
input[type="submit"].btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-system);
  font-size: var(--font-size);
  font-weight: 500;
  color: var(--bg-foreground);
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border-radius: var(--button-radius);
  position: relative;

  i {
    font-weight: 700;
  }

  > * {
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: transform 0.1s ease, color 0.1s ease;
    color: inherit;
    margin-right: 0.5em;
    transform: translate(0px, 0px);

    &:last-child {
      margin-right: 0;
    }
  }

  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    border: 1.5px solid var(--bg-primary);
    border-radius: var(--button-radius);
    box-sizing: border-box;
    z-index: 0;
  }

  &:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-background);
    border: 2px solid var(--bg-background);
    border-radius: var(--button-radius);
    box-sizing: border-box;
    transition: transform 0.1s ease, background-color 0.1s ease, border-color 0.1s ease;
    z-index: 1;
    transform: translate(0px, 0px);
  }

  &:hover {
    color: var(--bg-primary);

    &:after {
      transform: translate(-4px, -4px);
      border-color: var(--bg-primary);
    }
    > * {
      transform: translate(-4px, -4px);
    }
  }

  &.primary {
    color: var(--bg-primary);

    &:before {
      background-color: var(--bg-primary);
      border: 2px solid var(--bg-primary);
    }

    &:after {
      transform: translate(-4px, -4px);
      background-color: var(--bg-background);
      border: 2px solid var(--bg-primary);
    }
    > * {
       transform: translate(-4px, -4px);
    }

    &:hover {
      color: var(--bg-foreground);

      &:after {
        transform: translate(0px, 0px);
        border: 2px solid var(--border-border);
      }
       > * {
         transform: translate(0px, 0px);
       }
    }
  }

  &.bold {
    color: #fff;

    &:before {
      background-color: transparent;
      border: 2px solid var(--bg-foreground);
    }

    &:after {
      transform: translate(-4px, -4px);
      background-color: var(--bg-primary);
      border: 2px solid var(--bg-foreground);
    }
    > * {
       transform: translate(-4px, -4px);
    }

    &:hover {
      &:after {
        background-color: var(--bg-primary-dark);
        transform: translate(0px, 0px);
        border: 2px solid var(--bg-primary-dark);
      }
      > * {
         transform: translate(0px, 0px);
      }
    }
  }

  &.sm {
    font-size: calc(var(--font-size) * 0.85);
    padding: 0.35rem 0.75rem;

    &:hover:not(.primary):not(.bold):after,
    &:hover:not(.primary):not(.bold) > * { transform: translate(-3px, -3px); }

    &.primary:not(:hover):after,
    &.primary:not(:hover) > * { transform: translate(-3px, -3px); }

    &.bold:not(:hover):after,
    &.bold:not(:hover) > * { transform: translate(-3px, -3px); }
  }

  &.lg {
    font-size: calc(var(--font-size) * 1.15);
    padding: 0.65rem 1.25rem;

    &:hover:not(.primary):not(.bold):after,
    &:hover:not(.primary):not(.bold) > * { transform: translate(-5px, -5px); }

    &.primary:not(:hover):after,
    &.primary:not(:hover) > * { transform: translate(-5px, -5px); }

    &.bold:not(:hover):after,
    &.bold:not(:hover) > * { transform: translate(-5px, -5px); }
  }

  &.xl {
    font-size: calc(var(--font-size) * 1.3);
    padding: 0.8rem 1.5rem;

    &:hover:not(.primary):not(.bold):after,
    &:hover:not(.primary):not(.bold) > * { transform: translate(-6px, -6px); }

    &.primary:not(:hover):after,
    &.primary:not(:hover) > * { transform: translate(-6px, -6px); }

    &.bold:not(:hover):after,
    &.bold:not(:hover) > * { transform: translate(-6px, -6px); }
  }
}

.btn-secondary,
a.btn-secondary,
input[type="submit"].btn-secondary {
  position: relative;
  background-color: transparent;
  border: none;
  color: var(--bg-foreground);
  cursor: pointer;
  font-family: var(--font-system);
  font-size: var(--font-size);
  font-weight: 500;
  padding: 0.6rem 1rem;
  text-align: center;
  border-radius: 5px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  background-color: var(--bg-background);
  border: 1px solid var(--border-border);
  line-height: 1.25rem;
  position: relative;
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;

  i {
    font-weight: 700;
  }

  &:hover {
    background-color: var(--bg-background-dark);
    border-color: var(--border-border-dark);
  }

  &:active {
    border-color: var(--border-border-darkest);
  }

  &.destructive {
    background-color: var(--bg-accent);
    color: var(--bg-foreground);
    border-color: var(--bg-accent);

    &:hover {
      background-color: var(--bg-accent-dark);
    }
  }

  &.ghost {
    background-color: transparent;
    border-color: transparent;

    &:hover {
      background-color: var(--bg-background-dark);
      color: var(--bg-accent-foreground);
    }
  }

  &.link {
    background-color: transparent;
    border-color: transparent;
    color: var(--bg-primary);
    text-decoration: none;

    &:hover {
      background-color: transparent;
      border-color: transparent;
      text-decoration: underline;
      text-underline-offset: 4px;
    }
  }

  &.xs {
    padding: 0.25rem 0.5rem;
    line-height: 1rem;
    font-size: 0.75rem;
  }

  &.sm {
    padding: 0.5rem 0.75rem;
    line-height: 1.2rem;
  }
  &.lg {
    padding: 0.75rem 2rem;
    line-height: 1.25rem;
  }
}

.laz-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.main-nav {
  background: var(--bg-background-half);
  border-right: 1px solid var(--border-border);
  display: flex;
  flex-direction: column;
  padding-top: 1.5rem;
  max-width: 100%;
  width: 300px;
  overflow-y: auto;
}

.main-nav-item {
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 0.4rem;
  text-decoration: none;
  letter-spacing: 0.025rem;
  transition: all 0.2s ease;
  font-weight: 400;
  font-family: var(--font-heading);
  margin-top: 0.3rem;
}

.main-nav-item:hover {
  color: var(--black);
  background-color: var(--bg-background);
}

.main-nav-item:focus {
  outline: none;
}

.main-nav-item.active {
  background-color: var(--background-color);
  font-weight: 600;
}

.main-nav-item:disabled,
.main-nav-item[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.main-nav ul {
  list-style: none;
}

.main-nav ul li {
  width: 100%;
}

.main-content {
  display: flex;
  flex: 1 0 0%;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  background: var(--background-color, #fcfcee);
}

.main-content-card {
  display: flex;
  flex-direction: column;
  flex: 1 0 0%;
  background: var(--bg-background);
  border-radius: 0.6rem;
  border: 1px solid var(--border-border);
  overflow: hidden;
}

.main-content-card-inner {
  flex: 1 0 0%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Mobile navigation styles */
@media screen and (max-width: 768px) {
  .main-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transform: translateX(-100%);
    width: 75vw;
  }

  .main-nav.is-visible {
    transform: translateX(0);
  }

  .main-content {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .mobile-nav-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--bg-background);
    border: 1px solid var(--border-border);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
  }

  .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .mobile-nav-overlay.is-visible {
    display: block;
  }
}

@media screen and (min-width: 769px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.page-header {
  padding: var(--base-spacing);
}
