/* ============================
   CarePredict - 扁平风格样式表
   ============================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background: #f0f2f5;
  line-height: 1.5;
}

a {
  color: #3498db;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- App Container --- */
#app {
  min-height: 100vh;
}

/* --- Page Container (for transitions) --- */
#page-content {
  position: relative;
}

/* --- Page Transition Animations --- */
.page-exit {
  animation: squeezeOut 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform-origin: center center;
}

.page-enter {
  animation: squeezeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform-origin: center center;
}

@keyframes squeezeOut {
  0%   { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}

@keyframes squeezeIn {
  0%   { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}

/* --- Top Header --- */
.top-header {
  background: #2c3e50;
  color: #fff;
  padding: 0 40px;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-header h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}
.nav-link.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 600;
}

.btn-logout {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  margin-left: 8px;
  transition: background 0.2s, color 0.2s;
}
.btn-logout:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
}

.btn-login-header {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 6px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  margin-left: 8px;
  transition: background 0.2s;
}
.btn-login-header:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }
  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- Main Content Layout --- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* --- Cards --- */
.card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 20px;
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}
.card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.card-body {
  padding: 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-primary {
  background: #3498db;
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: #2980b9;
  opacity: 1;
}

.btn-success {
  background: #27ae60;
  color: #fff;
}
.btn-success:hover:not(:disabled) {
  background: #219a52;
  opacity: 1;
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
}
.btn-danger:hover:not(:disabled) {
  background: #c0392b;
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: #3498db;
  border: 2px solid #3498db;
}
.btn-outline:hover:not(:disabled) {
  background: #3498db;
  color: #fff;
  opacity: 1;
}

.btn-secondary {
  background: #95a5a6;
  color: #fff;
}
.btn-secondary:hover:not(:disabled) {
  background: #7f8c8d;
  opacity: 1;
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: #555;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52,152,219,0.15);
}
.form-control:disabled {
  background: #e9ecef;
  cursor: not-allowed;
}

select.form-control {
  appearance: auto;
}

/* --- Loading Spinner --- */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #dee2e6;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state {
  text-align: center;
  padding: 80px 20px;
}
.loading-state p {
  color: #6c757d;
  font-size: 14px;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}
.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.empty-state h2 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 8px;
}
.empty-state p {
  color: #6c757d;
  margin-bottom: 20px;
}

/* --- Error Message --- */
.error-message {
  padding: 10px 16px;
  background: #fde8e8;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #c0392b;
  font-size: 14px;
  text-align: center;
}

/* --- Risk Badges --- */
.risk-low {
  background: #d4edda;
  color: #155724;
}
.risk-medium {
  background: #fff3cd;
  color: #856404;
}
.risk-high {
  background: #f8d7da;
  color: #721c24;
}

/* ============================
   Login Page
   ============================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2c3e50;
  padding: 20px;
}

.login-box {
  background: #fff;
  border-radius: 6px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-header h1 {
  color: #2c3e50;
  font-size: 28px;
  margin-bottom: 6px;
}
.login-header p {
  color: #6c757d;
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.btn-submit:hover:not(:disabled) {
  background: #2980b9;
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-footer {
  text-align: center;
  font-size: 14px;
  color: #6c757d;
}
.form-footer a {
  color: #3498db;
  font-weight: 600;
  margin-left: 4px;
}

.analysis-link {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dee2e6;
  text-align: center;
}
.btn-analysis {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-analysis:hover {
  background: #c0392b;
  color: #fff;
  text-decoration: none;
}
.link-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #95a5a6;
}

/* ============================
   Dashboard Page
   ============================ */
.dashboard-page {
  min-height: 100vh;
  background: #f0f2f5;
}

.welcome-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 36px;
}
.welcome-card h2 {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 8px;
}
.welcome-card > p {
  color: #6c757d;
  margin-bottom: 28px;
}

.disease-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.disease-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 2px solid #e9ecef;
  cursor: pointer;
  transition: all 0.3s ease;
}
.disease-card:hover {
  border-color: #3498db;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
  transform: translateY(-2px);
}
.disease-card .disease-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}
.disease-card h3 {
  font-size: 15px;
  color: #2c3e50;
  font-weight: 600;
  margin: 0 0 6px 0;
}
.disease-card p {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
}

.feature-list {
  display: none;
}
.feature-item {
  display: none;
}

.health-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #e8f5e9 0%, #f3e5f5 100%);
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #27ae60;
}

.tip-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.tip-content h4 {
  margin: 0 0 6px 0;
  color: #2c3e50;
  font-size: 15px;
}

.tip-content p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ============================
   Predict Page
   ============================ */
.predict-page {
  min-height: 100vh;
  background: #f0f2f5;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.info-item label {
  display: block;
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 4px;
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.form-item label {
  display: block;
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 4px;
  font-weight: 500;
}

.form-actions {
  display: flex;
  justify-content: center;
}

/* Prediction Results */
.predictions-section {
  margin-bottom: 20px;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 14px 0;
}

.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

/* Risk Factors Charts */
.risk-factors-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.risk-factor-chart-item {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-sizing: border-box;
}

.risk-factor-chart-item h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.risk-factor-chart-wrapper {
  width: 100%;
  max-width: 240px;
  height: 200px;
  margin: 0 auto;
  position: relative;
}

.risk-factor-chart {
  width: 100% !important;
  height: 200px !important;
}

.prediction-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 16px;
  animation: slideUp 0.35s ease-out forwards;
  opacity: 0;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pred-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pred-header .pred-icon {
  font-size: 24px;
}
.pred-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
}

.pred-body {
  font-size: 14px;
  color: #555;
}

.risk-level {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
}

.pred-description {
  margin: 8px 0;
  line-height: 1.5;
}

.risk-factors {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dee2e6;
}
.risk-factors strong {
  display: block;
  margin-bottom: 4px;
  color: #444;
  font-size: 13px;
}
.risk-factors ul {
  margin: 0;
  padding-left: 18px;
  color: #6c757d;
  font-size: 13px;
}
.risk-factors li {
  margin: 3px 0;
}

/* AI Advice */
.advice-content {
  line-height: 1.8;
  color: #444;
  font-size: 14px;
}
.advice-content h1,
.advice-content h2,
.advice-content h3 {
  margin: 14px 0 6px;
  color: #2c3e50;
}
.advice-content p {
  margin: 6px 0;
}
.advice-content ul,
.advice-content ol {
  margin: 6px 0;
  padding-left: 22px;
}
.advice-content li {
  margin: 3px 0;
}
.advice-content strong {
  color: #27ae60;
}

/* ============================
   History Page
   ============================ */
.history-page {
  min-height: 100vh;
  background: #f0f2f5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #3498db;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: #6c757d;
}

.chart-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 20px;
}

.disease-charts-section {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 20px;
}
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  padding: 16px;
}

.disease-chart-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 14px;
}
.disease-chart-card .chart-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 12px 0;
  text-align: center;
}
.chart-container {
  position: relative;
  height: 220px;
  width: 100%;
}

.chart-assessment {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.assessment-trend {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.assessment-trend.trend-up {
  background: #f8d7da;
  color: #721c24;
}

.assessment-trend.trend-down {
  background: #d4edda;
  color: #155724;
}

.assessment-trend.trend-stable {
  background: #fff3cd;
  color: #856404;
}

.assessment-advice {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  padding: 8px 10px;
  background: #fff;
  border-radius: 3px;
  border-left: 3px solid #3498db;
}

/* Records List */
.records-list {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 20px;
}

.record-item {
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 12px;
  transition: background 0.2s;
}
.record-item:hover {
  background: #f8f9fa;
}
.record-item:last-child {
  margin-bottom: 0;
}

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.record-info {
  flex: 1;
}
.record-date {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}
.record-metrics {
  display: block;
  font-size: 13px;
  color: #6c757d;
}

.btn-delete {
  padding: 4px 10px;
  background: #fde8e8;
  color: #e74c3c;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 10px;
}
.btn-delete:hover {
  background: #f8d7da;
}

.record-diseases {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.disease-tag {
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.record-advice {
  padding-top: 10px;
  border-top: 1px solid #dee2e6;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.record-advice strong {
  color: #27ae60;
}
.record-advice p {
  margin: 4px 0 0;
}

/* ============================
   Training Analysis Page
   ============================ */
.analysis-page {
  min-height: 100vh;
  background: #f0f2f5;
}
.analysis-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.analysis-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 14px;
}

.column-wide {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.column-narrow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chart-section {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 14px;
}
.chart-section h3 {
  margin: 0 0 10px;
  color: #2c3e50;
  font-size: 15px;
  font-weight: 600;
}
.chart-section.small-chart {
  padding: 10px;
}

/* Tab Container */
.tab-container {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid #e9ecef;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: #f8f9fa;
  color: #3498db;
}

.tab-btn.active {
  background: #3498db;
  color: #fff;
}

.tab-content {
  padding: 15px;
}

.tab-panel {
  display: none;
}

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

/* Grid Layouts */
.overview-grid, .features-grid, .analysis-grid {
  display: grid;
  gap: 14px;
}

.overview-grid, .features-grid {
  grid-template-columns: repeat(2, 1fr);
}

.analysis-grid {
  grid-template-columns: repeat(2, 1fr);
}

.chart-section.wide {
  grid-column: span 2;
}

/* Word Cloud */
.word-cloud {
  position: relative;
  width: 100%;
  height: 250px;
}

.word-cloud-item {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.word-cloud-item:hover {
  transform: translate(-50%, -50%) scale(1.2) !important;
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.chart-wrapper {
  width: 100%;
  height: 280px;
}
.chart-wrapper.small {
  height: 120px;
}

.chart-description {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.chart-description p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0;
  padding: 8px 10px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #3498db;
}

.chart-description.small p {
  font-size: 12px;
  padding: 6px 8px;
  margin-top: 8px;
}

.chart-section h4 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: 1fr 1fr;
  }
  .column-narrow {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .analysis-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-layout {
    grid-template-columns: 1fr;
  }
  .column-narrow {
    grid-template-columns: 1fr;
  }
  .main-content {
    padding: 16px;
  }
  .analysis-content {
    padding: 14px;
  }
  .login-box {
    padding: 24px;
  }
  .welcome-card {
    padding: 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================
   BMI Calculator Page
   ============================ */
.bmi-calculator-page {
  min-height: 100vh;
}

.calculator-form {
  max-width: 400px;
  margin: 0 auto;
}

.calculator-form .form-group {
  margin-bottom: 16px;
}

.calculator-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  margin-bottom: 6px;
}

.calculator-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.calculator-form .form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.result-card {
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: #fff;
  text-align: center;
}

.result-header h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
}

.bmi-value {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bmi-category {
  margin-bottom: 16px;
}

.bmi-category .badge {
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 20px;
}

.bmi-advice {
  text-align: left;
  background: rgba(255, 255, 255, 0.15);
  padding: 16px;
  border-radius: 8px;
}

.bmi-advice h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.bmi-advice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.bmi-chart {
  margin-bottom: 20px;
}

.bmi-bar {
  display: flex;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
}

.bmi-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.bmi-segment.underweight {
  background: #3498db;
}

.bmi-segment.normal {
  background: #27ae60;
}

.bmi-segment.overweight {
  background: #f39c12;
}

.bmi-segment.obese {
  background: #e74c3c;
}

.bmi-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #6c757d;
}

.bmi-table {
  margin-top: 16px;
}

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

.bmi-table .table th,
.bmi-table .table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.bmi-table .table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.bmi-table .badge {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-info {
  background: #17a2b8;
}

.badge-success {
  background: #28a745;
}

.badge-warning {
  background: #ffc107;
  color: #212529;
}

.badge-danger {
  background: #dc3545;
}
