@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('FontAwesome/css/all.min.css');


:root {
    /*Theme clair*/
    --background: white;
    --font-color: black;
    --highlight: #f7f7f7;
    --highlight-2: #e2e3e5;
    --link: #0366d6;
}

.dark-mode {
    /*Theme sombre*/
    --background: #959595;
    --font-color: white;   
    --highlight: #393939;
    --highlight-2: #414648;
    --link: #3ca4ff;    
}



/*Les boites de saisie*/
/*Text*/
input[type="text"], input[type="date"]{
    border: 1px solid #3ca4ff;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--highlight-2);
    color: var(--font-color);
}

input[type=text]:focus, input[type=date]:focus {
    background-color: var(--background);
}

.dark-mode select {
    background-color: var(--highlight-2);
    color: var(--font-color);
}

.dark-mode select:focus {
    background-color: var(--highlight-2);
    color: var(--font-color);
}

/*Fin boite de saisie*/
/*Checkbox personnalis�e*/
/* Le container */
.container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 0px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 200px;
}

/* masque le checkbox par d�faut du navigateur */
.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
 }

/* Cr�ation du checkbox personnalis�*/
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: var(--highlight-2);
}

/* MOUSE-OVER, on ajoute la couleur */
.container:hover input ~ .checkmark {
    background-color: var(--background);
}

/* Quand la checkbox est CHECKED, Ajout de la couleur de fond*/
.container input:checked ~ .checkmark {
    background-color: #284bfc;
}

/* Cr�ation d'un marqueur (coche) (cach� quand pas coch�) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* CHECKED: Affiche le marqueur */
.container input:checked ~ .checkmark:after {
    display: block;
}

/* Style du marqueur (check) */
.container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 8px;
    height: 15px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);    
}

/*Fin checkbox personnalis�e*/

a, .btn-link {
    /*color: #0366d6;*/
    color: var(--link);
}

.alert-secondary{
    background-color: var(--highlight-2);
    color: var(--font-color);
}

.table{
    color: var(--font-color);    
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

app {
    /*background-color: var(--background);*/
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    background-color: var(--highlight);    
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
    background-color: var(--background);    
}

/*Barre logout*/
.main .top-row {
    background-color: var(--highlight);
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    color: var(--font-color);
    z-index: 90;
}

.main .top-row > a {
    margin-left: 1.5rem;
}


/*Barre des menus*/
.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.sidebar .top-row {
    background-color: rgba(0,0,0,0.4);
}

.sidebar .navbar-brand {
    font-size: 1.1rem;
}

.sidebar .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

/*Fin barre des menus*/

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

    .nav-item a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.content {
    background-color: var(--background);
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);   
}


.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


@media (max-width: 767.98px) {
    .main .top-row {
        display: none;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.form-group {
    background: #0A2464;
    color: honeydew;
    width: 100%;
    padding: 10px;
}


.my-custom-scrollbar {
    position: relative;
    height: 400px;
    overflow: auto;
}

.table-wrapper-scroll-y {
    display: block;
}

/*Pour les tableaux*/
.tableContainer {
    background: #0A2464;
    color: honeydew;
    width: 100%;
    padding: 10px;
}

.tableAffiche {
    background: #17a2b8;
    color: honeydew;
    width: 100%;
}

/*Boutons fl�ches transparents*/
.Upbutton {
    color: #fff;
    border: none;
    outline: none;
    background-color: transparent;
}

.Downbutton {
    color: white;
    border: none;
    outline: none;
    background-color: transparent;
}

/**** CHAT ***/
/* improved for chat text box */
textarea {
    border: 1px dashed #888;
    border-radius: 5px;
    width: 80%;  /*80*/
    overflow: auto;
    background: #f7f7f7
}

/* improved for speech bubbles */
.received, .sent {
    position: relative;
    font-family: arial;
    font-size: 1.1em;
    border-radius: 10px;
    padding: 20px;   /*20*/
    margin-bottom: 20px
}

    .received:after, .sent:after {
        content: '';
        border: 20px solid transparent;
        position: absolute;
        margin-top: -30px;
    }

.sent {
    background: #03a9f4;
    color: #fff;
    margin-left: 10%;   /*10*/
    top: 50%;
    text-align: right;
}

.received {
    background: #4CAF50;
    color: #fff;
    margin-left: 10px;  /*10*/
    margin-right: 10%;  /*10*/
}

.sent:after {
    border-left-color: #03a9f4;
    border-right: 0;
    right: -20px;   /*-20*/
}

.received:after {
    border-right-color: #4CAF50;
    border-left: 0;
    left: -20px;   /*-20*/
}

/* div within bubble for name */
.user {
    font-size: 0.8em;
    font-weight: bold;
    color: #000;
}

.msg {
    /*display: inline;*/
}
