*{
    box-sizing:border-box;
}

/* BODY */

body{
    margin:0;
    font-family:'Poppins', sans-serif;
    transition:0.3s;

    background:linear-gradient(-45deg,#f4f4f4,#e8f5e9,#e3f2fd,#f4f4f4);
    background-size:400% 400%;
    animation:gradientMove 15s ease infinite;
}

/* HEADER */

header{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px 40px;
    background:white;
    border-bottom:1px solid #ddd;
    height:70px;
}

header h1{
    margin:0;
    font-weight:600;
}

.theme-btn{
    position:absolute;
    right:40px;
    width:35px;
    height:35px;
    border-radius:50%;
    border:none;
    cursor:pointer;
}

/* AREA CENTRAL */

main{
    margin-top:40px;
    display:flex;
    justify-content:center;
}

.container{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
}

/* CAIXA DA CALCULADORA */

.calculator{
    background:white;
    padding:40px;
    border-radius:10px;
    width:90%;
    max-width:400px;
    box-shadow:0px 5px 15px rgba(0,0,0,0.1);
}

.calculator h2{
    margin-top:0;
    margin-bottom:25px;
    text-align:center;
    font-weight:600;
    letter-spacing:1px;
}
/* GUIA DO USUÁRIO */

/* GUIA */

.guia{
    margin-top:60px;
    padding:40px;
    max-width:800px;
    margin-left:auto;
    margin-right:auto;
}

.guia h2{
    text-align:center;
    margin-bottom:30px;
}

.guia-item{
    background:white;
    padding:20px;
    border-radius:8px;
    margin-bottom:15px;
    box-shadow:0px 3px 10px rgba(0,0,0,0.1);
}

.guia-item h3{
    margin-top:0;
}

/* BOTÃO DO GUIA */

.help-link{
    width:100%;
    margin-bottom:15px;
    padding:10px;
    border:none;
    border-radius:6px;
    background:#2196F3;
    color:white;
    cursor:pointer;
}

/* CONFIGURAÇÕES */

.config{
    display:flex;
    gap:20px;
    margin-bottom:20px;
}

.config-item{
    flex:1;
    display:flex;
    flex-direction:column;
}

.config-item label{
    font-size:14px;
    margin-bottom:5px;
    color:#555;
}

.config-item select{
    padding:8px;
    border-radius:5px;
    border:1px solid #ccc;
}

/* INPUTS */

.inputs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-bottom:15px;
}

.inputs input{
    width:100%;
    padding:10px;
    border-radius:5px;
    border:1px solid #ccc;
    font-size:14px;
}

/* BOTÃO */

.calculator button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:6px;
    background:#4CAF50;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:0.2s;
}

.calculator button:hover{
    background:#43a047;
}

/* RESULTADO */

.result{
    margin-top:25px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.result-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#f5f5f5;
    padding:12px 15px;
    border-radius:8px;
    font-size:16px;
}

.result-label{
    font-weight:500;
    color:#666;
}

.result-value{
    font-size:22px;
    font-weight:600;
    font-family:'JetBrains Mono', monospace;
}

.result-status{
    text-align:center;
    padding:12px;
    border-radius:8px;
    font-weight:600;
}

/* DARK MODE */

body.dark{
    background:linear-gradient(-45deg,#1e1e1e,#252525,#2a2a2a,#1e1e1e);
    background-size:400% 400%;
}

body.dark header{
    background:#2a2a2a;
    border-bottom:1px solid #444;
    color:white;
}

body.dark .calculator{
    background:#2a2a2a;
    color:white;
}

body.dark input,
body.dark select{
    background:#3a3a3a;
    color:white;
    border:1px solid #555;
    color-scheme:dark;
}

body.dark .config-item label{
    color:#ccc;
}

body.dark .result-card{
    background:#3a3a3a;
}

body.dark .result-label{
    color:#bbb;
}

body.dark .result-value{
    color:white;
}

body.dark .result-status{
    background:#3a3a3a;
    color:white;
}
body.dark .guia-item {
    background:#2a2a2a;
    color:white;
}
body.dark .guia h2{
    color:white;
}

/* PARTICLES BACKGROUND */

#particles-js{
    position:fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    z-index:-1;
}

/* RESPONSIVO */

@media (max-width:600px){

    header{
        padding:15px 20px;
        height:auto;
    }

    header h1{
        font-size:20px;
        text-align:center;
    }

    .theme-btn{
        right:20px;
        width:32px;
        height:32px;
    }

    main{
        margin-top:20px;
        padding:0 10px;
    }

    .calculator{
        padding:25px;
    }

    .inputs{
        grid-template-columns:1fr;
    }

}