/**
 * Revert form to Bootstrap 5 styles 
 */ 

.form-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--bs-heading-color);
}

/* Textarea height 
textarea.form-control {
    height: auto;
    min-height: 150px;
}
*/

.form-control {
    padding-left: 0.75rem; 
    padding-right: 0.75rem; 
    box-sizing: border-box;               
    border: 1px solid #ced4da;         
    border-radius: 0.375rem;             
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-floating > label {
    padding-left: 0.5rem !important;
    font-size: 16px;
    position: absolute;
    opacity: 1 !important;
}

.form-select {
    padding-left: 12px;
    padding-right: 36px;
    background-position: right 0.75rem center;
} 

.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}


/**
* Override Bootstrap 5 colors that Material Dashboard overrides.
*/
:root {
  --bs-primary-rgb: 29, 50, 101;
}

.text-primary {
  color: rgb(29, 50, 101) !important;
}


/**
* These explicit color values are used instead of --bs-primary/--bs-primary-rgb
* to achieve nuanced hover and active button states that match the intended design.
* Using the variable alone would not provide the subtle Material Dashboard gradients 
* and shade differences.
*/
.btn-primary,
.btn.bg-gradient-primary {
  box-shadow: 
    0 2px 2px 0 rgba(37, 64, 138, 0.1),         /* replaced */
    0 3px 1px -2px rgba(37, 64, 138, 0.18),      /* replaced */
    0 1px 5px 0 rgba(37, 64, 138, 0.15);         /* replaced */
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1D3265;
  --bs-btn-border-color: #1D3265;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgb(37, 64, 138);        /* #25408a */
  --bs-btn-hover-border-color: rgb(37, 64, 138); /* Match hover BG */
  --bs-btn-focus-shadow-rgb: 40, 80, 200;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgb(24, 38, 80);         /* #182650 */
  --bs-btn-active-border-color: rgb(24, 38, 80);
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #1D3265;
  --bs-btn-disabled-border-color: #1D3265;
}

.btn-primary .btn.bg-outline-primary,
.btn.bg-gradient-primary .btn.bg-outline-primary {
  border: 1px solid #1D3265;
}

.btn-primary:hover,
.btn.bg-gradient-primary:hover {
  background-color: #25408a; /* or rgb(37, 64, 138) */
  border-color: #25408a;     /* or rgb(37, 64, 138) */
  /* Replace shadow RGB with your blue (37, 64, 138), keep original opacities */
  box-shadow: 0 8px 14px -8px rgba(37, 64, 138, 0.3),
              0 3px 18px 0 rgba(37, 64, 138, 0.1),
              0 7px 8px -4px rgba(37, 64, 138, 0.18);
}


/**
* For the sake of readability.
*/
#content-block {
    max-width: 80ch;
    margin: 0 auto;
}

/* Give the floating label a background in case the text in the textarea gets 
too long and the text overlaps with the label */
.form-floating > label::after {
    position: absolute;
    background-color: white;
    height: 1.5em; 
    content: "";
    z-index: -1;
    display: block;
    inset: 1rem 0.375rem;
}

/**
 * Nav pills
 */

.nav.nav-pills .nav-link {
    color: #e91e63;
    cursor: pointer;
}

.nav.nav-pills .nav-link.active {
    color: #404040;
}

.nav.nav-pills .moving-tab .nav-link {
    color: transparent;
}


/**
 * Custom styles for the moving tab
 */
 .material-symbols-rounded.clickable {
    color: #E91E62; 
    font-size: 1.5rem; 
    cursor: pointer;
}


/**
 * Loading graphic
 */
img.spinner-svg {
    height: 48px;
}


/* Lower sidenav below modal backdrop */
.g-sidenav-show .sidenav {
  z-index: 1040; /* below Bootstrap modal backdrop (≈1050) */
}