/* 1. The Main Container */
.nav-tabs {
  border-bottom: 4px solid var(--mt-color-accent);
  padding: 5px 5px 0 5px;
  border-radius: 8px 8px 0 0;
  display: flex;
  gap: 10px;
}

  /* 2. Style for all Tab Links (Inactive State) */
  .nav-tabs .nav-link {
    /* Use CSS variables to override the Bootstrap defaults */
    --bs-nav-link-color: var(--mt-color-base);
    --bs-nav-link-font-weight: 600;
    padding-top: 14px; padding-bottom: 12px;
    background-color: rgba(var(--mt-color-base-value), 0.05);
    border: none !important;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
    transition: all 0.2s ease;
  }

  /* 3. Hover State */
  .nav-tabs .nav-link:hover:not(.active) {
    background-color: rgba(var(--mt-color-primary-value), 0.1);
    color: var(--mt-color-primary);
  }

  /* 4. The Active Tab (The Teal Button) */
  .nav-tabs .nav-link.active {
    /* Override variables for the active state */
    --bs-nav-tabs-link-active-color: var(--mt-color-primary-contrast);
    --bs-nav-tabs-link-active-bg: var(--mt-color-primary);

    background-color: var(--bs-nav-tabs-link-active-bg) !important;
    color: var(--bs-nav-tabs-link-active-color) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  /* 5. Adjust the Content Area */
  .tab-content {
    border: 1px solid var(--mt-color-accent);
    border-top: none;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
  }

  .tab-content > .tab-pane {
    position: relative;
}

/* Prevents the AJAX 'loading' overlay from pushing content down */
.view-content.ajax-progress-throbber {
    position: absolute;
    top: 0;
}
