html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.logo {
    max-width: 50px;
    height: auto;
}

.nav-tabs {
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

/* Animated line under the nav-tab line */
.nav-tabs::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #7AC07A, transparent);
    transition: all 0.3s ease;
    width: 33.33%;
}

.nav-tabs:has(#bilan-tab.active)::before {
    left: -5%;
}

.nav-tabs:has(#adminProfile-tab.active)::before {
    left: 28.33%;
}

.nav-tabs:has(#medicalProfile-tab.active)::before {
    left: 61.66%;
}

.bg-grey-300 {
    background-color: #E0E0E0 !important;
}

.bg-green-100 {
    background-color: #C8E6C9 !important;
}

.floating-img-btn {
    position: fixed;
    top: clamp(120px, 5vh, 200px);
    right: clamp(5px, 2vw, 25px);
    z-index: 9999;
    padding: 0;
    border: 0;
    background: none;
}

.floating-img-btn img {
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    border-radius: 8px;
}

.floating-img-btn img:hover {
    transform: scale(1.15);
}

@media (min-width: 992px) {
    #chartRedFlagsModal,
    #chartFunctionalProfileModal {
        width: 90% !important;
        margin: 0 auto;
        display: block;
    }
}