@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

body {
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    background-color: #1E1E1E;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

label {
    font-size: 1rem;
    font-weight: 500;
    color: #aaa;
}

input {
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: white;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

input:focus {
    border-color: #7c5cbf;
}

.form button {
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: none;
    background-color: #5f3bac;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.2rem;
}

button:hover {
    background-color: #4b1daf;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-overlay.aberto {
    display: flex;
}

.modal-box {
    position: relative;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem 2rem;
    width: 90%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    color: white;
}

.modal-box.abaixo-peso {
    background: #1a3a2a;
}

.modal-box.peso-normal {
    background: #1a3d1a;
}

.modal-box.sobrepeso {
    background: #3a3010;
}

.modal-box.obesidade {
    background: #3a1e10;
}

.fechar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0;
    padding: 0;
}

.fechar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-emoji {
    font-size: 3rem;
}

.modal-imc {
    font-size: 1.8rem; font-weight: 700;
}

.modal-resultado {
    font-size: 1rem; color: rgba(255,255,255,0.8);
}

