:root {
    --bleu: #246cd1;
    --bleuClair: #007BFF;
    --grisClair: rgb(238, 238, 238);
    --grisMoyen: rgb(190, 190, 190);;
    --grisFonce: rgb(70, 70, 70);
  }

body {
    font-family: "ubuntu", verdana, helvetica, arial, sans-serif;
    background-color: #f4f4f4;
    display : flex;
    justify-content: start;
    flex-direction: column;
    align-items: center;
    font-size: 1em;
    height: 100vh;
    margin : 0px 50px 0 50px;
}

#page, #login {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    padding: 0;
    color: var(--grisFonce);
}

h2 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    padding: 0;
    color: var(--grisFonce);
}

a {
    color: black;
    text-decoration: none;
}

#logo, #logoLogin {
	width: 300px;
	margin-bottom:30px;
}

p {
    margin-top:0px;
}

form {
    margin : 0;
}
li {
    list-style-type:none;
    
}

#tblLogSearchForm {
    display : flex;
}

#filtreTableDate {
    background-color: var(--grisMoyen);
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 10px 30px 10px 30px;
    border : 1px solid var(--grisFonce);
    border-radius: 20px 0 0 20px;
}

.fltLine {
    display: flex;
    justify-content: space-between;
}

.fltLabel {
    display: block;
    flex-basis: 40%;
    margin : 5px 0;
}

.fltInput {
    flex-basis: 60%;
    display: block;
}

input[type=text],[type=date],[type=password] {
    width: 100%;
    margin : 5px 0;
}    

select {
    padding: 0 20px 0 20px;
    width: 100%;
}  

#formSearchLogs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#filtreTypesAlertes {
    max-width: 600px;
    display: flex;
    flex-wrap: wrap;
    padding-top:10px;
    background-color: var(--grisClair);
    border : 1px solid var(--grisFonce);
    border-radius: 0 20px 20px 0;
}

.chkBxAlertes {
    width: 120px;
}

/******************************/
/* Style pour tableau logs    */
/******************************/

#tblLogResults {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    width: 800px;

    text-align: center;

}

.table-wrapper {
    flex-grow: 1;
    max-height: calc(100vh - 433px); /* Ajustez en fonction de la hauteur des autres éléments 52vh;*/
    overflow-y: auto;
}

.tblLog {
    width: 100%;
    border-collapse: collapse;
}

.tblLogHead {
    background-color: #f1f1f1;
    position: sticky;
    top: 0;
    z-index: 1;
}

.tblLogBody {
    overflow-y: auto;
}

.tblLogTh, .tblLogTd {
    padding: 8px;
    text-align: left;
}

.ltr {
    font-size: 1.2em;
    text-align: center;
    font-weight: bold;
}

.lth, .ltd {

    padding: 8px;
    text-align: left;
}

tbody .ltr {
    display: table;
    width: 100%;
    table-layout: fixed;
}
.lDate {
    width : 75px;
    text-align: center;
}

.lHeure {
    width : 75px;
    text-align: center;
}

.lMessage {
    width : 150px;
}

.lTable {
    width : 75px;
    text-align: center;
}

.lMoteur {
    width : 75px;
    text-align: center;
}

.lEtat {
    width : 75px;
    text-align: center;
}

/******************************/
/* Style pour switch arrondis */
/******************************/

/* The switch - the box around the slider */
.switch {
	position: relative;
	display: inline-block;
	width: 30px;
	height: 17px;
	margin-left: 10px;
	margin-right: 10px;
}

/* Hide default HTML checkbox */
.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

/* The slider */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 15px;
	width: 15px;
	left: 1px;
	bottom: 1px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
}

input:checked + .slider {
	background-color: var(--bleuClair);
}

input:focus + .slider {
	box-shadow: 0 0 1px var(--bleuClair);
}

input:checked + .slider:before {
	-webkit-transform: translateX(13px);
	-ms-transform: translateX(13px);
	transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
	border-radius: 17px;
}

.slider.round:before {
	border-radius: 50%;
}

.valides {
	display: flex;
    width: 150px;
}

/* ----- Fin Switch ------*/

#filtreLogsBoutons {
    display: flex;
    justify-content: space-between;
}

button {
    font-family: "ubuntu", verdana, helvetica, arial, sans-serif;
    margin: 10px;
    background-color: var(--bleuClair);
    color: white;
    font-weight: 900;
    padding: 7px 15px 7px 15px;
    border-radius: 5px;
    border-style:none;
}




table {
    font-size: 0.7em;    
}

tbody {
	border-collapse: separate;
	border-spacing: 0px 0px;
	overflow-y: auto;
	scrollbar-width: thin;
}

#enTeteLog {
    background-color: var(--grisFonce);
    color: white;
}

#mainMenu {
    display: flex;
    flex-direction: column;
}
/* DASHBOARD */

.container {
    width: 100%;
}

.section {
    margin-bottom: 30px;
}



.button-group {
    display: flex;
    flex-wrap: wrap;
}

.buttonDashboard {
    display: inline-block;
    width: 100px;
    height: 100px;
    background-color: var(--bleuClair);
    color: white;
    text-align: center;
    line-height: 100px;
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button.buttonDashboard{

    margin: 0 7px 10px 0;
font-size: 1em;
    background-color: #989898;

    font-weight: 400;
    padding: 0;
    border-radius: 4px;
    border-style:none;
}

.buttonDashboard:hover {
    background-color: var(--bleu);
    font-weight: bold;
}

#vnc-controls {
    display: flex;
    gap: 10px;
}

.restart-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    padding: 10px;
    gap: 6px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    color: black;
    transition: background 0.2s ease;
    text-align: center;
}

button.restart-btn {
    margin:0px;
}
.restart-btn:hover {
    background-color: #e0e0e0;
}

.restart-btn img.btn-icon {
    width: 32px;
    height: 32px;
}

.restart-btn .btn-label {
    font-size: 14px;
    font-weight: bold;
}
/* Dernier bouton sans marge droite pour un alignement propre */
.button-group .button:last-child {
    margin-right: 0;
}

.option {
    border-radius: 0;;
}
/* FIN DASHBOARD */



@media only screen and (max-width: 768px) {


/*    body {
        font-size: 4rem;
        max-width: 100%;
        width: 100%;
    }


    .chkBxAlertes {
        width: 100%;
        margin-left:5%;
    }
    input[type=checkbox] {
        transform: scale(2);
        margin: 40px;
        padding: 20px;
    }

    .fltLine {
        font-size: 1.5em;
    }

  






    #tblLogSearchForm {
        height:auto;
    }
    table {
        font-size: 0.6em;
    }
    #tblLogResults {
        width: 100%;
    }
*/

    body {
        width: 100%;
        margin: 0;
    }

    .section {
        margin: 0 20px;
    }
    #logo {
        display: none;
    }

    #tblLogSearchForm {
        flex-direction: column;
    }

    #filtreTableDate {
        font-size : 1.2em;
        width: auto;
        padding: 10px;
        border-radius: 0 0;
    }

    #filtreTypesAlertes {
        max-width: 100%;
        padding-top:10px;
        border-radius: 0 0 0px 0px;
    }

    select {
        font-size:1.1em;
        width: 95%;
        height:30px;
    }

    input[type=text] ,[type=password] {
        font-size:1em;
        width: 84%;
        height:30px;
    }   

    input[type=date] {
        font-size:1.1em;
        width: 90%;
        height:30px;
    }  
    /******************************/
    /* Style pour switch arrondis */
    /******************************/

    /* The switch - the box around the slider */
    .switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 29px;
        margin-left: 10px;
        margin-right: 10px;
    }

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    /* The slider */
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        -webkit-transition: .4s;
        transition: .4s;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 25px;
        width: 25px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

    input:checked + .slider {
        background-color: var(--bleuClair);
    }

    input:focus + .slider {
        box-shadow: 0 0 2px var(--bleuClair);
    }

    input:checked + .slider:before {
        -webkit-transform: translateX(21px);
        -ms-transform: translateX(21px);
        transform: translateX(21px);
    }

    /* Rounded sliders */
    .slider.round {
        border-radius: 29px;
    }

    .slider.round:before {
        border-radius: 50%;
    }

    .valides {
        display: flex;
        width: 50%;
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    /* ----- Fin Switch ------*/
    #tblLogResults {

        flex-direction: column;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    button {
        font-size: 1.2em;
      }

    .table-wrapper {
    flex-grow: 1;
    max-height: 100%; /* Ajustez en fonction de la hauteur des autres éléments 52vh;*/
    overflow-y: auto;
    }
}

