/* Move tabset to the right */
.panel-tabset:not(.unstyled) .nav-tabs {
  justify-content: flex-end;
  margin-bottom: 0;
  font-size: 0.9rem; /* 10% smaller */
}

/* Style all tabs */
.panel-tabset:not(.unstyled) .nav-tabs .nav-link {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border: 2px solid #ccc;
  border-radius: 5px 5px 0 0;
  margin-left: 0.5rem;
  background-color: #f8f9fa;
  color: #006ee5;
  transition: all 0.2s ease-in-out;
}

/* Hover effect */
.panel-tabset:not(.unstyled) .nav-tabs .nav-link:hover {
  background-color: #e2e6ea;
  border-color: #999;
}

/* Active tab styling */
.panel-tabset:not(.unstyled) .nav-tabs .nav-link.active {
  background-color: #ffffff;
  border-color: #777;
  border-bottom-color: transparent;
  font-weight: 900;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Styling for focussed tab */
.panel-tabset:not(.unstyled) .nav-tabs .nav-link.active:focus-visible {
  outline: 3px solid #0056b3;
  outline-offset: 2px;
  background: #fff;
}

/* Dark mode styles using Quarto body class */
body.quarto-dark .panel-tabset:not(.unstyled) .nav-tabs .nav-link {
  background-color: #2c2c2c; /* background */
  color: #99c7df; /* text colour */
  border-color: #555; /* border */
}

body.quarto-dark .panel-tabset:not(.unstyled) .nav-tabs .nav-link:hover {
  /* hover changes */
  background-color: #3a3a3a;
  border-color: #999;
  color: #e0eef5;
}

body.quarto-dark .panel-tabset:not(.unstyled) .nav-tabs .nav-link.active {
  /* active tab */
  background-color: #1e1e1e;
  border-color: #777;
  border-bottom-color: transparent;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
}

body.quarto-dark .panel-tabset:not(.unstyled) .nav-tabs .nav-link.active:focus-visible {
  outline: 3px solid #3399ff;
  outline-offset: 2px;
  background-color: #1e1e1e;
}

/* Revealjs uses totally different naming conventions
here is a copy of the above css but targeting tabby revealjs classes

/* Move Tabby tabset to the right */
.panel-tabset-tabby {
  justify-content: flex-end;
  margin-bottom: 0;
  font-size: 0.9rem; /* 10% smaller */
  display: flex;
  list-style: none;
  padding-left: 0;
  border-bottom: none;
}

/* Style all Tabby tabs */
.panel-tabset-tabby a[role="tab"] {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.75rem; /* Larger font on revealjs than html */
  padding: 0.35rem 0.7rem;
  border: 2px solid #ccc;
  border-radius: 5px 5px 0 0;
  margin-left: 0.5rem;
  background-color: #f8f9fa;
  color: #006ee5;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  display: inline-block;
}

/* Hover effect for Tabby tabs */
.panel-tabset-tabby a[role="tab"]:hover {
  background-color: #e2e6ea;
  border-color: #999;
}

/* Active Tabby tab styling */
.panel-tabset-tabby a[aria-selected="true"] {
  background-color: #ffffff;
  border-color: #777;
  border-bottom-color: transparent;
  font-weight: 900;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Styling for focused Tabby tab */
.panel-tabset-tabby a[aria-selected="true"]:focus-visible {
  outline: 3px solid #0056b3;
  outline-offset: 2px;
  background: #fff;
}

