/* style.css 檔案內容 */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 20px auto;
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.header .welcome {
    font-size: 1.1em;
    color: #555;
}

.header .logout a {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
}

.header .logout a:hover {
    text-decoration: underline;
}

.nav-links {
    margin-bottom: 20px;
    text-align: center;
}

.nav-links a {
    margin: 0 10px;
    color: #FFEA00;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    text-decoration: underline;
}

.form-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-section input[type="text"],
.form-section input[type="number"],
.form-section select {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-section button {
    padding: 12px 20px;
    background-color: #FFEA00;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-section button:hover {
    background-color: #FFEA00;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #FFEA00;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.stats-section, .records-section {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.stats-section p, .records-section ul {
    font-size: 1.1em;
    line-height: 1.6;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    color: #333;
}

.bmi-advice { /* 建議文字的樣式 */
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* 不同 BMI 範圍的顏色指示 (可選) */
.bmi-underweight {
    color: #ffc107; /* 黃色 */
    font-weight: bold;
}

.bmi-normal {
    color: #28a745; /* 綠色 */
    font-weight: bold;
}

.bmi-overweight {
    color: #fd7e14; /* 橙色 */
    font-weight: bold;
}

.bmi-obesity {
    color: #dc3545; /* 紅色 */
    font-weight: bold;
}


@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    .form-section input[type="text"],
    .form-section input[type="number"],
    .form-section select {
        width: calc(100% - 20px);
    }
}





        body {
            font-family: Arial, sans-serif;
            background-color: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
            box-sizing: border-box;
        }
        .register-container {
            background-color: #fff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 450px;
            text-align: center;
        }
        h2 {
            color: #333;
            margin-bottom: 30px;
        }
        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #555;
        }
        .form-group input[type="text"],
        .form-group input[type="password"],
        .form-group select {
            width: calc(100% - 22px);
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        .form-group input[type="text"]:focus,
        .form-group input[type="password"]:focus,
        .form-group select:focus {
            border-color: #FFEA00;
            outline: none;
            box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
        }
        .btn {
            width: 100%;
            padding: 12px;
            background-color: #FFEA00;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 18px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .btn:hover {
            background-color: #FFEA00;
        }
        .error-message {
            color: #dc3545;
            margin-top: 5px;
            font-size: 0.9em;
            display: block;
        }
        .success-message {
            color: #FFEA00;
            margin-bottom: 20px;
            font-weight: bold;
        }
        .link {
            margin-top: 20px;
            color: #FFEA00;
            text-decoration: none;
            font-weight: bold;
        }
        .link:hover {
            text-decoration: underline;
        }
    





    
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
        }
        .login-container {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            width: 350px;
            text-align: center;
        }
        .login-container h2 {
            margin-bottom: 20px;
            color: #333;
        }
        .login-container input[type="text"],
        .login-container input[type="password"] {
            width: calc(100% - 20px);
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        .login-container button {
            width: 100%;
            padding: 12px;
            background-color: #FFEA00;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 18px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .login-container button:hover {
            background-color: #FFEA00;
        }
        .error-message {
            color: red;
            margin-top: 10px;
        }
        .register-link {
            margin-top: 20px;
            font-size: 1em;
        }
        .register-link a {
            color: #FFEA00;
            text-decoration: none;
        }
        .register-link a:hover {
            text-decoration: underline;
        }