* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

.modos {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    z-index: 1000;
    transition: transform 0.3s ease;
    background-color: rgba(255, 105, 180, 0.2);
    border: 2px solid #ff69b4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

:root {

    --bg-body: linear-gradient(135deg, #f7caca, #ffdab9);
    --container-bg: rgba(255, 255, 255, 0.85);
    --text-color: #880e4f;
    --title-color: #d81b60;
    --input-border: #fce4ec;
    --container-border: #ffffff;
    --select-background: #ffffff;
}

[data-theme="dark"] {
    --bg-body: linear-gradient(135deg, #1a1a2e, #16213e);
    --container-bg: rgba(26, 26, 46, 0.95);
    --text-color: #e1e1e1;
    --title-color: #ff69b4;
    --input-border: #0f3460;
    --container-border: #0f3460;
    --select-background: #1a1a2e;
}

body {
    background: var(--bg-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transition: background 0.4s ease;
}

.container {
    background-color: var(--container-bg);
    backdrop-filter: blur(5px); 
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    border: 2px solid var(--container-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 400px;
    padding: 30px 20px;
    margin: 20px;
    transition: all 0.4s ease;
}

h1 {
    color: var(--title-color); 
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 15px;
}

p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.informacoes {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px; 
    margin-bottom: 30px;
}

input, select {
    padding: 12px 15px;
    border: 2px solid var(--input-border);
    background-color: transparent;
    border-radius: 15px;
    outline: none;
    font-size: 1rem;
    color: var(--text-color);
    transition: 0.3s;
}

input:focus, select:focus {
    border-color: #ff69b4; 
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.2);
}

.input-group {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 12px;
    color: var(--text-color);
    pointer-events: none; 
    transition: all 0.3s ease;
    font-size: 1rem;
}


.input-group input:focus ~ label, 
.input-group input:not(:placeholder-shown) ~ label {
    top: -12px;
    left: 12px;
    font-size: 0.75rem;
    color: #ff69b4;
    background-color: var(--container-bg); 
    padding: 0 5px;
    font-weight: bold;
}

.selection, option {
    background-color: var(--select-background); 
    backdrop-filter: blur(10px);
}

button {
    background: linear-gradient(45deg, #ff69b4, #ffb6c1);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
    width: 100%;
}

button:hover {
    transform: scale(1.05); 
    background: linear-gradient(45deg, #ff1493, #ff69b4);
}

.resultados {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--input-border);
    width: 100%;
}

.resultados h2 {
    color: var(--title-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#bmiResult, #calorieResult {
    font-weight: 600;
    color: var(--text-color);
}

/* Responsividade para tablets */
@media (max-width: 768px) {
    .container {
        width: 90%;
        max-width: 90%;
        padding: 20px 15px;
        margin: 10px;
    }

    h1 {
        font-size: 1.3rem;
    }

    p {
        font-size: 0.85rem;
    }

    input, select {
        padding: 10px 12px;
        font-size: 16px;
    }

    button {
        padding: 12px;
        font-size: 0.95rem;
    }

    .modos {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }
}

/* Responsividade para celulares pequenos */
@media (max-width: 480px) {
    .container {
        width: 95%;
        max-width: 100%;
        padding: 15px 12px;
        margin: 10px 5px;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    p {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .informacoes {
        gap: 12px;
        margin-bottom: 20px;
    }

    input, select {
        padding: 10px 12px;
        font-size: 16px;
        border-radius: 12px;
    }

    .input-group label {
        left: 12px;
        top: 10px;
    }

    .input-group input:focus ~ label, 
    .input-group input:not(:placeholder-shown) ~ label {
        top: -10px;
        left: 10px;
        font-size: 0.7rem;
    }

    button {
        padding: 10px;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    button:hover {
        transform: scale(1.02);
    }

    .resultados {
        margin-top: 15px;
        padding-top: 15px;
    }

    .resultados h2 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    #bmiResult, #calorieResult {
        font-size: 0.9rem;
    }

    .modos {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
        font-size: 1.2rem;
    }
}