/*
 * Bootstrap 5.3 adjustments, loaded right after bootstrap.min.css by both
 * layouts: keep the look of the application, designed with Bootstrap 3.3.
 */

:root {
    /* Bootstrap 3 blue (Bootstrap 5 default is #0d6efd) */
    --bs-primary: #337ab7;
    --bs-primary-rgb: 51, 122, 183;
    --bs-link-color: #337ab7;
    --bs-link-color-rgb: 51, 122, 183;
    --bs-link-hover-color: #23527c;
    --bs-link-hover-color-rgb: 35, 82, 124;
    /* Bootstrap 3 text size was 14px (Bootstrap 5: 16px) */
    --bs-body-font-size: 0.875rem;
}

.btn {
    --bs-btn-font-size: 0.875rem;
}

.btn-primary {
    --bs-btn-bg: #337ab7;
    --bs-btn-border-color: #2e6da4;
    --bs-btn-hover-bg: #286090;
    --bs-btn-hover-border-color: #204d74;
    --bs-btn-active-bg: #204d74;
    --bs-btn-active-border-color: #122b40;
    --bs-btn-disabled-bg: #337ab7;
    --bs-btn-disabled-border-color: #2e6da4;
}

.form-control,
.form-select,
.input-group-text {
    font-size: 0.875rem;
}

/* Bootstrap 5 underlines the links */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* The labels were bold with Bootstrap 3 */
label {
    font-weight: 700;
}

/* Bootstrap 5 removes the arrow of a select with .form-control (instead of .form-select) */
select.form-control {
    appearance: auto;
}

/* A checkbox or radio with .form-control becomes invisible with Bootstrap 5
   (block as with Bootstrap 3, so that margin: 0 auto centers it) */
input[type="checkbox"].form-control,
input[type="radio"].form-control {
    appearance: auto;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    box-shadow: none;
}

/* Bootstrap 5 makes the legend float: the content then goes up beside it */
fieldset legend {
    float: none;
}

/* Checkbox or radio inside its label (Bootstrap 3 .checkbox spacing) */
label > input[type="checkbox"],
label > input[type="radio"] {
    margin-right: 0.35em;
}
