/* 健康自测插件前端样式 */

/* 容器样式 */
.health-assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 头部样式 */
.health-assessment-header {
    text-align: center;
    margin-bottom: 30px;
}

.health-assessment-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.health-assessment-header p {
    color: #666;
    margin-bottom: 20px;
}

.custom-id-input {
    margin-top: 20px;
}

.custom-id-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* 标签页样式 */
.health-assessment-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    background: #f5f5f5;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #e0e0e0;
}

.tab-button.active {
    background: #fff;
    border-bottom-color: #007cba;
    font-weight: bold;
}

/* 内容区域样式 */
.health-assessment-content {
    min-height: 400px;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* 表单样式 */
.assessment-form h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.assessment-form p {
    color: #666;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* 按钮样式 */
.submit-button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #005a8b;
}

.save-button {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.save-button:hover {
    background: #218838;
}

/* 结果容器样式 */
.result-container {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

.result-content p {
    margin-bottom: 10px;
}

.result-content strong {
    color: #333;
}

/* BMI图表样式 */
.bmi-chart {
    margin-top: 20px;
    height: 100px;
    background: linear-gradient(to right, #4caf50, #ffeb3b, #ff9800, #f44336);
    border-radius: 4px;
    position: relative;
}

/* 历史记录样式 */
.history-controls {
    margin-bottom: 20px;
}

.history-results {
    margin-top: 20px;
}

.history-results table {
    width: 100%;
    border-collapse: collapse;
}

.history-results th,
.history-results td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.history-results th {
    background: #f5f5f5;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .health-assessment-container {
        padding: 10px;
    }
    
    .health-assessment-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: 1px solid #ddd;
        border-radius: 0;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .history-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .history-controls button {
        width: 100%;
        margin-left: 0 !important;
    }
}

/* 与zhiji主题风格一致的样式 */
.health-assessment-container {
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-button {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.submit-button,
.save-button {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
}

.form-group input[type="number"],
.custom-id-input input {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
