/* imports */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;1,300;1,400;1,500&display=swap');

/* Predefinicoes */ 
.centralize{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilizacao global do app */
body{
    background-color: white;
    padding: 0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 40px;
    text-align: center;
    overflow-x: hidden;
}

/* header */
.header-big{
    background-color: #262B5C;
    height: 300px;
    width: 100%;
}

.header-big p{
    color: white;
    font-size: 3rem;
}

.header-small{
    background-color: #262B5C;
    height: 200px;
}

.header-small p{
    color: white;
    font-size: 2rem;
    word-wrap: break-word;
    width: 100%;
}

/* Eslilizacao de Formulario */

.input{
    border: none;
    color: white;
    background-color: #262B5C;
    border-radius: 12px;
    height: 50px;
    width: 80%;
    margin: 10px auto;
    font-size: 1.5rem;
    padding-left: 20px;
}

.input::placeholder{
    color: white;
}

.input:focus{
    border: 2px black solid;
    outline: none;
}

.butoon-sec{
    background-color: white;
    color: #262B5C;
    border: 2px #262B5C solid;
    border-radius: 12px;
    height: 50px;
    width: 84%;
    margin: 10px auto;
    font-size: 1.5rem;
    cursor: pointer;
}

.button-prim{
    border: none;
    color: white;
    background-color: #262B5C;
    border-radius: 12px;
    height: 50px;
    width: 84%;
    margin: 10px auto;
    font-size: 1.5rem;
    cursor: pointer;
}

.butoon-sec:disabled, .button-prim:disabled{
    opacity: 60%;
    cursor:  default;
}

.erro{
    color: #262B5C;
    display: none;
}

/* Footer */
.footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    height: 40px;
    align-items: center;
    color: #F29F05;
}

/* Tela de carregamento */
.loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  .loadingIcon {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .loadingText {
    color: white;
    font-size: 24px;
    margin-top: 10px;
  }
/* Checkbox diabetes estilo pilula*/
.pill-checkbox {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.pill-checkbox input[type="checkbox"] {
    display: none;
}

.pill {
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s ease;
}

.pill::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s ease;
}

.pill-checkbox p{
    font-size: 1.2rem;
}

.pill-checkbox input[type="checkbox"]:checked + .pill {
    background-color: #F29F05;
}

.pill-checkbox input[type="checkbox"]:checked + .pill::before {
    left: calc(100% - 22px);
}

/* nav bar*/
.navigation{
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #262B5C;
    border-radius: 10px;
  }
  
  .nav-link img{
    width: 24px;
    height: auto;
    filter: invert();
  }

  /*Barra de progresso*/
.progress-bar{
    margin-top: 20px;
    width: 92%;
    height: 60px;
    background-color: #262B5C;
    box-shadow: 0px 0px 10px rgba(65, 65, 65, 0.133);
    border-radius: 10px;
    overflow: hidden;
}

.progress-stage {
    width: 0;
    height: 100%;
    background-color: #F29F05;
    transition: width 1s linear;
  }

  
  .stage-1 .progress-stage {
    width: 25%;
    background-color: #F29F05;
  }
  
  .stage-2 .progress-stage {
    width: 50%;
    background-color: #F29F05;
  }
  
  .stage-3 .progress-stage {
    width: 75%;
    background-color: #F29F05;
  }
  
  .stage-4 .progress-stage {
    width: 100%;
    background-color: #F29F05;
}

/*--- popup ---*/
.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 80%;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 15px;
    font-size: 1.3rem;
    animation: popupAnimation 0.5s ease-in-out forwards;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    max-height: calc(100% - 175px);
    overflow-y: auto;
    text-align: left;
  }
  
  @keyframes popupAnimation {
    from { opacity: 0; transform: translate(-50%, 100%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
  }
  
  @keyframes popupCloseAnimation {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to { opacity: 0; transform: translate(-50%, 100%); }
  }

  .popup h1{
    font-size: 2rem;
  }

  .popup p{
    font-size: 1.2rem;
  }