/* Tab Navigation Styles - Removed conflicting styles to use layout.css */
/* Tab styles are now handled in layout.css for consistent fixed layout */

/* Bradley Health - Comprehensive Component Styles */

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== FIELDSET STYLES ===== */
fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin: 0;
  background: transparent;
}

legend {
  font-weight: 500;
  color: #374151;
  padding: 0 8px;
  font-size: 14px;
}

/* ===== WOMEN'S HEALTH STYLES ===== */
.womens-health-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.womens-health-overview .health-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.womens-health-overview .metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.womens-health-overview .metric-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.womens-health-overview .metric-label {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 5px;
}

.womens-health-overview .metric-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
}

/* Menstrual Cycle Tracking */
.menstrual-form .checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-label:hover {
  background: #e2e8f0;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
}

/* Cycle Calendar */
.calendar-container {
  margin-top: 20px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 10px;
}

.calendar-header {
  text-align: center;
  font-weight: 600;
  color: #475569;
  padding: 10px 5px;
  background: #e2e8f0;
  border-radius: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-day:hover {
  background: #f1f5f9;
}

.calendar-day.today {
  background: #dbeafe;
  border: 2px solid #3b82f6;
}

.calendar-day.cycle-period-start {
  background: #fecaca;
  color: #dc2626;
}

.calendar-day.cycle-period-end {
  background: #fed7d7;
  color: #e53e3e;
}

.calendar-day.cycle-ovulation {
  background: #fef3c7;
  color: #d97706;
}

.calendar-day.cycle-spotting {
  background: #fce7f3;
  color: #be185d;
}

.cycle-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.8rem;
}

/* Reproductive Health */
.reproductive-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.reproductive-section {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.reproductive-section h3 {
  margin-bottom: 15px;
  color: #1e293b;
  font-size: 1.1rem;
}

/* Breast Health */
.breast-health-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.breast-section {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.breast-section h3 {
  margin-bottom: 15px;
  color: #1e293b;
  font-size: 1.1rem;
}

.reminder-info {
  text-align: center;
}

.reminder-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

/* Gynecological Health */
.gyn-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gyn-section {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.gyn-section h3 {
  margin-bottom: 15px;
  color: #1e293b;
  font-size: 1.1rem;
}

/* Hormonal Health */
.hormonal-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.hormonal-section {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.hormonal-section h3 {
  margin-bottom: 15px;
  color: #1e293b;
  font-size: 1.1rem;
}

/* Preventive Care */
.preventive-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.preventive-section {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.preventive-section h3 {
  margin-bottom: 15px;
  color: #1e293b;
  font-size: 1.1rem;
}

/* Hormonal Mood Tracking */
.hormonal-mood {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
}

.hormonal-mood-info {
  text-align: center;
}

.mood-link-actions {
  margin-top: 20px;
}

.mood-link-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  font-size: 1.2rem;
}

.mood-link-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
}

/* History Display */
.history-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.history-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.history-category {
  font-weight: 600;
  color: #3b82f6;
  font-size: 0.9rem;
}

.history-date {
  color: #6b7280;
  font-size: 0.9rem;
}

.history-content {
  color: #374151;
}

.cycle-event, .reproductive-event, .breast-event, .gyn-event, .hormonal-event, .preventive-event {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.flow-intensity, .basal-temp, .cervical-mucus, .result, .weight, .tsh, .provider, .next-due {
  display: inline-block;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 5px;
  margin-bottom: 5px;
}

.symptoms, .notes {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 5px;
}

.no-data {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 40px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .womens-health-container {
    padding: 10px;
  }
  
  .womens-health-overview .health-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .reproductive-sections,
  .breast-health-sections,
  .gyn-sections,
  .hormonal-sections,
  .preventive-sections {
    grid-template-columns: 1fr;
  }
  
  .menstrual-form .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calendar-grid {
    gap: 1px;
    padding: 5px;
  }
  
  .calendar-day {
    font-size: 0.8rem;
  }
  
  .reminder-actions {
    flex-direction: column;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== AUTHENTICATION STYLES ===== */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h1 {
  color: #667eea;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.auth-header .tagline {
  color: #3b82f6;
  margin-bottom: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
}

.auth-header p {
  color: #666;
  font-size: 1.1rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #f0f0f0;
}

.auth-tab {
  flex: 1;
  padding: 15px;
  border: none;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.auth-tab.active {
  background: #667eea;
  color: white;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

/* ===== FORGOT PASSWORD STYLES ===== */
.forgot-password-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-block;
  margin-top: 8px;
}

.forgot-password-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

#forgotPasswordForm h3 {
  color: #1f2937;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
}

#forgotPasswordForm p {
  color: #6b7280;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

/* ===== APP CONTAINER ===== */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: white;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content h1 {
  color: #667eea;
  font-size: 2rem;
  margin-bottom: 5px;
}

.header-content p {
  color: #666;
  font-size: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ===== TAB NAVIGATION ===== */
/* Tab styles are now handled in layout.css for consistent fixed layout */

/* ===== TAB CONTENT ===== */
.tab-content {
  display: none;
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

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

/* ===== DASHBOARD STYLES ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card h2 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== HEALTH OVERVIEW ===== */
.health-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.metric {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.metric-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.metric-label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
}

/* ===== QUICK ACTIONS ===== */
.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.action-btn:hover {
  border-color: #667eea;
  background: #f8f9fa;
  transform: translateY(-2px);
}

.action-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ===== CHARTS ===== */
.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 1rem 0;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.bp-chart-section,
.medication-chart-section {
  margin-top: 1rem;
}

.bp-chart-section .chart-container,
.medication-chart-section .chart-container {
  height: 250px;
}

/* ===== ALERTS ===== */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 10px;
  background: #f8f9fa;
  border-left: 4px solid #667eea;
}

.alert-item.warning {
  border-left-color: #f59e0b;
  background: #fef3c7;
}

.alert-item.error {
  border-left-color: #ef4444;
  background: #fee2e2;
}

.alert-item.success {
  border-left-color: #10b981;
  background: #d1fae5;
}

.alert-icon {
  font-size: 1.2rem;
  margin-right: 10px;
}

/* ===== BLOOD PRESSURE STYLES ===== */
.bp-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.bp-display {
  text-align: center;
  margin: 20px 0;
}

.bp-value {
  font-size: 3rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 10px;
}

.systolic, .diastolic {
  display: inline-block;
}

.separator {
  margin: 0 10px;
  color: #666;
}

.bp-unit {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
}

.bp-status {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.bp-status.normal {
  background: #d1fae5;
  color: #065f46;
}

.bp-status.elevated {
  background: #fef3c7;
  color: #92400e;
}

.bp-status.high {
  background: #fee2e2;
  color: #991b1b;
}

.reading-time {
  color: #666;
  font-size: 0.9rem;
  text-align: center;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ===== BUTTON STYLES ===== */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f8f9fa;
  color: #333;
  border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
  background: #e9ecef;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ===== MEDICATION STYLES ===== */
.medications-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.med-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.medication-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid #667eea;
}

.med-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.med-header h3 {
  color: #333;
  font-size: 1.2rem;
}

.med-actions {
  display: flex;
  gap: 10px;
}

.med-details {
  margin-bottom: 15px;
}

.med-details p {
  margin-bottom: 8px;
  color: #666;
}

.med-status {
  text-align: right;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.completed {
  background: #e0e7ff;
  color: #3730a3;
}

/* ===== MOOD STYLES ===== */
.mood-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.mood-buttons {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.mood-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 2rem;
}

.mood-btn:hover {
  border-color: #667eea;
  transform: scale(1.05);
}

.mood-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mood-entry-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
}

.mood-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.mood-score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mood-emoji {
  font-size: 2rem;
}

.mood-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
}

.mood-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.metric {
  text-align: center;
  padding: 10px;
  background: white;
  border-radius: 8px;
}

.metric-label {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 5px;
}

.metric-value {
  font-weight: bold;
  color: #333;
}

/* ===== GOALS STYLES ===== */
.goals-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.goal-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.goal-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid #667eea;
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.goal-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.goal-category {
  padding: 4px 12px;
  background: #667eea;
  color: white;
  border-radius: 15px;
  font-size: 0.8rem;
}

.goal-progress {
  margin: 15px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #667eea;
  transition: width 0.3s ease;
}

/* ===== LIMB CARE STYLES ===== */
.limb-care-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.limb-config-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
}

.limb-config-section h3 {
  color: #495057;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}

.limb-types-container {
  margin-top: 15px;
}

.limb-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.limb-assessments-container {
  margin-top: 20px;
}

.limb-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
}

.limb-section h3 {
  color: #495057;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}

.limb-summary {
  background: white;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid #007bff;
}

.limb-summary strong {
  color: #495057;
}

.limb-summary em {
  color: #6c757d;
  font-style: italic;
}

.history-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #007bff;
  transition: transform 0.2s ease;
}

.history-item:hover {
  transform: translateY(-2px);
}

.history-item.assessment {
  border-left-color: #28a745;
}

.history-item.prosthetic {
  border-left-color: #ffc107;
}

.history-item.pain {
  border-left-color: #dc3545;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

.history-type {
  font-weight: 600;
  color: #495057;
}

.history-date {
  font-size: 0.9rem;
  color: #6c757d;
}

.history-content {
  color: #495057;
}

.history-content div {
  margin-bottom: 6px;
}

.history-content strong {
  color: #495057;
}

.history-content em {
  color: #6c757d;
  font-style: italic;
}

/* Pain level slider styling */
input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e9ecef;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#painLevelValue {
  display: inline-block;
  margin-left: 10px;
  font-weight: 600;
  color: #007bff;
  min-width: 20px;
}

.setup-message {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  color: #856404;
}

.setup-message p {
  margin: 0;
  font-weight: 500;
}

/* ===== PROFILE STYLES ===== */
.profile-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.profile-form,
.emergency-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.setting-group {
  margin-bottom: 30px;
}

.setting-group h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
  border-bottom: none;
}

/* Height Input Group Styles */
.height-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.height-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.height-field input {
  width: 60px;
  text-align: center;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.height-field label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

/* Responsive height input */
@media (max-width: 480px) {
  .height-input-group {
    gap: 5px;
  }
  
  .height-field input {
    width: 50px;
    font-size: 12px;
  }
  
  .height-field label {
    font-size: 11px;
  }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #667eea;
  min-width: 300px;
  animation: slideIn 0.3s ease;
}

.toast-success {
  border-left-color: #10b981;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-warning {
  border-left-color: #f59e0b;
}

.toast-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  margin-left: 10px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .auth-container {
    padding: 30px 20px;
  }
  
  .app-header {
    padding: 15px 20px;
  }
  
  .tab-content {
    padding: 15px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .bp-container,
  .medications-container,
  .mood-container,
  .goals-container,
  .profile-container {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    grid-template-columns: 1fr;
  }
  
  .health-metrics {
    grid-template-columns: 1fr;
  }
  
  .mood-buttons {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .mood-btn {
    flex: 1;
    min-width: 80px;
  }
  
  .toast-container {
    left: 20px;
    right: 20px;
  }
  
  .toast {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 20px 15px;
  }
  
  .card {
    padding: 20px;
  }
  
  .bp-value {
    font-size: 2.5rem;
  }
  
  .action-buttons {
    grid-template-columns: 1fr;
  }
  
  .health-metrics {
    grid-template-columns: 1fr;
  }
  
  .mood-buttons {
    flex-direction: column;
  }
}

/* ===== UTILITY CLASSES ===== */
.no-data {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 40px 20px;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.dashboard-grid .card {
  min-height: 200px;
}

.charts-section,
.bp-chart-section,
.medication-chart-section {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .charts-section,
  .bp-chart-section,
  .medication-chart-section {
    grid-column: span 1;
  }
  
  .chart-container {
    height: 250px;
  }
}

/* ===== SETTINGS & LEGAL STYLES ===== */
.settings-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-secondary);
}

.setting-item label {
  font-weight: 500;
  margin: 0;
}

.toggle {
  width: 50px;
  height: 24px;
  background-color: var(--gray-300);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  appearance: none;
  transition: background-color var(--transition-fast);
}

.toggle:checked {
  background-color: var(--primary-color);
}

.toggle::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform var(--transition-fast);
}

.toggle:checked::before {
  transform: translateX(26px);
}

/* ===== LEGAL STYLES ===== */
.legal-links {
  margin-bottom: 20px;
}

.legal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-link {
  color: var(--primary-color);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-link:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.legal-link:active {
  transform: translateX(5px) scale(0.98);
}

/* HIPAA Compliance Link Styling */
.legal-link[onclick*="HIPAA"] {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  font-weight: 600;
  border: 2px solid #4CAF50;
  position: relative;
  overflow: hidden;
}

.legal-link[onclick*="HIPAA"]::before {
  content: "🛡️";
  font-size: 1.2rem;
}

.legal-link[onclick*="HIPAA"]:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  border-color: #45a049;
  transform: translateX(5px) scale(1.02);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.legal-link[onclick*="HIPAA"]:active {
  transform: translateX(5px) scale(0.98);
}

/* Legal Modal Content Styling */
.legal-content h3 {
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.legal-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--text-primary);
}

.legal-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* HIPAA-specific styling in modal */
.legal-content h2:contains("HIPAA") {
  color: #4CAF50;
}

/* Responsive legal links */
@media (max-width: 768px) {
  .legal-options {
    gap: 8px;
  }
  
  .legal-link {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .legal-link[onclick*="HIPAA"]::before {
    font-size: 1rem;
  }
}

/* ===== PWA INSTALLATION PROMPT ===== */
.pwa-install-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 12px;
  max-width: 280px;
  width: auto;
  z-index: 1000;
  animation: slideUp 0.3s ease-out;
  border: 1px solid #e5e7eb;
}

.pwa-prompt-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-prompt-icon {
  flex-shrink: 0;
}

.pwa-prompt-icon img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}

.heart-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  position: relative;
  overflow: hidden;
}

.heart-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 1px;
  box-shadow: 
    -8px -8px 0 0 white,
    8px -8px 0 0 white,
    -4px -4px 0 0 white,
    4px -4px 0 0 white;
}

.install-instructions {
  margin-top: 8px;
  padding: 8px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
  border-left: 3px solid #ef4444;
}

.install-instructions small {
  color: #666;
  line-height: 1.4;
}

.pwa-prompt-text {
  flex: 1;
}

.pwa-prompt-text h3 {
  margin: 0 0 2px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.pwa-prompt-text p {
  margin: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

.pwa-prompt-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.pwa-prompt-actions .btn {
  flex: 1;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
}

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

@media (max-width: 480px) {
  .pwa-install-prompt {
    bottom: 10px;
    right: 10px;
    left: 10px;
    transform: none;
    width: auto;
    max-width: none;
  }
  
  .pwa-prompt-content {
    flex-direction: row;
    text-align: left;
  }
  
  .pwa-prompt-actions {
    flex-direction: row;
  }
} 

/* ===== HEALTH INSIGHTS STYLES ===== */
.health-insights {
  margin-bottom: 20px;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.insight-item {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.insight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.insight-item.alert {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.insight-item.warning {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fed7aa 100%);
}

.insight-item.info {
  border-left-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%);
}

.insight-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.insight-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.insight-title h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.insight-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
  display: block;
}

.insight-content {
  margin-left: 65px;
}

.insight-message {
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.insight-recommendation {
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.insight-recommendation strong {
  color: var(--primary-color);
  font-weight: 600;
}

.no-insights {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.no-insights p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive insights */
@media (max-width: 768px) {
  .insight-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .insight-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .insight-content {
    margin-left: 0;
  }
  
  .insight-item {
    padding: 15px;
  }
} 

/* ===== MEDICAL REPORTS STYLES ===== */
.medical-reports {
  margin-bottom: 20px;
}

.report-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.report-options p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.report-periods h3 {
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.period-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.btn-outline.active {
  background: var(--primary-color);
  color: white;
}

.report-preview {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid var(--border-color);
}

.report-summary {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.report-summary h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.report-summary ul {
  margin: 10px 0;
  padding-left: 20px;
}

.report-summary li {
  margin-bottom: 5px;
  color: var(--text-primary);
}

.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.report-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.report-metric:last-child {
  border-bottom: none;
}

.report-metric-label {
  font-weight: 500;
  color: var(--text-primary);
}

.report-metric-value {
  color: var(--text-secondary);
  font-weight: 600;
}

.report-alert {
  background: #ffebee;
  border-left: 4px solid #f44336;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}

.report-warning {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}

.report-info {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}

/* Responsive medical reports */
@media (max-width: 768px) {
  .period-buttons {
    flex-direction: column;
  }
  
  .btn-outline {
    width: 100%;
    text-align: center;
  }
  
  .report-actions {
    flex-direction: column;
  }
  
  .report-actions .btn {
    width: 100%;
  }
} 

/* DME Management Styles - Patient-Friendly */
.dme-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.dme-overview {
  margin-bottom: 30px;
}

/* Quick Status Overview */
.dme-quick-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.status-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.status-card:hover {
  transform: translateY(-2px);
}

.status-card.working {
  border-color: #28a745;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.status-card.needs-attention {
  border-color: #ffc107;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.status-card.maintenance {
  border-color: #dc3545;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

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

.status-info h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.status-info p {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
}

/* Quick Add Form */
.quick-dme-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quick-dme-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quick-dme-form .form-group {
  display: flex;
  flex-direction: column;
}

.quick-dme-form label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.quick-dme-form input,
.quick-dme-form select,
.quick-dme-form textarea {
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  background: var(--input-bg);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.quick-dme-form input:focus,
.quick-dme-form select:focus,
.quick-dme-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

/* Equipment Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.equipment-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.equipment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.equipment-card.working {
  border-color: #28a745;
}

.equipment-card.minor-issues {
  border-color: #ffc107;
}

.equipment-card.needs-repair,
.equipment-card.broken {
  border-color: #dc3545;
}

.equipment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.equipment-icon {
  font-size: 32px;
}

.equipment-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.equipment-status-badge.working {
  background: #d4edda;
  color: #155724;
}

.equipment-status-badge.minor-issues {
  background: #fff3cd;
  color: #856404;
}

.equipment-status-badge.needs-repair,
.equipment-status-badge.broken {
  background: #f8d7da;
  color: #721c24;
}

.equipment-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: var(--text-primary);
}

.equipment-type {
  margin: 0 0 10px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.equipment-notes {
  margin: 10px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

.last-service {
  margin: 5px 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.equipment-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.equipment-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
}

/* Provider Contact */
.provider-contact {
  margin-top: 30px;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.contact-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 24px;
}

.contact-btn span:last-child {
  font-weight: 600;
  font-size: 14px;
}

/* Alerts */
.dme-alerts {
  margin-bottom: 30px;
}

.alert-item {
  display: flex;
  align-items: flex-start;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-item.high {
  border-color: #dc3545;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

.alert-item.medium {
  border-color: #ffc107;
  background: linear-gradient(135deg, #fffbf0 0%, #fff3cd 100%);
}

.alert-item.low {
  border-color: #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #d4edda 100%);
}

.alert-icon {
  font-size: 20px;
  margin-right: 15px;
  margin-top: 2px;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.alert-message {
  color: var(--text-secondary);
  font-size: 14px;
}

.no-alerts {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 20px;
}

.no-equipment {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 40px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dme-quick-status {
    grid-template-columns: 1fr;
  }
  
  .quick-dme-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .equipment-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .equipment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .equipment-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .dme-container {
    padding: 10px;
  }
  
  .contact-options {
    grid-template-columns: 1fr;
  }
}

/* Health Insights Styles */
.health-insights-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.insights-overview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.insights-overview h2 {
  color: white;
  margin-bottom: 10px;
}

.insights-description {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
}

.insights-list-card,
.recommendations-card,
.health-score-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.insights-list-card h3,
.recommendations-card h3,
.health-score-card h3 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Compact Insights Summary */
.insights-summary {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.summary-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.insights-stats {
  display: flex;
  gap: 8px;
}

.stat {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.stat.alert {
  background: #dc3545;
  color: white;
}

.stat.warning {
  background: #ffc107;
  color: #212529;
}

.stat.info {
  background: #17a2b8;
  color: white;
}

.stat.success {
  background: #28a745;
  color: white;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.top-insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid var(--border-color);
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.insight-summary:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(2px);
}

.insight-summary.alert {
  border-left-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.insight-summary.warning {
  border-left-color: #ffc107;
  background: rgba(255, 193, 7, 0.05);
}

.insight-summary.info {
  border-left-color: #17a2b8;
  background: rgba(23, 162, 184, 0.05);
}

.insight-summary.success {
  border-left-color: #28a745;
  background: rgba(40, 167, 69, 0.05);
}

.insight-icon-small {
  font-size: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.insight-text {
  flex: 1;
  min-width: 0;
}

.insight-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.insight-brief {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.more-insights {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
}

.more-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-view-all {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-all:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-view-insights {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-insights:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Dashboard Insights - Minimal View */
.dashboard-insights-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.dashboard-insight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.dashboard-insight-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-insight-item.alert {
  border-left: 4px solid #dc3545;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

.dashboard-insight-item.warning {
  border-left: 4px solid #ffc107;
  background: linear-gradient(135deg, #fffbf0 0%, #fff3cd 100%);
}

.dashboard-insight-item.info {
  border-left: 4px solid #17a2b8;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.dashboard-insight-item.success {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, #f0fff4 0%, #dcffe4 100%);
}

.insight-icon-small {
  font-size: 16px;
  min-width: 20px;
  text-align: center;
}

.insight-name {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.3;
}

.insight-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.insight-status.alert {
  background: #dc3545;
  color: white;
}

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

.insight-status.info {
  background: #17a2b8;
  color: white;
}

.insight-status.success {
  background: #28a745;
  color: white;
}

/* Mobile responsive for dashboard insights */
@media (max-width: 768px) {
  .dashboard-insight-item {
    padding: 6px 10px;
    gap: 8px;
  }
  
  .insight-name {
    font-size: 13px;
  }
  
  .insight-status {
    font-size: 9px;
    padding: 1px 4px;
  }
}

/* Card Headers with Action Buttons */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.card-header .btn {
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.card-header .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive for card headers */
@media (max-width: 768px) {
  .card-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .card-header h2 {
    font-size: 1.3rem;
  }
  
  .card-header .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* Plan Duration Info */
.plan-duration-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 10px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.duration-badge {
  background: var(--primary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.duration-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Mobile responsive for plan duration info */
@media (max-width: 768px) {
  .plan-duration-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .duration-badge {
    font-size: 0.7rem;
  }
  
            .duration-text {
            font-size: 0.8rem;
          }
        }

/* Plan Notes for Print */
.plan-note {
          background: #f8f9fa;
          border: 1px solid #dee2e6;
          border-radius: 8px;
          padding: 15px;
          margin: 20px 0;
          border-left: 4px solid #007bff;
        }

.plan-note h2 {
          margin-top: 0;
          color: #007bff;
          font-size: 1.2rem;
        }

.plan-note p {
          margin: 8px 0;
          color: #495057;
        }

/* Exercise Intensity Indicators */
.exercise-details {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-top: 8px;
        }

.exercise-intensity {
          padding: 2px 8px;
          border-radius: 12px;
          font-size: 0.7rem;
          font-weight: 600;
          text-transform: uppercase;
        }

.intensity-low {
          background: #d4edda;
          color: #155724;
        }

.intensity-lowmedium {
          background: #fff3cd;
          color: #856404;
        }

.intensity-medium {
          background: #f8d7da;
          color: #721c24;
        }

.intensity-mediumhigh {
          background: #f5c6cb;
          color: #721c24;
        }

.intensity-high {
          background: #cce5ff;
          color: #004085;
        }

/* Meal Ingredients */
.meal-ingredients {
          margin: 10px 0;
          padding: 8px;
          background: #f8f9fa;
          border-radius: 6px;
          border-left: 3px solid var(--primary-color);
        }

.meal-ingredients strong {
          color: var(--text-primary);
          font-size: 0.85rem;
        }

.meal-ingredients ul {
          margin: 5px 0 0 0;
          padding-left: 20px;
        }

.meal-ingredients li {
          font-size: 0.8rem;
          color: var(--text-secondary);
          margin: 2px 0;
        }

.back-to-summary {
  text-align: center;
  padding: 20px 0;
}

.btn-back {
  background: var(--secondary-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: var(--secondary-dark);
  border-color: var(--primary-color);
}

.insight-item {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.insight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.insight-item.alert {
  border-color: #dc3545;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

.insight-item.warning {
  border-color: #ffc107;
  background: linear-gradient(135deg, #fffbf0 0%, #fff3cd 100%);
}

.insight-item.info {
  border-color: #17a2b8;
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f3ff 100%);
}

.insight-item.success {
  border-color: #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #d4edda 100%);
}

.insight-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.insight-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.insight-title {
  flex: 1;
}

.insight-title h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.insight-time {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.insight-severity {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.insight-severity.alert {
  background: #dc3545;
  color: white;
}

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

.insight-severity.info {
  background: #17a2b8;
  color: white;
}

.insight-severity.success {
  background: #28a745;
  color: white;
}

.insight-content {
  margin-left: 55px;
}

.insight-message {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  line-height: 1.5;
}

.insight-recommendation {
  background: rgba(255, 255, 255, 0.7);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.insight-recommendation strong {
  color: var(--primary-color);
  font-weight: 600;
}

.no-insights {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.no-insights-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-insights h3 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-size: 20px;
}

.insights-tips {
  margin-top: 20px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.insights-tips ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.insights-tips li {
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}

.insights-tips li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.loading-insights {
  text-align: center;
  padding: 40px 20px;
}

.loading-insights .loading-spinner {
  margin: 0 auto 20px auto;
}

.error-insights {
  text-align: center;
  padding: 40px 20px;
  color: #dc3545;
}

/* AI-Powered Recommendations */
.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Compact Recommendations Summary */
.recommendations-summary {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recommendations-stats {
  display: flex;
  gap: 8px;
}

.stat.high {
  background: #dc3545;
  color: white;
}

.stat.ai {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.top-recommendations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recommendation-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid var(--border-color);
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.recommendation-summary:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(2px);
}

.recommendation-summary.high {
  border-left-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.recommendation-summary.medium {
  border-left-color: #ffc107;
  background: rgba(255, 193, 7, 0.05);
}

.recommendation-summary.low {
  border-left-color: #28a745;
  background: rgba(40, 167, 69, 0.05);
}

.recommendation-icon-small {
  font-size: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.recommendation-text {
  flex: 1;
  min-width: 0;
  position: relative;
}

.recommendation-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.recommendation-brief {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: block;
}

.ai-indicator {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.more-recommendations {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
}

/* Compact Health Score */
.health-score-compact {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

.score-circle-compact {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-circle-compact.excellent {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.score-circle-compact.good {
  background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

.score-circle-compact.fair {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.score-circle-compact.poor {
  background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.score-info {
  flex: 1;
  min-width: 0;
}

.score-info .score-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.score-info .score-description {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Expanded Insights View */
.expanded-insights-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}

.expanded-header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.expanded-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.expanded-header-text h4 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
}

.expanded-header-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.expanded-insight-item {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expanded-insight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.expanded-insight-item.alert {
  border-color: #dc3545;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

.expanded-insight-item.warning {
  border-color: #ffc107;
  background: linear-gradient(135deg, #fffbf0 0%, #fff3cd 100%);
}

.expanded-insight-item.info {
  border-color: #17a2b8;
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f3ff 100%);
}

.expanded-insight-item.success {
  border-color: #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #d4edda 100%);
}

.expanded-insight-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.expanded-insight-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expanded-insight-title {
  flex: 1;
}

.expanded-insight-title h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.expanded-insight-time {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.expanded-insight-severity {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expanded-insight-severity.alert {
  background: #dc3545;
  color: white;
}

.expanded-insight-severity.warning {
  background: #ffc107;
  color: #212529;
}

.expanded-insight-severity.info {
  background: #17a2b8;
  color: white;
}

.expanded-insight-severity.success {
  background: #28a745;
  color: white;
}

.expanded-insight-content {
  margin-left: 55px;
}

.expanded-insight-message {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  line-height: 1.5;
}

.expanded-insight-recommendation {
  background: rgba(255, 255, 255, 0.7);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.expanded-insight-recommendation strong {
  color: var(--primary-color);
  font-weight: 600;
}

.ai-recommendations-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 10px;
}

.ai-header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ai-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.ai-header-text h4 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
}

.ai-header-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.recommendation-item {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.recommendation-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recommendation-item.data-driven {
  border-left: 4px solid #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.recommendation-item.high {
  border-left: 4px solid #dc3545;
}

.recommendation-item.medium {
  border-left: 4px solid #ffc107;
}

.recommendation-item.low {
  border-left: 4px solid #28a745;
}

.recommendation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.recommendation-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recommendation-category {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.ai-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recommendation-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-icon {
  font-size: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 50%;
}

.recommendation-priority {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.recommendation-priority.high {
  background: #dc3545;
  color: white;
}

.recommendation-priority.medium {
  background: #ffc107;
  color: #212529;
}

.recommendation-priority.low {
  background: #28a745;
  color: white;
}

.recommendation-item h4 {
  margin: 0 0 10px 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.recommendation-item p {
  margin: 0 0 10px 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.data-source {
  font-size: 11px;
  color: #667eea;
  font-style: italic;
  font-weight: 500;
  padding: 5px 0;
  border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.no-recommendations {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Health Score */
.health-score-display {
  text-align: center;
  padding: 20px;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-weight: bold;
  font-size: 24px;
  color: white;
  position: relative;
  transition: all 0.3s ease;
}

.score-circle.excellent {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.score-circle.good {
  background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.score-circle.fair {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.score-circle.poor {
  background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.score-label {
  font-size: 14px;
  opacity: 0.8;
}

.score-description {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Responsive Design for Health Insights */
@media (max-width: 768px) {
  .health-insights-container {
    padding: 15px;
    gap: 15px;
  }
  
  .insight-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .insight-content {
    margin-left: 0;
  }
  
  .insight-severity {
    align-self: flex-start;
  }
  
  .score-circle {
    width: 100px;
    height: 100px;
    font-size: 20px;
  }
  
  .recommendation-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  /* Compact summary mobile styles */
  .summary-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .insights-stats,
  .recommendations-stats {
    align-self: flex-start;
  }

  .insight-summary,
  .recommendation-summary {
    padding: 10px;
  }

  .insight-icon-small,
  .recommendation-icon-small {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }

  .more-insights,
  .more-recommendations {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .btn-view-all {
    align-self: flex-start;
  }

  .health-score-compact {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .score-circle-compact {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Expanded insights mobile styles */
  .expanded-insight-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .expanded-insight-content {
    margin-left: 0;
  }

  .expanded-insight-severity {
    align-self: flex-start;
  }

  .expanded-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .health-insights-container {
    padding: 10px;
  }
  
  .insight-item,
  .recommendation-item {
    padding: 15px;
  }
  
  .insight-icon {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  
  .score-circle {
    width: 80px;
    height: 80px;
    font-size: 18px;
  }
}

/* Nutrition Tracking Styles */
.nutrition-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.nutrition-overview {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
}

.nutrition-overview h2 {
  color: white;
  margin-bottom: 15px;
}

.nutrition-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.nutrition-metrics .metric {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.nutrition-metrics .metric-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}

.nutrition-metrics .metric-label {
  font-size: 12px;
  opacity: 0.9;
  display: block;
  margin-bottom: 5px;
}

.nutrition-metrics .metric-value {
  font-size: 18px;
  font-weight: 600;
  display: block;
}

.add-meal,
.cholesterol-monitoring {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.add-meal h2,
.cholesterol-monitoring h2 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.meal-form,
.cholesterol-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.meal-form .form-row,
.cholesterol-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.meal-form .form-group,
.cholesterol-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meal-form label,
.cholesterol-form label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.meal-form input,
.meal-form select,
.meal-form textarea,
.cholesterol-form input,
.cholesterol-form textarea {
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: var(--card-bg);
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.meal-form input:focus,
.meal-form select:focus,
.meal-form textarea:focus,
.cholesterol-form input:focus,
.cholesterol-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.meal-history,
.cholesterol-history {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.meal-history h2,
.cholesterol-history h2 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-item.meal-entry {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease;
}

.history-item.meal-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.history-item.cholesterol-entry {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease;
}

.history-item.cholesterol-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.history-item.cholesterol-entry.optimal {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #d4edda 100%);
}

.history-item.cholesterol-entry.borderline {
  border-left: 4px solid #ffc107;
  background: linear-gradient(135deg, #fffbf0 0%, #fff3cd 100%);
}

.history-item.cholesterol-entry.high {
  border-left: 4px solid #dc3545;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.history-type {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meal-type-icon {
  font-size: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 50%;
}

.meal-type {
  font-weight: 600;
  color: var(--text-primary);
  text-transform: capitalize;
}

.cholesterol-icon {
  font-size: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 50%;
}

.cholesterol-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

.history-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.history-content h4 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.history-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.cholesterol-status {
  margin-bottom: 8px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.optimal {
  background: #28a745;
  color: white;
}

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

.status-badge.high {
  background: #dc3545;
  color: white;
}

.no-data {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Responsive Design for Nutrition */
@media (max-width: 768px) {
  .nutrition-container {
    padding: 15px;
    gap: 15px;
  }
  
  .nutrition-metrics {
    grid-template-columns: 1fr;
  }
  
  .meal-form .form-row,
  .cholesterol-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .history-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .nutrition-container {
    padding: 10px;
  }
  
  .add-meal,
  .cholesterol-monitoring,
  .meal-history,
  .cholesterol-history {
    padding: 15px;
  }
  
  .history-item.meal-entry,
  .history-item.cholesterol-entry {
    padding: 12px;
  }
}

/* Enhanced Nutrition Display */
.meal-nutrition {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.nutrition-item {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.nutrition-item:first-child {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border-color: rgba(40, 167, 69, 0.2);
}

.nutrition-item:last-child {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.2);
}

/* Food Database Info */
.food-database-info {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.food-database-info h3 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.food-database-info p {
  margin: 0 0 10px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.food-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.food-category {
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  padding: 10px;
}

.food-category h4 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.food-category ul {
  margin: 0;
  padding-left: 15px;
  color: var(--text-secondary);
  font-size: 12px;
}

.food-category li {
  margin-bottom: 2px;
}

/* Estimated vs Actual Cholesterol */
.cholesterol-comparison {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cholesterol-comparison h3 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comparison-item {
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.comparison-item h4 {
  margin: 0 0 10px 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.comparison-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.comparison-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .food-examples {
    grid-template-columns: 1fr;
  }
}

/* Cholesterol Management Guide */
.cholesterol-management {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cholesterol-management h2 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.cholesterol-tips {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tip-section h3 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.limit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.limit-item {
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.limit-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.limit-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.substitution-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.substitution-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(40, 167, 69, 0.05);
  border: 1px solid rgba(40, 167, 69, 0.1);
}

.food-high {
  color: #dc3545;
  font-weight: 600;
  font-size: 14px;
}

.arrow {
  color: var(--text-secondary);
  font-weight: bold;
}

.food-low {
  color: #28a745;
  font-weight: 600;
  font-size: 14px;
}

.food-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.food-categories .food-category {
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  background: rgba(40, 167, 69, 0.05);
  border: 1px solid rgba(40, 167, 69, 0.1);
}

.food-categories h4 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.food-categories p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .limit-grid {
    grid-template-columns: 1fr;
  }
  
  .food-categories {
    grid-template-columns: 1fr;
  }
  
  .substitution-item {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
}

/* Weight Loss Styles */
.weight-loss-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.weight-loss-overview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.weight-loss-overview h2 {
  color: white;
  margin-bottom: 15px;
}

.weight-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.weight-metrics .metric {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.weight-metrics .metric-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}

.weight-metrics .metric-label {
  font-size: 12px;
  opacity: 0.9;
  display: block;
  margin-bottom: 5px;
}

.weight-metrics .metric-value {
  font-size: 18px;
  font-weight: 600;
  display: block;
}

.weight-goal-setup,
.weight-tracking,
.weight-history {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.weight-goal-setup h2,
.weight-tracking h2,
.weight-history h2 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.weight-goal-form,
.weight-tracking-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.weight-goal-form .form-row,
.weight-tracking-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.weight-goal-form .form-group,
.weight-tracking-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.weight-goal-form label,
.weight-tracking-form label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.weight-goal-form input,
.weight-goal-form select,
.weight-goal-form textarea,
.weight-tracking-form input,
.weight-tracking-form textarea {
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: var(--card-bg);
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.weight-goal-form input:focus,
.weight-goal-form select:focus,
.weight-goal-form textarea:focus,
.weight-tracking-form input:focus,
.weight-tracking-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* AI Meal Plan Styles */
.ai-meal-plan,
.ai-exercise-plan {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ai-meal-plan h2,
.ai-exercise-plan h2 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.meal-plan-summary,
.exercise-plan-summary {
  margin-bottom: 20px;
}

.plan-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.plan-metric {
  text-align: center;
  padding: 15px;
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 12px;
}

.plan-metric .metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  display: block;
}

.plan-metric .metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.meal-plan-days,
.exercise-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.day-plan,
.exercise-day {
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  padding: 15px;
}

.day-plan h3,
.exercise-day h3 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.meals-container,
.exercises-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meal-item,
.exercise-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
}

.meal-header,
.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.meal-type,
.exercise-type {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: capitalize;
}

.meal-calories,
.exercise-calories {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
}

.meal-name,
.exercise-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.meal-macros {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.macro {
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(102, 126, 234, 0.1);
  padding: 2px 6px;
  border-radius: 8px;
}

.macro.cholesterol {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.exercise-duration {
  font-size: 12px;
  color: var(--text-secondary);
}

.weight-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-item.weight-entry {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease;
}

.history-item.weight-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weight-icon {
  font-size: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 50%;
}

.weight-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

/* Responsive Design for Weight Loss */
@media (max-width: 768px) {
  .weight-loss-container {
    padding: 15px;
    gap: 15px;
  }
  
  .weight-metrics {
    grid-template-columns: 1fr;
  }
  
  .weight-goal-form .form-row,
  .weight-tracking-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .plan-metrics {
    grid-template-columns: 1fr;
  }
  
  .meal-plan-days,
  .exercise-schedule {
    grid-template-columns: 1fr;
  }
  
  .meal-macros {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .weight-loss-container {
    padding: 10px;
  }
  
  .weight-goal-setup,
  .weight-tracking,
  .weight-history,
  .ai-meal-plan,
  .ai-exercise-plan {
    padding: 15px;
  }
  
  .day-plan,
  .exercise-day {
    padding: 12px;
  }
  
  .meal-item,
  .exercise-item {
    padding: 10px;
  }
} 

/* Cholesterol Status Classes */
.cholesterol-normal {
  color: #059669;
  font-weight: bold;
}

.cholesterol-borderline {
  color: #d97706;
  font-weight: bold;
}

.cholesterol-high {
  color: #dc2626;
  font-weight: bold;
}

.cholesterol-entry {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.cholesterol-entry .entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cholesterol-entry .entry-date {
  color: #6b7280;
  font-size: 0.875rem;
}

.cholesterol-entry .entry-value {
  font-size: 1.125rem;
  font-weight: 600;
}

.cholesterol-entry .entry-notes {
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.cholesterol-entry .entry-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Medication Manager Styles */
.medication-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.medication-item .med-info h4 {
  margin: 0 0 0.5rem 0;
  color: #111827;
}

.medication-item .med-info p {
  margin: 0.25rem 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.medication-item .med-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.reminder-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.reminder-item .reminder-info h4 {
  margin: 0 0 0.5rem 0;
  color: #111827;
}

.reminder-item .reminder-info p {
  margin: 0.25rem 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.reminder-item .reminder-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.no-data {
  text-align: center;
  color: #6b7280;
  padding: 2rem;
  font-style: italic;
}

/* ===== MEDICATION AUTO-COMPLETE STYLES ===== */
.auto-complete-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
}

.auto-complete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.auto-complete-item:hover,
.auto-complete-item.auto-complete-active {
  background-color: #f8f9fa;
}

.auto-complete-item:last-child {
  border-bottom: none;
}

.auto-complete-item .med-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.auto-complete-item .med-category {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 2px;
}

.auto-complete-item .med-dosage {
  font-size: 0.875rem;
  color: #888;
  font-style: italic;
}

/* Dark mode support for auto-complete */
@media (prefers-color-scheme: dark) {
  .auto-complete-container {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .auto-complete-item {
    border-bottom-color: #4a5568;
  }
  
  .auto-complete-item:hover,
  .auto-complete-item.auto-complete-active {
    background-color: #4a5568;
  }
  
  .auto-complete-item .med-name {
    color: #e2e8f0;
  }
  
  .auto-complete-item .med-category {
    color: #a0aec0;
  }
  
  .auto-complete-item .med-dosage {
    color: #718096;
  }
}

/* Mobile responsive auto-complete */
@media (max-width: 768px) {
  .auto-complete-container {
    max-height: 250px;
  }
  
  .auto-complete-item {
    padding: 10px 12px;
  }
  
  .auto-complete-item .med-name {
    font-size: 0.9rem;
  }
  
  .auto-complete-item .med-category,
  .auto-complete-item .med-dosage {
    font-size: 0.8rem;
  }
}

/* Medication Dropdown Styles */
.medication-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 2px;
}

.dropdown-category {
  border-bottom: 1px solid var(--border-color);
}

.dropdown-category:last-child {
  border-bottom: none;
}

.dropdown-category-header {
  background: var(--primary-color);
  color: white;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: var(--primary-color-light);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item .med-name {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 2px;
}

.dropdown-item .med-dosage {
  font-size: 0.85em;
  color: var(--text-secondary);
}

/* Ensure the input container has relative positioning */
#medName {
  position: relative;
}

#medName:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color-light);
}

/* Auto-complete container styles (keeping for compatibility) */
.auto-complete-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 2px;
}

.auto-complete-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.auto-complete-item:hover,
.auto-complete-item.active {
  background: var(--primary-color-light);
}

.auto-complete-item:last-child {
  border-bottom: none;
}

.auto-complete-item .med-name {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 2px;
}

.auto-complete-item .med-category {
  font-size: 0.85em;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.auto-complete-item .med-dosage {
  font-size: 0.85em;
  color: var(--text-secondary);
}

/* PWA Install Prompt Styling */
.pwa-install-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 350px;
  display: none; /* Hidden by default */
}

.pwa-prompt-content {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.pwa-prompt-icon {
  flex-shrink: 0;
}

.pwa-prompt-text h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #1f2937;
}

.pwa-prompt-text p {
  margin: 0 0 12px 0;
  color: #6b7280;
  font-size: 14px;
}

.pwa-prompt-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.pwa-prompt-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.pwa-install-btn {
  background: #ef4444;
  color: white;
}

.pwa-install-btn:hover {
  background: #dc2626;
}

.pwa-dismiss-btn {
  background: #f3f4f6;
  color: #6b7280;
}

.pwa-dismiss-btn:hover {
  background: #e5e7eb;
}