@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/********** MAIN **********/
body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
}

html,body {
    margin: 0;
    height: 100%;
    width: 100%;
}

.mybutton {
    width: 150px;
    height: 75px;
    margin-top: 25px ;
    padding: 16px;
    border: none;
    background-color: #363E61;
    color: white;
    border-radius: 16px !important;
    cursor: pointer;
    outline: none;
}

.btn-outline-primary {
    --bs-btn-color: #005c96 !important;
    --bs-btn-border-color: #005c96 !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #005c96 !important;
    --bs-btn-hover-border-color: #005c96 !important;
    --bs-btn-focus-shadow-rgb: 13,110,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #005c96 !important;
    --bs-btn-active-border-color: #005c96 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #005c96 !important;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #005c96 !important;
    --bs-gradient: none;
}

a {
    text-decoration: none;
    color: white;
}

a:hover {
    color: white;
    text-decoration: none;
}

table {
    width: 100%;
}



/********** HEADER *******/

nav {
    font-size: 18px;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 100px;
}

.nav-items{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.nav-logo {
    color: white;
    font-weight: 500;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color .3s ease-in-out;
}

.nav-logo span:hover, .nav-link:hover, .nav-link.dropdown-toggle:hover, .navbar-brand:hover {
    color: #babbc2;
}

.user-infos {
    display: flex;
    gap: 5px;
    align-items: center;
}

.user-infos i.bi-person-fill {
    font-size: 2em;
}

.user-infos i.bi-box-arrow-right {
    font-size: 1.5em;
}

.user-role {
    font-size: 0.6em;
    font-weight: 300;
}

.login-button {
    width: 100%;
    height: 60px;
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color .3s ease-in-out;
}

.login-button:hover {
    background-color: #2b3450;
}

.login-card {
    border-radius: 25px;
    background-color: #f1f1f1;
}


#AffichageDropdown {
    display: flex;
    align-items: center;
}

.user-status{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item:last-child:not(:first-child) {
    margin-left: auto;
}

.login-card-header {
    margin: 25px 0;
    font-weight: 700;
    font-size: 2em;
    text-align: center;
}

li.username-display{
    text-align: center;
}

.nav-link{
    transition-property: color;
    transition-duration: .3s;
}

.nav-links{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.table-header {
    background-color: #444f7e;
    color: white;
    height: 50px;
    text-align: center;
}

.btn-new {
    background-color: #27c002;
    border: none;
    transition: background-color .3s ease-in-out;
}

.btn-new:hover {
    background-color: #1f9d00;
}

.users-table, .entity-table, .pesees-table {
    width: 99%;
    margin: 0 auto;
}

.users-table tr, .entity-table tr, .pesees-table tr {
    text-align: center;
    height: 50px;
}

tr:nth-child(even) {
    background-color: #f1f1f1;
}

.edit-icon {
    font-size: 22px;
    cursor: pointer;
    color: #7a7a7a;
}

.print-icon {
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

.edit-icon.bi-trash {
    color: #de0202;
}

.users-header, .entity-header, .pesees-header {
    margin: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* RADIOS */

input[type="radio"].radio {
    display: none;
}
input[type="radio"].radio + label {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.3rem;
    color: #005c96;
    background-color: #fff;
    border: 1px solid #005c96;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}
input[type="radio"].radio:hover + label {
    background-color: #004875;
    border-color: #005c96;
    color: #fff;
}
input[type="radio"].radio:checked + label {
    background-color: #005c96;
    border-color: #005c96;
    color: #fff;
}
.radios-container{
    display: flex;
    justify-content: center;
    padding: 10px;
    column-gap: 10px;
}


input[type="checkbox"].checkbox {
    display: none;
}
input[type="checkbox"].checkbox + label {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.3rem;
    color: #005c96;
    background-color: #fff;
    border: 1px solid #005c96;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    width: 100%;
}
input[type="checkbox"].checkbox:hover + label {
    background-color: #004875;
    border-color: #005c96;
    color: #fff;
}
input[type="checkbox"].checkbox:checked + label {
    background-color: #005c96;
    border-color: #005c96;
    color: #fff;
}

.checkbox-container{
    text-align: center;
    min-width: 48%;
    width: 49%;
}

.outline-red{
    outline: 1px solid indianred;
}





/********** SELECT2 **********/

.select2-selection__rendered {
    line-height: 31px !important;
}
.select2-container .select2-selection--single {
    height: 35px !important;
}
.select2-selection__arrow {
    height: 34px !important;
}

.select2-container--default .select2-selection--single{
    border: 1px solid #ced4da !important;
}

.select2-container{
    width: 100% !important;
}

.select2-container--open {
    z-index: 99999 !important;
}



/*********** VUE MOBILE *********/

.menu-hamburger{
    display: none;
    position: absolute;
    top: 65px;
    transform: translateY(-50%);
    right: 50px;
    font-size: 50px;
    z-index: 2;
    cursor: pointer;
}

.mobile-menu{
    transform: translateX(0) !important;
    transition: transform .5s ease-out;
}

.logo-mobile{
    display: none;
}

@media screen and (max-width: 900px){
    .nav-items{
        position: absolute;
        background-color: rgba(0, 0, 0, 0.38);
        backdrop-filter: blur(15px);
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 2;
    }

    .nav-item:first-child{
        margin-top: 100px;
        margin-bottom: 10px;
    }

    .nav-links{
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        row-gap: 25px;
        font-size: 1.2em;
    }

    .menu-hamburger, .logo-mobile{
        display: block;
    }

    .nav-item:last-child{
        margin: initial;
    }

    input[type="text"]{
        min-width: 150px;
    }

}