@import url('style_nav.css');
@font-face {
    font-family: "SFPRODISPLAYREGULAR";
    src: url(../public/font/SFPRODISPLAYREGULAR.OTF);
}
:root{
    --MainColor : #EA4993;
    --SecondaryColor : #960034;
    --AccentColor : #C61F59;
    --AlmostWhiteColor : #fed5d5;
    --regularMainFont : "SFPRODISPLAYREGULAR";
    --navHeigth : 60px;
    --TermometerSecondarColor : #bfbbbb;
    --TermometerWidth : 150px;
}

body{
    margin: 0;
    padding: 0;
}



/* ---------- */
/* LOGIN PAGE */
/* ---------- */
#login_body{
    margin: 0; padding: 0;
    width: 100vw; height: 100vh;
    background: url("../public/img/loginbackground.webp"); background-position: center center; background-size: cover; background-repeat: no-repeat;
    display: flex; flex-flow: row nowrap; justify-content: center; align-items: center;
}
#login_form{
    display: flex; flex-flow: column nowrap; justify-content: center;align-items: center;
    width: 400px; height: 500px;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.21);
    border-radius: 18%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.62);
}
#login_logo{
    width: 50%;
    margin-bottom: 50px;
}
.input-wrapper {
    position: relative;
    width: 80%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
}

.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--regularMainFont);
    font-size: 1rem;
    background: transparent;
    padding-left: 0.5rem;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
}

/* Login button style (optionnel pour ressembler à ton exemple) */
#login_form button {
    margin-top: 20px;
    padding: 0.6rem 1.5rem;
    font-family: var(--regularMainFont);
    font-size: 1rem;
    border: none;
    border-radius: 1rem;
    background-color: var(--MainColor);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}
#login_form button:hover {
    background-color: var(--SecondaryColor);
}
.input-wrapper:has(input:focus) {
    box-shadow: 0 0 0 3px var(--AccentColor);
    border: 1px solid var(--AccentColor);
}

/* --------- */
/* Home page */
/* --------- */

#home_main{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-start;
    height: calc(100vh - var(--navHeigth));
    width: 100%;
    font-family: var(--regularMainFont);
}
#home_rooms {
    min-width: 200px; /* ou 220px selon le plus long label */
    max-width: 300px;
    flex: 0 0 auto; /* ne rétrécit pas */
    display: flex;
    flex-direction: column;
    background-color: var(--MainColor);
    height: 100%;
    justify-content: center;
    padding: 0 1rem;
}
#home_room_wraper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 25px 0 0 25px;
}

#home_room_wraper input {
  appearance: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  border: 3px solid #ffffff;
  transition: 0.2s all linear;
  display: inline-block;
  vertical-align: middle;
}
#home_room_wraper label{
    cursor: pointer;
}

#home_room_wraper input:checked {
  border: 6px solid var(--MainColor);
  background-color: var(--MainColor);
}
#home_room_wraper:has(input:checked){
    background-color: white;
    color: black;
    width: calc(100% + 1rem);
}

#home_welcome_message{
    font-size: 2rem;
    color: var(--SecondaryColor);
}
#home_welcome_message span{
    color: var(--MainColor);
}
#home_main_div{
    width: 90%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}
#home_data{
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
    justify-content: space-around;
}
.home_section_data{
    width: 35%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}
.home_data_header{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.home_secondary_title{
    font-size: 2rem;
    color: var(--SecondaryColor);
    font-weight: 500;
    letter-spacing: 0.15rem;
}
.home_data_header select{
    border: none;
}
.home_main_data{
    display: flex;
    width: 100%;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 500px;
}
.home_right_data_wraper{
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-around;
    align-items: flex-start;
    height: 100%;
    font-style: var(--regularMainFont);
}
.data_card_wraper{
    box-shadow: rgba(0, 0, 0, 0.19) 0px 5px 8px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: flex-start;
    min-width: 230px;
    padding: 0.5rem;
    border-radius: 0.5rem;
}
.data_card_wraper h3{
    font-size: 1.2rem;
    font-weight: 500;
    color: #525252;
}
.data_card_data{
    font-size: 2rem;
    font-weight: bolder;
    margin-bottom: 0.5rem;
}
.data_card_data_up{
    font-weight: bolder;
    color: rgb(1, 200, 1);
}
.data_card_data_down{
    font-weight: bolder;
    color: rgb(167, 23, 23);
}
.data_card_data_time{
    color: #525252;
    font-weight: 500;
}
/* Termometer */
.termometer_wraper{
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}
.termometer_grad{
    height: 100%;
    /* background-color: aliceblue; */
    width: 50px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 0.3rem;
}
.termometer_title_grad{
    font-size: 2.5rem;
}
.termometer_long_grad{
    width: 25px;
    height: 2px;
    background-color: black;
}
.termometer_short_grad{
    width: 15px;
    height: 2px;
    background-color: black;
}
.termometer_grad span{
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
}
.termometer_shape{
    height: 100%;
    width: var(--TermometerWidth);
    /* background-color: var(--AlmostWhiteColor); */
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    margin-left: -12%;
}
.termometer_shape_top{
    width: 50%;
    height: calc(100% - var(--TermometerWidth));
    z-index: 1;
    background-color: var(--TermometerSecondarColor);
    border-radius: 999px 999px 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.termometer_shape_full_top{
    width: 50%;
    height: 50%;
    background-color: var(--AccentColor);
    margin-bottom: -50px;
}
.termometer_shape_bottom{
    width: var(--TermometerWidth);
    height: var(--TermometerWidth);
    background-color: var(--TermometerSecondarColor);
    border-radius: 50%;
    margin-top: -10%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.termometer_shape_full_bottom{
    width: 70%;
    height: 70%;
    background-color: var(--AccentColor);
    z-index: 2;
    border-radius: 50%;
}