*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "roboto", sans-serif;
}




:root{
        

    /*Colors*/

--primary-color: #075b9d;
--primary-dark: #003b70;
--background-color:#eef3f8;
--text-color:#f5f5f5;
--heading-color:#001569;
--hover-text-color:#FFFFFF;
--hover-background-color:#001569;
--card-color:#ffffff;
--muted-color: #667085;
--border-color: #d7dee8;


    /*components*/

--shadow:1px 2px 10px 0px rgba(0,0,0, 0.15);
--small-shadow: 0 4px 12px rgba(15, 42, 74, 0.12);
--radius: 10px;
    
}


/* FORRO */


body{
    min-height: 100vh;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
}

header{
    width: 100%;
    padding: 1rem;
    background-color: var(--card-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 10%;
    padding-left: 10%;
    color: var(--primary-dark);
    box-shadow: var(--shadow);
    gap: 2rem;
    flex-wrap: wrap;
}

#logo{  
    width: 18rem;
    max-width: 100%;
    height: auto;
}

#slogan h2{
    font-size: 1.05rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;

}

main{
    flex: 1;
    padding-top: 2rem;
    padding-right: 10%;
    padding-bottom: 2rem;
    padding-left: 10%;

}

#menuSection{
    padding: 1rem;
    padding-bottom: 0.5rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto ;
    max-width: 75rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;

}

.selectorButton{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    cursor: pointer;
    border: 1px solid var(--border-color) ;
    border-radius: 12px;
    background-color: var(--card-color);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4rem;
    box-shadow: var(--small-shadow);
    color: var(--primary-dark);
    transition: border-color 0.2s ease, transform 0.1s ease;
    
}

.buttonNumber{
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    border-radius: 10px;
    background-color: rgba(213, 254, 255,0.70);
    color: var(--primary-dark);
}

.selectorButton:hover{
    border-color: var(--primary-dark);
    transform: translateY(-2px);

}

.selectorButton:active{
    border-color: var(--heading-color);
    background: linear-gradient(135deg, #1199e7 0%, var(--primary-color) 65%, var(--primary-dark) 100%);
    color: var(--card-color);
    transform: translateY(0) scale(0.98);
}

.selectorButton:focus-visible {
    outline:  1px solid var(--primary-color);
    outline-offset: 1px;
}

.selectorButton.selected{
    border-color: var(--heading-color);
    background: linear-gradient(135deg, #1199e7 0%, var(--primary-color) 65%, var(--primary-dark) 100%);
    color: var(--card-color);

}

article{
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1rem;
    width: 100%;
    max-width: 75rem;
    min-height: 20rem;
    margin-left: auto;
    margin-right: auto;

}


#infoSection{

    padding: 1.5rem;
    padding-bottom: 0rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--card-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

#inputSection{
    padding: 1.5rem;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
#calcHeader{
    grid-column: 1/ -1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#calcHeaderText{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#selectionButtons{
    grid-column: 1 /-1;
    display: flex;
    justify-content: end;
    gap: 1rem;
    padding-top: 1rem;
}

#calcLabel{

    grid-column: 1 /-1;
    color: var(--heading-color);
}

#calcTitle{

    grid-column: 1 / -1;
    color: var(--heading-color);
}

#infoParagrafh{
    grid-column: 1 / -1;
}

#dashboardSection {
    display: flex;
    flex-direction: column;
    background-color: var(--card-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

}


.titleIcon{
    padding: 0.5rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    font-weight: 900;
    font-size: 2rem;
    background-color: rgba(213, 254, 255,1);
    border-radius: var(--radius);
}


.form-group{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: "JetBrains Mono", monospace;
    color: var(--heading-color);
}

.wallInput{
    font-family: "JetBrains Mono", monospace;
    height: 3rem;
    min-width: 7rem;
    padding-left: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--small-shadow);
}

.wallInput:focus{

    outline: 2px solid var(--heading-color);
}


.newButton{
    width: 7rem;
    min-width: 4rem;
    height: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.1s ease;
}

.newButton:hover{
    border-color: var(--primary-dark);
    transform: translateY(-2px);

}

.newButton:active{
    border-color: var(--heading-color);
    transform: translateY(0) scale(0.98);
}


#calcButton{
    background-color: var(--primary-color);
    color: var(--card-color);
}
#clearButton{
    background-color: var(--border-color);
}
#saveButton{
    background-color: var(--primary-dark);
    color: var(--card-color);
}

#mainEvincive{
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 3px solid var(--heading-color);

}

#evincive{
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
    width: 100%;
    max-width: 60rem;
    min-height: 20rem;
    font-weight: 300;
    font-family: "Roboto", sans-serif;
    padding: 1rem;

}

#evinciveTitle{
    color: var(--heading-color);
}

#evinciveImg{
    display: flex;
    justify-content: center;
    align-items: center;
}

#rules{
    gap: 1rem;
}
#infoImg{
    width: 15rem;
    max-width: 100%;
}

#dashHeader{
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
    padding-left: 1.8rem;
    width: 100%;
    height: 5rem;
    background: linear-gradient(135deg, #f0f8ff, #e5f2fb);
    min-width: 10rem;
    border-radius: 12px 12px 0px 0px;
}

#dashTitle{
    font-size: 1.3rem;
    color: var(--primary-color);
}

#dashSubTitle{
    font-size: 1.5rem;
    color: var(--heading-color);
}

#resultContent{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.2rem;
    text-align: center;
    gap: 1rem;
}

#resultContent.thereIsAResult{
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-top: 4%;
    font-weight: 400;
}

#resultContent.thereIsAResult ul{
    list-style: none;
}

.resultHeader{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    font-weight: 600;
    color: var(--background-color);
    font-family: "JetBrains Mono", monospace;
    height: 4rem;
    width: 20rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #1199e7 0%, var(--primary-color) 65%, var(--primary-dark) 100%);

}

.resultMainLine{
    display: grid;
    grid-template-columns: 1fr;
    width: 20rem;
    padding-bottom: 1rem;
    font-weight:500;
    font-size: 1rem;

}

.lineOne{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 20rem;
    border-bottom: 1px #667085 solid;
    padding: 0.2rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    font-weight:500;
    font-size: 1rem;
}

.line{
    display: flex;
    justify-content: space-between;
    width: 20rem;
    border-bottom: 1px #667085 solid;
    padding: 0.2rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    font-weight:500;
    font-size: 1rem;
}



#resultHome{
    font-size: 3rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    padding-left: 1.8rem;
    padding-right: 1.8rem;
    background-color: rgba(213, 254, 255,0.70);
    border-radius: 60px;
}

.calculatorPage{
    display:none;
}

.calculatorPage.active{
    display:grid;
}


#logoPDF{  
    width: 12rem;
    max-width: 80%;
    height: auto;
}

#sloganPDF h2{
    font-size: 1.05rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;

}
#footerSection{
    display: flex;
    padding: 1rem;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 7px;
}

/* LAJE */




#infoLajeSection{

    padding: 1.5rem;
    padding-bottom: 0rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--card-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

#inputLajeSection{
    padding: 1.5rem;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;

}
#calcLajeHeader{
    grid-column: 1/ -1;
    display: flex;
    align-items: center;
    gap: 1rem;

}

#calcLajeHeaderText{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#selectionLajeButtons{
    grid-column: 1 /-1;
    display: flex;
    justify-content: end;
    gap: 1rem;
    padding-top: 1rem;
}

#calcLajeLabel{

    grid-column: 1 /-1;
    color: var(--heading-color);
}

#calcLajeTitle{

    grid-column: 1 / -1;
    color: var(--heading-color);
}

#infoLajeParagrafh{
    grid-column: 1 / -1;
}

#dashboardLajeSection {
    display: flex;
    flex-direction: column;
    background-color: var(--card-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

}


.titleLajeIcon{
    padding: 0.5rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    font-weight: 900;
    font-size: 2rem;
    background-color: rgba(213, 254, 255,1);
    border-radius: var(--radius);
}

.lajeAreaInputs{
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;

}

.form-Laje-group{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: "JetBrains Mono", monospace;
    color: var(--heading-color);
}

.lajeInput{
    font-family: "JetBrains Mono", monospace;
    height: 3rem;
    max-width: 12rem;
    gap: 3rem;
    padding-left: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--small-shadow);
}

.lajeInput:focus{

    outline: 2px solid var(--heading-color);
}


.newLajeButton{
    width: 7rem;
    min-width: 4rem;
    height: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.1s ease;
}

.newLajeButton:hover{
    border-color: var(--primary-dark);
    transform: translateY(-2px);

}

.newLajeButton:active{
    border-color: var(--heading-color);
    transform: translateY(0) scale(0.98);
}


#calcLajeButton{
    background-color: var(--primary-color);
    color: var(--card-color);
}
#clearLajeButton{
    background-color: var(--border-color);
}
#saveLajeButton{
    background-color: var(--primary-dark);
    color: var(--card-color);
}

#mainLajeEvincive{
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 3px solid var(--heading-color);

}

#lajeEvincive{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 60rem;
    min-height: 20rem;
    font-weight: 300;
    font-family: "Roboto", sans-serif;
    padding: 1rem;

}

#evinciveLajeTitle{
    color: var(--heading-color);
}

#evinciveLajeImg{
    display: flex;
    justify-content: center;
    align-items: center;
}

#rules{
    gap: 1rem;
}
#infoLajeImg{
    width: 15rem;
    max-width: 100%;
}

#dashLajeHeader{
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
    padding-left: 1.8rem;
    width: 100%;
    height: 5rem;
    background: linear-gradient(135deg, #f0f8ff, #e5f2fb);
    min-width: 10rem;
    border-radius: 12px 12px 0px 0px;
}

#dashLajeTitle{
    font-size: 1.3rem;
    color: var(--primary-color);
}

#dashLajeSubTitle{
    font-size: 1.5rem;
    color: var(--heading-color);
}

#resultLajeContent{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.2rem;
    text-align: center;
    gap: 1rem;
}

#resultLajeContent.thereIsAResult{
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-top: 4%;
    font-weight: 400;
}

#resultLajeContent.thereIsAResult ul{
    list-style: none;
}

.resultLajeHeader{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    font-weight: 600;
    color: var(--background-color);
    font-family: "JetBrains Mono", monospace;
    height: 4rem;
    width: 20rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #1199e7 0%, var(--primary-color) 65%, var(--primary-dark) 100%);

}

.resultLajeMainLine{
    display: grid;
    grid-template-columns: 1fr;
    width: 20rem;
    padding-bottom: 1rem;
    font-weight:500;
    font-size: 1rem;

}

.lineLajeOne{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 20rem;
    border-bottom: 1px #667085 solid;
    padding: 0.2rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    font-weight:500;
    font-size: 1rem;
}

.lineLaje{
    display: flex;
    justify-content: space-between;
    width: 20rem;
    border-bottom: 1px #667085 solid;
    padding: 0.2rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    font-weight:500;
    font-size: 1rem;
}

#resultLajeHome{
    font-size: 3rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    padding-left: 1.8rem;
    padding-right: 1.8rem;
    background-color: rgba(213, 254, 255,0.70);
    border-radius: 60px;
}

#footerLajeSection{
    display: flex;
    padding: 1rem;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 7px;
}



/*BLOCO*/

#infoBlocoSection{

    padding: 1.5rem;
    padding-bottom: 0rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--card-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

#inputBlocoSection{
    padding: 1.5rem;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;

}
#calcBlocoHeader{
    grid-column: 1/ -1;
    display: flex;
    align-items: center;
    gap: 1rem;

}

#calcBlocoHeaderText{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#selectionBlocoButtons{
    grid-column: 1 /-1;
    display: flex;
    justify-content: end;
    gap: 1rem;
    padding-top: 1rem;
}

#calcBlocoLabel{

    grid-column: 1 /-1;
    color: var(--heading-color);
}

#calcBlocoTitle{

    grid-column: 1 / -1;
    color: var(--heading-color);
}

#infoBlocoParagrafh{
    grid-column: 1 / -1;
}

#dashboardBlocoSection {
    display: flex;
    flex-direction: column;
    background-color: var(--card-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

}


.titleBlocoIcon{
    padding: 0.5rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    font-weight: 900;
    font-size: 2rem;
    background-color: rgba(213, 254, 255,1);
    border-radius: var(--radius);
}

.blocoInputs{
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;

}

.form-Bloco-group{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: "JetBrains Mono", monospace;
    color: var(--heading-color);
}

.blocoInput{
    font-family: "JetBrains Mono", monospace;
    height: 3rem;
    max-width: 12rem;
    gap: 3rem;
    padding-left: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--small-shadow);
}

.blocoInput:focus{

    outline: 2px solid var(--heading-color);
}

#blocoSelect{
    font-size: 0.9rem;
}


.newBlocoButton{
    width: 7rem;
    min-width: 4rem;
    height: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.1s ease;
}

.newBlocoButton:hover{
    border-color: var(--primary-dark);
    transform: translateY(-2px);

}

.newBlocoButton:active{
    border-color: var(--heading-color);
    transform: translateY(0) scale(0.98);
}


#calcBlocoButton{
    background-color: var(--primary-color);
    color: var(--card-color);
}
#clearBlocoButton{
    background-color: var(--border-color);
}
#saveBlocoButton{
    background-color: var(--primary-dark);
    color: var(--card-color);
}

#mainBlocoEvincive{
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 3px solid var(--heading-color);

}

#blocoEvincive{
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
    width: 100%;
    max-width: 60rem;
    min-height: 20rem;
    font-weight: 300;
    font-family: "Roboto", sans-serif;
    padding: 1rem;

}

#evinciveBlocoTitle{
    color: var(--heading-color);
}

#evinciveBlocoImg{
    display: flex;
    justify-content: center;
    align-items: center;
}

#rules{
    gap: 1rem;
}
#infoBlocoImg{
    width: 15rem;
    max-width: 100%;
}

#dashBlocoHeader{
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
    padding-left: 1.8rem;
    width: 100%;
    height: 5rem;
    background: linear-gradient(135deg, #f0f8ff, #e5f2fb);
    min-width: 10rem;
    border-radius: 12px 12px 0px 0px;
}

#dashBlocoTitle{
    font-size: 1.3rem;
    color: var(--primary-color);
}

#dashBlocoSubTitle{
    font-size: 1.5rem;
    color: var(--heading-color);
}

#resultBlocoContent{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.2rem;
    text-align: center;
    gap: 1rem;
}

#resultBlocoContent.thereIsAResult{
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-top: 4%;
    font-weight: 400;
}

#resultBlocoContent.thereIsAResult ul{
    list-style: none;
}

.resultBlocoHeader{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    font-weight: 600;
    color: var(--background-color);
    font-family: "JetBrains Mono", monospace;
    height: 4rem;
    width: 20rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #1199e7 0%, var(--primary-color) 65%, var(--primary-dark) 100%);

}

.resultBlocoMainLine{
    display: grid;
    grid-template-columns: 1fr;
    width: 20rem;
    padding-bottom: 1rem;
    font-weight:500;
    font-size: 1rem;

}

.lineBlocoOne{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 20rem;
    border-bottom: 1px #667085 solid;
    padding: 0.2rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    font-weight:500;
    font-size: 1rem;
}

.lineBloco{
    display: flex;
    justify-content: space-between;
    width: 20rem;
    border-bottom: 1px #667085 solid;
    padding: 0.2rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    font-weight:500;
    font-size: 1rem;
}

#resultBlocoHome{
    font-size: 3rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    padding-left: 1.8rem;
    padding-right: 1.8rem;
    background-color: rgba(213, 254, 255,0.70);
    border-radius: 60px;
}

#footerBlocoSection{
    display: flex;
    padding: 1rem;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 7px;
}

/* TELHAS */

#infoTelhasSection{

    padding: 1.5rem;
    padding-bottom: 0rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--card-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

#inputTelhasSection{
    padding: 1.5rem;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;

}
#calcTelhasHeader{
    grid-column: 1/ -1;
    display: flex;
    align-items: center;
    gap: 1rem;

}

#calcTelhasHeaderText{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#selectionTelhasButtons{
    grid-column: 1 /-1;
    display: flex;
    justify-content: end;
    gap: 1rem;
    padding-top: 1rem;
}

#calcTelhasLabel{

    grid-column: 1 /-1;
    color: var(--heading-color);
}

#calcTelhasTitle{

    grid-column: 1 / -1;
    color: var(--heading-color);
}

#infoTelhasParagrafh{
    grid-column: 1 / -1;
}

#dashboardTelhasSection {
    display: flex;
    flex-direction: column;
    background-color: var(--card-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

}


.titleTelhasIcon{
    padding: 0.5rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    font-weight: 900;
    font-size: 2rem;
    background-color: rgba(213, 254, 255,1);
    border-radius: var(--radius);
}

.telhasInputs{
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;

}

.form-Telhas-group{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: "JetBrains Mono", monospace;
    color: var(--heading-color);
}

.telhasInput{
    font-family: "JetBrains Mono", monospace;
    height: 3rem;
    max-width: 12rem;
    gap: 3rem;
    padding-left: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--small-shadow);
}

.telhasInput:focus{

    outline: 2px solid var(--heading-color);
}

#telhasSelect{
    font-size: 0.9rem;
}


.newTelhasButton{
    width: 7rem;
    min-width: 4rem;
    height: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.1s ease;
}

.newTelhasButton:hover{
    border-color: var(--primary-dark);
    transform: translateY(-2px);

}

.newTelhasButton:active{
    border-color: var(--heading-color);
    transform: translateY(0) scale(0.98);
}


#calcTelhasButton{
    background-color: var(--primary-color);
    color: var(--card-color);
}
#clearTelhasButton{
    background-color: var(--border-color);
}
#saveTelhasButton{
    background-color: var(--primary-dark);
    color: var(--card-color);
}

#mainTelhasEvincive{
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 3px solid var(--heading-color);

}

#telhasEvincive{
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
    width: 100%;
    max-width: 60rem;
    min-height: 20rem;
    font-weight: 300;
    font-family: "Roboto", sans-serif;
    padding: 1rem;

}

#evinciveTelhasTitle{
    color: var(--heading-color);
}

#evinciveTelhasImg{
    display: flex;
    justify-content: center;
    align-items: center;
}

#rules{
    gap: 1rem;
}
#infoTelhasImg{
    width: 15rem;
    max-width: 100%;
}

#dashTelhasHeader{
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
    padding-left: 1.8rem;
    width: 100%;
    height: 5rem;
    background: linear-gradient(135deg, #f0f8ff, #e5f2fb);
    min-width: 10rem;
    border-radius: 12px 12px 0px 0px;
}

#dashTelhasTitle{
    font-size: 1.3rem;
    color: var(--primary-color);
}

#dashTelhasSubTitle{
    font-size: 1.5rem;
    color: var(--heading-color);
}

#resultTelhasContent{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.2rem;
    text-align: center;
    gap: 1rem;
}

#resultTelhasContent.thereIsAResult{
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-top: 4%;
    font-weight: 400;
}

#resultTelhasContent.thereIsAResult ul{
    list-style: none;
}

.resultTelhasHeader{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    font-weight: 600;
    color: var(--background-color);
    font-family: "JetBrains Mono", monospace;
    height: 4rem;
    width: 20rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #1199e7 0%, var(--primary-color) 65%, var(--primary-dark) 100%);

}

.resultTelhasMainLine{
    display: grid;
    grid-template-columns: 1fr;
    width: 20rem;
    padding-bottom: 1rem;
    font-weight:500;
    font-size: 1rem;

}

.lineTelhasOne{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 20rem;
    border-bottom: 1px #667085 solid;
    padding: 0.2rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    font-weight:500;
    font-size: 1rem;
}

.lineTelhas{
    display: flex;
    justify-content: space-between;
    width: 20rem;
    border-bottom: 1px #667085 solid;
    padding: 0.2rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    font-weight:500;
    font-size: 1rem;
}

#resultTelhasHome{
    font-size: 3rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    padding-left: 1.8rem;
    padding-right: 1.8rem;
    background-color: rgba(213, 254, 255,0.70);
    border-radius: 60px;
}

#footerTelhasSection{
    display: flex;
    padding: 1rem;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 7px;
}
















@media (max-width:1217px) {
    article {
        grid-template-columns: 1fr;
    }



    #dashboardSection{
        min-height: 40vh;
    }

    #inputSection{
        min-height: 10vh;
    }
    }



@media (max-width:740px) {
    .lajeAreaInputs {
        grid-template-columns: 1fr 1fr;
    }

    .telhasAreaInputs {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width:600px) {
    .selectorButton {
        flex-shrink: 0;
        flex-grow: 0;
        flex-basis: calc(50% - 1rem);
    }

    #selectionButtons{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .lajeAreaInputs {
        grid-template-columns: 1fr;
    }

    .telhasAreaInputs {
        grid-template-columns: 1fr;
    }
    .newButton{
        width:100%;
        min-width: 0;
    }

    #saveButton {
        grid-column: 1 / -1;
    }

    article {
        grid-template-columns: 1fr;
    }

    #inputSection{
        grid-template-columns: 1fr;
    }

    #mainEvincive{
        grid-template-columns: 1fr;
    }

}
























/* =========================================================
   AJUSTES DE PRODUÇÃO
   ========================================================= */

.resultHeader,
.resultMainLine,
.lineOne,
.line {
    max-width: 100%;
}

#blocoSelect,
#telhasSelect {
    width: 100%;
}

@media (max-width: 740px) {
    .lajeAreaInputs,
    .blocoInputs,
    .telhasInputs {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    header {
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 1rem;
    }

    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #menuSection {
        padding-left: 0;
        padding-right: 0;
        gap: 0.75rem;
    }

    .selectorButton {
        flex-basis: calc(50% - 0.375rem);
        font-size: 1rem;
        gap: 0.5rem;
    }

    #inputSection,
    #inputLajeSection,
    #inputBlocoSection,
    #inputTelhasSection {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .lajeAreaInputs,
    .blocoInputs,
    .telhasInputs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .wallInput,
    .lajeInput,
    .blocoInput,
    .telhasInput {
        width: 100%;
        max-width: none;
    }

    #selectionButtons,
    #selectionLajeButtons,
    #selectionBlocoButtons,
    #selectionTelhasButtons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    #saveButton,
    #saveLajeButton,
    #saveBlocoButton,
    #saveTelhasButton {
        grid-column: 1 / -1;
    }

    #mainEvincive,
    #mainLajeEvincive,
    #mainBlocoEvincive,
    #mainTelhasEvincive {
        grid-template-columns: 1fr;
    }

    #infoSection,
    #infoLajeSection,
    #infoBlocoSection,
    #infoTelhasSection {
        padding: 1rem 1rem 0;
    }

    .resultHeader,
    .resultMainLine,
    .lineOne,
    .line {
        width: 100%;
    }

    #resultContent.thereIsAResult,
    #resultLajeContent.thereIsAResult,
    #resultBlocoContent.thereIsAResult,
    #resultTelhasContent.thereIsAResult {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }
}


/* LAJE IRREGULAR POR PAREDES - PRODUÇÃO */
.lajeModeSection {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(14rem, 0.65fr) 1.35fr;
    align-items: end;
    gap: 1rem;
    width: 100%;
    padding-bottom: 0.5rem;
}

.lajeModeField { width: 100%; }

.lajeModeHelp {
    color: var(--muted-color);
    font-size: 0.9rem;
    line-height: 1.4;
    padding-bottom: 0.8rem;
}

.irregularLajeFields {
    grid-column: 1 / -1;
    width: 100%;
}

.irregularLajeFields[hidden],
#regularLajeFields[hidden] { display: none !important; }

.polygonLajeSetup {
    display: grid;
    grid-template-columns: minmax(12rem, 0.65fr) 1.35fr;
    align-items: end;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.polygonAngleField small {
    color: var(--muted-color);
    font-size: 0.75rem;
}

.polygonInstructions {
    color: var(--heading-color);
    line-height: 1.4;
}

.polygonInstructions p {
    margin-top: 0.3rem;
    color: var(--muted-color);
    font-size: 0.88rem;
}

.irregularLajeHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.irregularLajeHeader p {
    margin-top: 0.25rem;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.irregularLajeActions {
    display: flex;
    gap: 0.65rem;
    flex: 0 0 auto;
}

.addLajeWallButton,
.closeLajeContourButton {
    width: auto;
    min-width: 8.5rem;
    padding: 0 1rem;
}

.addLajeWallButton {
    background-color: var(--primary-dark);
    color: var(--card-color);
}

.closeLajeContourButton {
    background-color: #eaf4fb;
    color: var(--primary-dark);
    border-color: #9fc8e6;
}

.polygonWorkspace {
    display: grid;
    grid-template-columns: minmax(19rem, 0.9fr) minmax(22rem, 1.35fr);
    gap: 1rem;
    align-items: start;
}

.wallEditorColumn {
    min-width: 0;
}

#lajeWalls {
    display: grid;
    gap: 0.75rem;
}

.lajeWallCard {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: end;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.8rem;
    background: #f8fbfe;
    box-shadow: var(--small-shadow);
}

.lajeWallCard[data-calculated="true"] {
    border-color: #74af91;
    background: #f4fbf7;
}

.lajeWallTitle {
    display: flex;
    min-width: 4rem;
    flex-direction: column;
    align-self: stretch;
    justify-content: space-between;
    color: var(--heading-color);
}

.lajeWallTitle > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.lajeWallTitle strong {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.05rem;
}

.wallCalculatedBadge {
    font-size: 0.62rem;
    text-transform: uppercase;
    color: #237f59;
    font-weight: 800;
}

.removeLajeWallButton {
    border: 0;
    background: transparent;
    color: #a12626;
    font-weight: 700;
    font-size: 0.72rem;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.polygonClosureStatus {
    margin-top: 0.8rem;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    line-height: 1.35;
    background: #f8fbfe;
    color: var(--muted-color);
}

.polygonClosureStatus.isClosed {
    background: #edf8f1;
    border-color: #9acdaf;
    color: #236640;
}

.polygonClosureStatus.isOpen {
    background: #fff7e8;
    border-color: #e1bd70;
    color: #785515;
}

.polygonClosureStatus.isIncomplete {
    background: #f8fbfe;
    color: var(--muted-color);
}

.polygonPreviewCard {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--small-shadow);
    overflow: hidden;
}

.polygonPreviewHeader {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--heading-color);
}

#polygonPreviewInfo {
    color: var(--muted-color);
    font-size: 0.8rem;
}

#lajePolygonPreview {
    display: block;
    width: 100%;
    min-height: 21rem;
    background: #f8fbfe;
    touch-action: none;
    user-select: none;
}

#lajePolygonPreview.isDragging { cursor: grabbing; }

.polygonPreviewGrid line {
    stroke: #e9eff5;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.polygonPreviewShape {
    fill: rgba(17, 153, 231, 0.10);
    stroke: none;
}

.polygonWallPreviewLine {
    stroke: var(--primary-dark);
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}

.polygonClosureGuide {
    stroke: #c38921;
    stroke-width: 2;
    stroke-dasharray: 7 5;
    vector-effect: non-scaling-stroke;
}

.polygonBeamPreviewLine {
    stroke: #237f59;
    stroke-width: 1.7;
    stroke-dasharray: 5 3;
    vector-effect: non-scaling-stroke;
}

.polygonPreviewVertex {
    fill: var(--primary-color);
    stroke: #ffffff;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.polygonPreviewAnchor {
    fill: var(--primary-dark);
}

.polygonPreviewDraggable {
    cursor: grab;
}

.polygonPreviewDraggable:hover {
    stroke: #0b4778;
    stroke-width: 4;
}

.polygonPreviewLabel,
.polygonWallPreviewLabel {
    fill: var(--heading-color);
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    pointer-events: none;
}

.polygonPreviewLabel { font-size: 12px; }

.polygonWallPreviewLabel {
    font-size: 10px;
    paint-order: stroke;
    stroke: #f8fbfe;
    stroke-width: 4px;
    stroke-linejoin: round;
}

.polygonPreviewHelp {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--muted-color);
    font-size: 0.8rem;
    line-height: 1.4;
}

.polygonPreviewHelp b { color: var(--primary-dark); }

.lajeResultNote {
    width: 100%;
    margin: 0.75rem 0;
    padding: 0.8rem;
    border-radius: var(--radius);
    background: #eef6fc;
    color: var(--primary-dark);
    font-size: 0.85rem;
    line-height: 1.4;
}

.polygonBeamList {
    width: 100%;
    margin-top: 0.75rem;
    border-top: 2px solid var(--border-color);
    padding-top: 0.75rem;
}

.polygonBeamList > strong {
    display: block;
    color: var(--heading-color);
    padding-bottom: 0.25rem;
}

.polygonBeamRow span:last-child {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
}

@media (max-width: 980px) {
    .polygonWorkspace { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
    .lajeModeSection,
    .polygonLajeSetup {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .lajeModeHelp { padding-bottom: 0; }
    .irregularLajeHeader { align-items: stretch; flex-direction: column; }
    .irregularLajeActions { width: 100%; }
    .addLajeWallButton,
    .closeLajeContourButton { flex: 1; min-width: 0; }
}

@media (max-width: 600px) {
    .irregularLajeActions { flex-direction: column; }

    .lajeWallCard { grid-template-columns: 1fr 1fr; }

    .lajeWallTitle {
        grid-column: 1 / -1;
        min-width: 0;
        flex-direction: row;
        align-items: center;
    }

    .removeLajeWallButton { text-align: right; }
    #lajePolygonPreview { min-height: 17rem; }
}

@media print {
    @page {
        margin: 1.2cm;
    }

    body {
        background: #fff !important;
    }

    header,
    #menuSection,
    #footerSection,
    #infoSection,
    #infoLajeSection,
    #infoBlocoSection,
    #infoTelhasSection {
        display: none !important;
    }

    main {
        padding: 0 !important;
    }

    .calculatorPage {
        display: none !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
    }

    .calculatorPage.active {
        display: block !important;
    }

    #dashboardSection,
    #dashboardLajeSection,
    #dashboardBlocoSection,
    #dashboardTelhasSection {
        box-shadow: none !important;
        border: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }

    #dashHeader {
        box-shadow: none !important;
    }

    #resultContent,
    #resultLajeContent,
    #resultBlocoContent,
    #resultTelhasContent,
    #resultContent.thereIsAResult,
    #resultLajeContent.thereIsAResult,
    #resultBlocoContent.thereIsAResult,
    #resultTelhasContent.thereIsAResult {
        display: flex !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 1rem 0 !important;
        text-align: left !important;
    }

    .resultHeader {
        width: 100% !important;
        color: #000 !important;
        background: none !important;
        border: 1px solid #000;
    }

    .resultMainLine,
    .lineOne,
    .line {
        width: 100% !important;
    }

    .lineOne,
    .line {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    button {
        display: none !important;
    }
}

/* Ajustes da laje irregular: fechamento automático e área na prévia */
.polygonAutomaticWall {
    stroke: #c38921;
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}

.polygonAutomaticWallLabel {
    fill: #8a5d12;
}

.polygonAreaBadge rect {
    fill: rgba(0, 59, 112, 0.92);
    stroke: #ffffff;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.polygonAreaBadge text {
    fill: #ffffff;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 800;
    pointer-events: none;
}


/* Ajuste do formulário de telhas: 4 campos em grade 2 x 2 no desktop. */
.telhasInputs .telhasInput {
    width: 100%;
    max-width: none;
}
.telhasInputs small {
    color: var(--muted-color);
    line-height: 1.3;
}
