/* Styles for the health tracker form */
.health-tracker-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fefefe;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.health-tracker-form h2 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #0073e6;
}

.health-tracker-form input[type="number"],
.health-tracker-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.health-tracker-form input[type="number"]:focus {
    border-color: #0073e6;
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.5);
}

.health-tracker-form input[type="submit"] {
    background-color: #0073e6;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
}

.health-tracker-form input[type="submit"]:hover {
    background-color: #005bb5;
}

/* Responsive adjustments for the form */
@media (max-width: 600px) {
    .health-tracker-form {
        padding: 15px;
    }

    .health-tracker-form input[type="number"],
    .health-tracker-form input[type="submit"] {
        font-size: 14px;
        padding: 10px;
    }
}

/* Styles for the data table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1.1em; /* Tamaño de fuente ligeramente más grande */
    font-weight: 600; /* Semi-negrita (semibold) para la fuente */
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

table th {
    background-color: #0073e6;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em; /* Asegura que se aplique a las celdas de encabezado */
}

table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 1.1em; /* Ajusta el tamaño de fuente en celdas de datos */
    font-weight: 600; /* Aplica semibold en celdas de datos */
}

/* Alternate row colors for better readability */
table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Responsive table styling for mobile devices */
@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    /* Hide table header on mobile */
    thead tr {
        display: none;
    }

    /* Styling for table rows on mobile */
    tr {
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Each cell displays as a row */
    td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        font-size: 1em; /* Ajuste para móvil */
    }

    /* Add column title before each cell value on mobile */
    td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #0073e6;
        margin-right: 10px;
    }
}