/* ===== RESET & GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  height: 100vh;
  color: #111827;
  background: linear-gradient(to right, #e8edf5, #c2e9fb);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hidden {
  display: none !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

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

/* ===== LOGIN PAGE ===== */
#login-page-background {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.02);
  background: url('Screenshot 2025-04-23 162606.png') center/cover no-repeat;
  filter: blur(6px);
  z-index: -1;
  animation: fadeIn 1s ease-in;
  transition: opacity 0.5s ease;
}

.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: rgba(235, 245, 255, 0.95);
  /* Light blue tint */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0px 4px 20px rgba(0, 123, 255, 0.15);
  animation: modalFadeIn 0.5s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(179, 212, 255, 0.3);
  /* Subtle blue border */
}

.login-container h2,
.login-container h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.login-container label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 90%;
  max-width: 300px;
  padding: 10px;
  margin: 10px auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  display: block;
  background: rgba(255, 255, 255, 0.9);
  /* Slightly transparent white */
}

.login-container .remember {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
}

.login-container .remember input[type="checkbox"] {
  margin-right: 5px;
}

.login-container input:-webkit-autofill,
.login-container input:-webkit-autofill:hover,
.login-container input:-webkit-autofill:focus {
  box-shadow: 0 0 0px 1000px rgba(235, 245, 255, 0.95) inset !important;
  -webkit-text-fill-color: #000 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.login-container .btn {
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  width: 120px;
  height: 40px;
  text-align: center;
  line-height: 1.2;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-container .btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.login-container a {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
}

.login-container a:hover {
  text-decoration: underline;
}

.login-container .logo {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.login-container form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Login Error Message */
.login-error {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 10px;
  animation: fadeIn 0.3s ease-in;
}

/* Login Message Container */
#login-message {
  height: 20px;
  margin-top: 10px;
  text-align: center;
}

/* Login Loading Indicator */
.login-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  border-top-color: #007bff;
  animation: spin 1s ease-in-out infinite;
}

/* Dark mode for login page */
body.dark-mode .login-box {
  background: rgba(28, 41, 56, 0.95);
  box-shadow: 0px 4px 20px rgba(0, 123, 255, 0.2);
  border: 1px solid rgba(70, 90, 126, 0.3);
}

body.dark-mode .login-container h2,
body.dark-mode .login-container h3,
body.dark-mode .login-container label {
  color: #e0e0e0;
}

body.dark-mode .login-container a {
  color: #4fc3f7;
}

body.dark-mode .login-container input:-webkit-autofill,
body.dark-mode .login-container input:-webkit-autofill:hover,
body.dark-mode .login-container input:-webkit-autofill:focus {
  box-shadow: 0 0 0px 1000px #2d2d2d inset !important;
  -webkit-text-fill-color: #e0e0e0 !important;
}

/* ===== GENDER SELECTION PAGE ===== */
.gender-body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: rgba(255, 255, 255, 1);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background: #1f1f1f;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.gender-selection {
  display: block;
  justify-content: space-around;
  margin: 20px 0;
  opacity: 1;
}

.gender {
  border: 2px solid #888;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  margin: 10px auto;
  display: block;
  position: relative;
  width: 80%;
}

.gender.selected {
  border-color: #00f0ff;
  background: #2a2a2a;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.gender img {
  width: 60px;
  height: 60px;
}

.gender p {
  margin-top: 5px;
  font-weight: bold;
}

input[type="date"] {
  padding: 10px;
  margin-top: 10px;
  width: 80%;
  font-size: 16px;
  border-radius: 8px;
  border: none;
}

.skip {
  margin-top: 10px;
  color: #aaa;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.skip:hover {
  color: #666;
}

/* ===== MODAL STYLES ===== */
.terms-modal,
.about-us-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.terms-content,
.about-us-content {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 80%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.terms-header,
.about-us-header {
  background-color: #4CAF50;
  color: white;
  padding: 15px 20px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terms-body,
.about-us-body {
  padding: 20px;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.terms-body h3,
.about-us-body h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #4CAF50;
}

.terms-body p,
.about-us-body p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.terms-body ul,
.about-us-body ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.terms-body li,
.about-us-body li {
  margin-bottom: 5px;
}

.terms-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 0.9em;
  color: #666;
}

/* Dark mode support for modals */
body.dark-mode .terms-content,
body.dark-mode .about-us-content {
  background-color: #2c2c2c;
  color: #f1f1f1;
}

body.dark-mode .terms-header,
body.dark-mode .about-us-header {
  background-color: #1e1e1e;
}

body.dark-mode .terms-body h3,
body.dark-mode .about-us-body h3 {
  color: #82ca9d;
}

body.dark-mode .terms-body,
body.dark-mode .about-us-body {
  color: #e1e1e1;
}

body.dark-mode .terms-footer {
  border-top-color: #444;
  color: #aaa;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-container {
  display: flex;
  height: 100vh;
  width: 100%;
  justify-content: center;
}

.dashboard-content {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 1.2s ease-in;
  transition: background-color 0.3s ease;
}

.dashboard-header {
  text-align: center;
  width: 100%;
  flex-direction: column;
  align-items: center;
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-header h1 {
  color: orangered;
  font-size: 2.5rem;
  opacity: 0;
  margin-top: 20px;
  animation: fadeSlideIn 1s ease-out forwards;
  text-align: center;
  font-weight: 600;
  margin-bottom: 5px;
  /* Add margin to separate from subheading */
}

/* Subheading styles - changed from italic to bold */
.dashboard-subheading {
  color: #555;
  font-size: 1.3rem;
  font-weight: 600;
  /* Changed from 400 to 600 for bold appearance */
  text-align: center;
  opacity: 0;
  animation: fadeSlideIn 1s ease-out 0.3s forwards;
  margin-bottom: 15px;
  /* Removed font-style: italic; */
}

/* Dark mode for the subheading */
body.dark-mode .dashboard-subheading {
  color: #bbb;
  /* Slightly brighter color in dark mode for better visibility */
}

.header-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.welcome-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

/* ===== DASHBOARD GRID LAYOUT ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px auto;
  max-width: 1200px;
}

/* Grid card base styles */
.quick-activities-card,
.health-tip-card,
.water-tracker-card,
.reminders-card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  /* Lighter border color */
}

/* Section headers styling - making them consistent across all sections */
.section-header {
  background: linear-gradient(135deg, #FF8C42, #e0876c);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-header i {
  color: white;
  font-size: 18px;
  margin-right: 10px;
}

.section-header h2 {
  color: white;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  flex-grow: 1;
}

.section-header button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.section-header button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Health Tip Section - Smaller box */
.health-tip-card .section-header {
  background: linear-gradient(135deg, #FFD200, hsl(33, 55%, 58%));
  padding: 12px 20px;
}

.health-tip-card .section-header i {
  color: white;
}

.health-tip-card .section-header h2 {
  color: white;
}

.tip-content {
  padding: 20px;
  background-color: #fffaf0;
  /* Soft cream background in light mode */
  border-radius: 0 0 16px 16px;
  transition: background-color 0.3s ease;
}

.tip-content blockquote {
  margin: 0;
  border-left: 4px solid #FFD200;
  padding-left: 15px;
  padding-right: 10px;
  font-style: italic;
  color: #444;
  font-size: 17px;
  /* Increased font size from 14px to 17px */
  line-height: 1.7;
  /* Improved line height for readability */
  letter-spacing: 0.02em;
  /* Slight letter spacing */
}

/* Water Tracker Section header */
.water-tracker-card .section-header {
  background: linear-gradient(135deg, #2196F3, #0D47A1);
}

/* Reminders Section header */
.reminders-card .section-header {
  background: linear-gradient(135deg, #9C27B0, #744db6);
}

/* Quick Activities takes full width in landscape orientation */
.quick-activities-card {
  grid-column: span 4;
}

/* Health Tip and Reminders are smaller boxes */
.health-tip-card,
.reminders-card {
  grid-column: span 2;
}

/* Water Tracker spans 2 columns */
.water-tracker-card {
  grid-column: span 4;
  position: relative;
}

.water-content {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.water-progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  flex: 1;
  min-width: 250px;
}

.water-goal-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 250px;
  background: rgba(33, 150, 243, 0.05);
  border-radius: 16px;
  padding: 20px;
  border-left: 3px solid #2196F3;
}

.water-goal-title {
  font-size: 18px;
  font-weight: 600;
  color: #2196F3;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.water-goal-title i {
  margin-right: 8px;
}

.water-goal-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.water-goal-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.goal-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0;
}

#update-water-goal {
  background-color: #2196F3;
  color: white;
}

#update-water-goal:hover {
  background-color: #1976D2;
}

#reset-water-btn {
  background-color: #f44336;
  color: white;
}

#reset-water-btn:hover {
  background-color: #d32f2f;
}

.water-benefits {
  margin-top: 20px;
}

.water-benefits h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.benefits-list {
  padding-left: 20px;
}

.benefits-list li {
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
}

.water-level-container {
  position: relative;
  width: 200px;
  height: 250px;
  margin: 0 auto;
}

.water-level {
  width: 100%;
  height: 100%;
  border: 3px solid rgba(33, 150, 243, 0.7);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(33, 150, 243, 0.05));
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.2);
}

.water-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, #64B5F6, #2196F3);
  height: 0%;
  transition: height 1s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0px -5px 10px rgba(33, 150, 243, 0.3) inset;
}

.water-fill::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 200%;
  height: 15px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent 50%, rgba(255, 255, 255, 0.3) 100%);
  animation: waveAnimation 3s linear infinite;
}

.water-fill::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -50%;
  width: 200%;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  animation: waveAnimation 2s linear infinite reverse;
}

@keyframes waveAnimation {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0%);
  }
}

.water-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #2196F3;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.water-info {
  text-align: center;
  padding: 15px 0;
  width: 100%;
}

.water-amount-display {
  font-size: 28px;
  font-weight: 600;
  color: #2196F3;
}

.water-amount-label {
  font-size: 16px;
  color: #777;
  margin-top: 5px;
}

.water-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.water-add-btn,
#custom-water-btn {
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background-color: #2196F3;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.water-add-btn i,
#custom-water-btn i {
  margin-right: 8px;
  font-size: 14px;
}

.water-add-btn:hover,
#custom-water-btn:hover {
  background-color: #1976D2;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

#custom-water-btn {
  background-color: #673AB7;
  grid-column: span 2;
}

#custom-water-btn:hover {
  background-color: #5E35B1;
}

/* Water Completion Popup */
.water-completion-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(3px);
}

.water-completion-popup.active {
  opacity: 1;
  visibility: visible;
}

.water-completion-content {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  animation: bounceIn 0.5s ease forwards;
  text-align: center;
  padding: 30px;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  70% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.completion-icon {
  font-size: 60px;
  margin-bottom: 20px;
  display: inline-block;
  animation: droplet 2s ease infinite;
}

@keyframes droplet {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.water-completion-content h3 {
  color: #2196F3;
  font-size: 24px;
  margin-bottom: 15px;
}

.water-completion-content p {
  color: #555;
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.5;
}

.completion-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.completion-buttons button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
}

.continue-btn {
  background-color: #2196F3;
  color: white;
}

.restart-btn {
  background-color: #f44336;
  color: white;
}

.continue-btn:hover {
  background-color: #1976D2;
}

.restart-btn:hover {
  background-color: #d32f2f;
}

/* Toast Message */
.toast-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-message.error {
  background: #f44336;
}

.toast-message.show {
  transform: translateY(0);
  opacity: 1;
}

/* Dark mode for water tracker */
body.dark-mode .water-goal-container {
  background: rgba(33, 150, 243, 0.1);
  border-left-color: #1e88e5;
}

body.dark-mode .water-goal-title {
  color: #64B5F6;
}

body.dark-mode .water-benefits h4 {
  color: #e0e0e0;
}

body.dark-mode .benefits-list li {
  color: #b0b0b0;
}

body.dark-mode .water-completion-content {
  background: #1f1f1f;
}

body.dark-mode .water-completion-content h3 {
  color: #64B5F6;
}

body.dark-mode .water-completion-content p {
  color: #e0e0e0;
}

body.dark-mode .water-progress-text {
  color: #64B5F6;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

body.dark-mode .water-amount-display {
  color: #64B5F6;
}

body.dark-mode .water-amount-label {
  color: #bbb;
}

body.dark-mode .water-goal-form input {
  background-color: #2d2d2d;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .water-level {
  border-color: #1e88e5;
  background: linear-gradient(to bottom, rgba(30, 30, 30, 0.1), rgba(33, 150, 243, 0.05));
}

@media (max-width: 768px) {
  .water-content {
    flex-direction: column;
  }

  .water-progress-container,
  .water-goal-container {
    width: 100%;
  }

  .water-level-container {
    width: 150px;
    height: 200px;
  }

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

  .completion-buttons {
    flex-direction: column;
  }
}

/* Quick Activities Section with landscape orientation */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 20px;
}

/* Enhanced activity items appearance */
.activity-item {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  padding: 18px;
  /* Slightly increased padding */
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  /* Even lighter border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  /* Added more defined shadow */
}

.activity-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.activity-icon {
  width: 60px;
  /* Increased size */
  height: 60px;
  /* Increased size */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Add shadow for depth */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.activity-icon i {
  font-size: 24px;
  /* Larger icon size */
  color: white;
}

/* Custom image for yoga icon */
.custom-activity-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.yoga-icon {
  background: linear-gradient(135deg, #9C27B0, #673AB7);
  /* More vibrant purple gradient */
}

.cardio-icon {
  background: linear-gradient(135deg, #FF416C, #FF4B2B);
  /* Bright red gradient */
}

.meditation-icon {
  background: linear-gradient(135deg, #2193b0, #6dd5ed);
  /* Cool blue gradient */
}

.stretching-icon {
  background: linear-gradient(135deg, #00b09b, #96c93d);
  /* Green gradient */
}

.activity-details {
  flex-grow: 1;
}

.activity-details h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 600;
}

.activity-details p {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #777;
}

.start-btn {
  background-color: #FF5722;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 0;
}

.start-btn:hover {
  background-color: #F4511E;
}

/* Health Tip Section - Smaller box */
.health-tip-card .section-header {
  background: linear-gradient(135deg, hwb(49 35% 11%), #F7971E);
  padding: 12px 20px;
}

.health-tip-card .section-header i {
  color: white;
}

.health-tip-card .section-header h2 {
  color: white;
}

.tip-content {
  padding: 15px;
}

.tip-content blockquote {
  margin: 0;
  border-left: 4px solid #beaf64;
  padding-left: 15px;
  font-style: italic;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

/* Water Tracker Section */
.water-content {
  padding: 20px;
}

.water-progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.water-level {
  width: 60%;
  height: 120px;
  border: 2px solid rgba(33, 150, 243, 0.7);
  /* Lighter border for water level */
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.water-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, #64B5F6, #2196F3);
  height: 0%;
  transition: height 0.5s ease;
}

.water-fill::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(180deg, #64B5F6, #2196F3);
  animation: wave 2s linear infinite;
}

@keyframes wave {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.water-info {
  width: 35%;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #2196F3;
}

.water-info .of {
  font-size: 18px;
  color: #777;
}

.water-info .ml {
  font-size: 16px;
  color: #777;
}

.water-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.water-add-btn,
#custom-water-btn {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: #2196F3;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
  margin-top: 0;
}

.water-add-btn:hover,
#custom-water-btn:hover {
  background-color: #5195da;
}

#custom-water-btn {
  background-color: #7a53bd;
}


#custom-water-btn:hover {
  background-color: #5E35B1;
}

/* Reminders Section - Smaller box */
.reminders-content {
  padding: 15px;
}

.reminder-list {
  margin-bottom: 15px;
  min-height: 100px;
  max-height: 150px;
  overflow-y: auto;
}

.empty-reminder-message {
  text-align: center;
  color: #aaa;
  font-style: italic;
  padding: 20px 0;
}

.reminder-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  /* Adding light border for consistency */
}

.reminder-text {
  flex-grow: 1;
  margin-right: 10px;
}

.reminder-time {
  font-size: 12px;
  color: #777;
  background: #e0e0e0;
  padding: 3px 8px;
  border-radius: 12px;
}

.delete-reminder {
  background: transparent;
  border: none;
  color: #FF5252;
  cursor: pointer;
  font-size: 16px;
  margin-left: 10px;
  padding: 0;
}

.new-reminder {
  display: flex;
  gap: 10px;
}

#reminder-text {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

#reminder-time {
  width: 80px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

#add-reminder-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 0;
}

#add-reminder-btn:hover {
  background-color: #388E3C;
}

/* Responsive adjustments for dashboard grid */
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-activities-card {
    grid-column: span 2;
  }

  .health-tip-card,
  .reminders-card {
    grid-column: span 1;
  }

  .water-tracker-card {
    grid-column: span 2;
  }

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

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

  .quick-activities-card,
  .health-tip-card,
  .reminders-card,
  .water-tracker-card {
    grid-column: span 1;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Styles for dashboard elements with improved contrast */
body.dark-mode .quick-activities-card,
body.dark-mode .health-tip-card,
body.dark-mode .water-tracker-card,
body.dark-mode .reminders-card {
  background-color: #1f1f1f;
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  /* Subtle light border in dark mode */
}

/* Improved dark mode appearance for health tips */
body.dark-mode .tip-content {
  background-color: #292929;
  /* Darker background that stands out better */
}

body.dark-mode .tip-content blockquote {
  color: #f0f0f0;
  /* Brighter text for better readability */
  border-left-color: #efd872;
  /* Keep the gold accent */
  border-left-width: 5px;
  /* Slightly thicker accent in dark mode */
}

/* Enhanced dark mode styling for activity items */
body.dark-mode .activity-item {
  background-color: #2d2d2d;
  /* Slightly lighter than the card background */
  border: 1px solid rgba(255, 255, 255, 0.04);
  /* Very subtle light border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* Enhanced shadow in dark mode */
}

body.dark-mode .activity-item:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
  background-color: #333333;
  /* Slightly lighter on hover */
}

body.dark-mode .activity-details h3 {
  color: #ffffff;
  font-weight: 600;
  /* Bolder headers in dark mode */
}

body.dark-mode .activity-details p {
  color: #cccccc;
  /* Brighter text for better contrast */
}

body.dark-mode .section-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .quick-activities-card .section-header {
  background: linear-gradient(135deg, #f37c32, #e47857);
}

body.dark-mode .health-tip-card .section-header {
  background: linear-gradient(135deg, #eccf4d, #c59050);
}

body.dark-mode .water-tracker-card .section-header {
  background: linear-gradient(135deg, #78a7cd, #0e4597);
}

body.dark-mode .reminders-card .section-header {
  background: linear-gradient(135deg, #ca78d8, #8151d2);
}

body.dark-mode .activity-item {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Adding subtle border */
}

body.dark-mode .activity-item:hover {
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .tip-content blockquote {
  border-left-color: #FFD200;
}

body.dark-mode .reminder-list {
  background-color: transparent;
}

body.dark-mode .new-reminder input,
body.dark-mode .new-reminder select {
  background-color: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .water-level {
  border-color: rgba(30, 136, 229, 0.7);
  /* Lighter border in dark mode */
  background-color: rgba(30, 136, 229, 0.1);
}

body.dark-mode .water-buttons button {
  background-color: #1e88e5;
}

body.dark-mode .water-buttons button:hover {
  background-color: #1976D2;
}

body.dark-mode #custom-water-btn {
  background-color: #5E35B1;
}

body.dark-mode #custom-water-btn:hover {
  background-color: #512DA8;
}

body.dark-mode #add-reminder-btn {
  background-color: #388E3C;
}

body.dark-mode #add-reminder-btn:hover {
  background-color: #2E7D32;
}

body.dark-mode .yoga-icon,
body.dark-mode .cardio-icon,
body.dark-mode .meditation-icon,
body.dark-mode .stretching-icon {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .activity-details h3 {
  color: #ffffff;
}

body.dark-mode .activity-details p {
  color: #b0b0b0;
}

body.dark-mode .water-level {
  border-color: #1e88e5;
}

body.dark-mode .water-info {
  color: #64B5F6;
}

body.dark-mode .water-info .of,
body.dark-mode .water-info .ml {
  color: #bbb;
}

body.dark-mode .reminder-item {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.04);
  /* Consistent with other items */
}

body.dark-mode .reminder-time {
  background: #333;
  color: #bbb;
}

body.dark-mode #reminder-text,
body.dark-mode #reminder-time {
  background-color: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .empty-reminder-message {
  color: #777;
}

/* Responsive design for dashboard grid */
@media (max-width: 768px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }

  .water-progress-container {
    flex-direction: column;
  }

  .water-level {
    width: 100%;
    margin-bottom: 20px;
  }

  .water-info {
    width: 100%;
  }

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

/* ===== ENHANCED SIDEBAR STYLES ===== */
.sidebar {
  position: relative;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(135deg, #FF8C42, #FF5722);
  color: white;
  transition: left 0.3s ease-in-out;
  z-index: 1000;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 20px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-container h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  color: white;
  letter-spacing: 1px;
}

.profile-section {
  display: flex;
  align-items: center;
  padding: 20px 15px;
  background-color: rgba(0, 0, 0, 0.1);
  gap: 12px;
}

.profile-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-info h4 {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.profile-info p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.sidebar-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 10px 0;
}

.sidebar-nav {
  flex: 1;
  padding: 15px 0;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  margin-bottom: 5px;
  position: relative;
}

.sidebar-item a {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
  border-radius: 0 30px 30px 0;
  margin-right: 15px;
}

.sidebar-item a i {
  width: 24px;
  font-size: 18px;
  text-align: center;
  margin-right: 10px;
}

.sidebar-item:hover a {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active a {
  background-color: white;
  color: #FF5722;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-footer {
  padding: 15px 20px;
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer p {
  margin: 5px 0;
}

.sidebar-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  background-color: #FF5722;
  color: white;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 1100;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle:hover {
  background-color: #FF8C42;
  transform: scale(1.05);
}

/* Dark Mode Sidebar */
body.dark-mode .mobile-sidebar {
  background: linear-gradient(135deg, #C23616, #932B0F);
}

body.dark-mode .sidebar-item.active a {
  color: #FF5722;
  background-color: #212121;
}

/* ===== BUTTON STYLES ===== */
button {
  margin-top: 20px;
  padding: 10px 25px;
  background: #00c2ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  background-color: darkorange;
}

.toggle-btn {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.toggle-btn:hover {
  background-color: #45a049;
}

/* ===== ACTIVITY SECTION ===== */
.activity-section h2 {
  margin-bottom: 20px;
}

.activity-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.activity-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  width: 150px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.activity-card:hover {
  transform: scale(1.05);
}

.activity-card button {
  background-color: black;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.activity-card button:hover {
  background-color: #333;
}

.activity-card.sleep,
.activity-card.water {
  background: #e0f7fa;
  border: 1px solid #008cba;
}

.activity-card.sleep button {
  background-color: #008cba;
}

.activity-card.water button {
  background-color: #00796b;
}

.activity-card.sleep button:hover {
  background-color: #004c61;
}

.activity-card.water button:hover {
  background-color: #004d40;
}

/* ===== ANALYTICS SECTION ===== */
.analytics-space {
  height: 30px;
}

.analytics-box {
  margin-top: 20px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.analytics-section {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.analytics-card {
  background-color: #f1f1f1;
  padding: 15px;
  border-radius: 10px;
  width: 200px;
  text-align: center;
}

.analytics-card h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

/* ===== STEP TRACKER STYLES ===== */
.stats-card.step-tracker {
  background: linear-gradient(145deg, #ffffff, #f0f7ff);
  border-left: 4px solid #4CAF50;
  grid-column: span 1;
}

.step-tracker-content {
  padding: 10px 0;
}

.step-progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.step-progress-circle {
  width: 150px;
  height: 150px;
  position: relative;
  margin: 0 auto;
}

.step-progress-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#4CAF50 var(--progress, 0%), #E0E0E0 0%);
  transition: background 0.3s ease;
}

.step-progress-circle-inner {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#steps-count {
  font-size: 32px;
  font-weight: 700;
  color: #4CAF50;
}

.steps-unit {
  font-size: 14px;
  color: #757575;
}

.step-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.step-info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 15px;
  background: #f8f8f8;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.step-info-item:hover {
  transform: translateX(5px);
}

.info-label {
  color: #757575;
  font-weight: 500;
}

.steps-input-form {
  display: flex;
  gap: 10px;
  padding: 15px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.steps-input-form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  flex: 1;
  min-width: 120px;
  max-width: 150px;
}

.steps-input-form button {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 0;
}

.steps-input-form button:hover {
  background-color: #388E3C;
}

.step-history {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.step-history h4 {
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
  font-size: 16px;
}

.step-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 5px;
}

.step-entry {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f0f7ff;
  border-radius: 8px;
  border-left: 3px solid #4CAF50;
}

.step-date {
  font-size: 14px;
  color: #555;
}

.step-count {
  font-weight: 600;
  color: #333;
}

.empty-history {
  color: #888;
  text-align: center;
  padding: 15px;
  font-style: italic;
}

/* Dark mode for step tracker */
body.dark-mode .stats-card.step-tracker {
  background: linear-gradient(145deg, #1f1f1f, #252d38);
  border-left: 4px solid #81c784;
}

body.dark-mode .step-progress-circle-inner {
  background: #1f1f1f;
}

body.dark-mode #steps-count {
  color: #81c784;
}

body.dark-mode .step-info-item {
  background: #2a2a2a;
}

body.dark-mode .steps-input-form input {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .step-entry {
  background: #2a2a2a;
  border-left: 3px solid #81c784;
}

body.dark-mode .step-date {
  color: #b0b0b0;
}

body.dark-mode .step-count {
  color: #e0e0e0;
}

body.dark-mode .empty-history {
  color: #b0b0b0;
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

/* New Stats Dashboard Layout */
.stats-dashboard {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 20px;
  align-items: stretch;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  width: 100%;
}

.main-stats-row {
  width: 100%;
  justify-content: space-between;
}

.secondary-stats-row {
  width: 100%;
  justify-content: space-between;
}

.stats-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto !important;
  min-height: auto !important;
  display: flex;
  flex-direction: column;
}

.stats-card.step-tracker,
.stats-card.calorie-stats {
  flex: 1;
  min-width: 300px;
  max-width: calc(50% - 12.5px);
  /* 50% width minus half of the gap */
}

.stats-card.macro-stats,
.stats-card.daily-summary {
  flex: 1;
  min-width: 300px;
  max-width: calc(50% - 12.5px);
  /* 50% width minus half of the gap */
}

.stats-card.macro-stats {
  background: linear-gradient(145deg, #ffffff, #f0f7ff);
  border-left: 4px solid #36A2EB;
}

.stats-card.daily-summary {
  background: linear-gradient(145deg, #ffffff, #f7f0ff);
  border-left: 4px solid #8e44ad;
}

.summary-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 15px 0;
  height: 100%;
  justify-content: space-around;
}

.summary-metric {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f8f8f8;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.summary-metric:hover {
  transform: translateX(5px);
}

.metric-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.metric-data {
  flex: 1;
}

.metric-data h4 {
  margin: 0 0 5px 0;
  font-weight: 500;
  font-size: 14px;
  color: #666;
}

.metric-value {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* Step Tracker Card */
.stats-card.step-tracker {
  background: linear-gradient(145deg, #ffffff, #f0f7ff);
  border-left: 4px solid #4CAF50;
}

/* Calorie Counter Card */
.stats-card.calorie-stats {
  background: linear-gradient(145deg, #ffffff, #fff6f0);
  border-left: 4px solid #FF5722;
}

/* Main Stats Card - Calorie Progress */
.calorie-progress-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.calorie-progress-ring {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  gap: 30px;
}

.progress-circle {
  width: 150px;
  height: 150px;
  position: relative;
}

.progress-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#FF5722 var(--progress, 0%), #E0E0E0 0%);
  transition: background 0.3s ease;
}

.progress-circle-inner {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#calorie-progress {
  font-size: 36px;
  font-weight: 700;
  color: #FF5722;
}

.progress-unit {
  font-size: 16px;
  color: #757575;
}

.calorie-target-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.calorie-info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  background: #f8f8f8;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.calorie-info-item:hover {
  transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .stats-card.step-tracker,
  .stats-card.calorie-stats {
    max-width: 100%;
    /* Full width on small screens */
  }

  .stats-card.macro-stats,
  .stats-card.daily-summary {
    max-width: 100%;
    /* Full width on small screens */
  }

  .stats-row {
    flex-direction: column;
  }

  .calorie-progress-ring {
    flex-direction: column;
    align-items: center;
  }

  .calorie-target-info {
    width: 100%;
  }

  .summary-metrics {
    flex-direction: column;
  }

  .progress-circle {
    width: 150px;
    height: 150px;
  }

  #calorie-progress {
    font-size: 30px;
  }
}

/* Dark Mode for Stats */
body.dark-mode .stats-card {
  background: #1f1f1f;
  color: #e0e0e0;
}

body.dark-mode .stats-card h3 {
  color: #e0e0e0;
}

body.dark-mode .stats-card.step-tracker {
  background: linear-gradient(145deg, #1f1f1f, #252d38);
  border-left: 4px solid #81c784;
}

body.dark-mode .stats-card.calorie-stats {
  background: linear-gradient(145deg, #1f1f1f, #38291f);
  border-left: 4px solid #FF8A65;
}

body.dark-mode .stats-card.macro-stats {
  background: linear-gradient(145deg, #1f1f1f, #1a2536);
  border-left: 4px solid #2186cf;
}

body.dark-mode .stats-card.daily-summary {
  background: linear-gradient(145deg, #1f1f1f, #2d1f36);
  border-left: 4px solid #9b59b6;
}

body.dark-mode .summary-metric {
  background: #2a2a2a;
}

body.dark-mode .metric-icon {
  background: #333;
}

body.dark-mode .metric-data h4 {
  color: #bbb;
}

body.dark-mode .metric-value {
  color: #e0e0e0;
}

body.dark-mode .progress-circle-inner {
  background: #1f1f1f;
}

body.dark-mode #calorie-progress {
  color: #FF8A65;
}

body.dark-mode #steps-count {
  color: #81c784;
}

body.dark-mode .calorie-info-item,
body.dark-mode .step-info-item {
  background: #2a2a2a;
}

body.dark-mode .info-label {
  color: #b0b0b0;
}

body.dark-mode .info-value {
  color: #e0e0e0;
}

/* ===== SETTINGS SECTION ===== */
.settings-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 300px;
  margin: 20px auto;
}

.settings-buttons button {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.settings-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.settings-buttons .dark-mode-btn {
  background-color: #2d2d2d;
  color: white;
}

.settings-buttons .sign-out-btn {
  background-color: #dc3545;
  color: white;
}

.settings-buttons .sign-out-btn:hover {
  background-color: #c82333;
}

/* Dark mode */
body.dark-mode .settings-buttons .sign-out-btn {
  background-color: #b02a37;
}

body.dark-mode .settings-buttons .sign-out-btn:hover {
  background-color: #a52834;
}

/* ===== MODAL STYLES ===== */
.modal {
  position: absolute;
  z-index: 1000;
  background: white;
  padding: 20px;
  border-radius: 8px;
}

/* ===== FEEDBACK MODAL ===== */
#feedback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(3px);
}

.feedback-container {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease forwards;
  position: relative;
}

.feedback-header {
  padding: 20px 25px;
  background: linear-gradient(135deg, #3498db, #2196f3);
  color: white;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feedback-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.close-btn:hover {
  opacity: 1;
}

/* Progress Bar */
.feedback-progress {
  padding: 15px 25px;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.progress-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2196f3, #3f51b5);
  width: 33.33%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 14px;
  color: #757575;
  text-align: right;
  margin: 0;
}

/* Feedback Steps */
.feedback-step {
  padding: 25px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.feedback-step h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #333;
}

/* Emoji Rating */
.rating-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.emoji-rating {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 350px;
  margin-bottom: 15px;
}

.emoji {
  font-size: 32px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s ease;
  padding: 10px;
  position: relative;
}

.emoji:hover,
.emoji.selected {
  opacity: 1;
  transform: scale(1.2);
}

.emoji.selected::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #2196f3;
  border-radius: 50%;
}

.rating-text {
  font-size: 14px;
  color: #757575;
  height: 20px;
}

/* Category Selection */
.category-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.category-option {
  flex-basis: calc(50% - 10px);
}

.category-option label {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-option input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #2196f3;
}

.category-option label:hover {
  background: #e3f2fd;
}

.category-option input[type="checkbox"]:checked+label {
  background: #e3f2fd;
  border-left: 3px solid #2196f3;
}

/* Text area */
#feedback-text {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 15px;
  transition: border 0.2s ease;
}

#feedback-text:focus {
  outline: none;
  border-color: #2196f3;
}

.warning-text {
  color: #f44336;
  font-size: 14px;
  margin-top: 5px;
  margin-bottom: 15px;
  min-height: 20px;
}

/* Contact Preference */
.contact-preference {
  margin-bottom: 20px;
}

.contact-preference h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #424242;
}

.toggle-switch-container {
  display: flex;
  align-items: center;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-right: 10px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.toggle-slider {
  background-color: #2196F3;
}

input:checked+.toggle-slider:before {
  transform: translateX(26px);
}

#contact-details {
  margin-top: 15px;
  transition: all 0.3s ease;
}

#contact-details.hidden {
  height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
}

#contact-details input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
}

/* Navigation Buttons */
.feedback-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.step-btn,
.submit-btn,
.close-thank-you {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prev-btn {
  background: #f5f5f5;
  color: #424242;
}

.next-btn,
.submit-btn,
.close-thank-you {
  background: #2196f3;
  color: white;
}

.prev-btn:hover {
  background: #e0e0e0;
}

.next-btn:hover,
.submit-btn:hover,
.close-thank-you:hover {
  background: #1976d2;
}

.step-btn:disabled {
  background: #e0e0e0;
  color: #9e9e9e;
  cursor: not-allowed;
}

/* Thank You Screen */
#thank-you {
  text-align: center;
  padding: 40px 25px;
}

.check-circle {
  width: 80px;
  height: 80px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 40px;
  animation: scaleIn 0.5s ease forwards;
}

.thank-you-content h3 {
  color: #2196f3;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.close-thank-you {
  margin-top: 20px;
}

/* ===== DARK MODE STYLES ===== */
body.dark-mode {
  background: linear-gradient(to right, #1a1a1a, #2d3436) !important;
  color: #e0e0e0;
}

/* Dashboard in dark mode */
body.dark-mode .dashboard-content {
  background: #121212;
}

/* Cards in dark mode */
body.dark-mode .activity-card,
body.dark-mode .stat-card,
body.dark-mode .medicine-section,
body.dark-mode .appointment-section {
  background: #1f1f1f;
  color: #e0e0e0;
  border-color: #333;
}

body.dark-mode .activity-card h3,
body.dark-mode .stat-card h3 {
  color: #f0f0f0;
}

body.dark-mode .dashboard-header h1 {
  color: #ff7043;
}

/* Sidebar in dark mode */
body.dark-mode .mobile-sidebar,
body.dark-mode .sidebar-toggle {
  background: #c23616;
}

/* Inputs in dark mode */
body.dark-mode input[type="text"],
body.dark-mode input[type="number"],
body.dark-mode input[type="date"],
body.dark-mode input[type="time"],
body.dark-mode input[type="password"],
body.dark-mode textarea,
body.dark-mode #contact-details input {
  background: #2d2d2d;
  color: #e0e0e0;
  border-color: #444;
}

body.dark-mode input::placeholder {
  color: #999;
}

/* Login page in dark mode */
body.dark-mode .login-container {
  background: rgba(31, 31, 31, 0.9);
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .login-container h2,
body.dark-mode .login-container h3,
body.dark-mode .login-container label,
body.dark-mode .contact-preference h4 {
  color: #e0e0e0;
}

body.dark-mode .login-container a {
  color: #4fc3f7;
}

body.dark-mode .login-container input:-webkit-autofill,
body.dark-mode .login-container input:-webkit-autofill:hover,
body.dark-mode .login-container input:-webkit-autofill:focus {
  box-shadow: 0 0 0px 1000px #2d2d2d inset !important;
  -webkit-text-fill-color: #e0e0e0 !important;
}

/* Feedback modal in dark mode */
body.dark-mode #feedback-modal {
  background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .feedback-container {
  background: #1f1f1f;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .feedback-progress {
  background: #2a2a2a;
  border-bottom: 1px solid #333;
}

body.dark-mode .feedback-step h3 {
  color: #e0e0e0;
}

body.dark-mode .rating-text,
body.dark-mode .progress-text {
  color: #bbb;
}

body.dark-mode .prev-btn {
  background: #2a2a2a;
  color: #e0e0e0;
}

body.dark-mode .prev-btn:hover {
  background: #3a3a3a;
}

body.dark-mode .step-btn:disabled {
  background: #3a3a3a;
  color: #757575;
}

body.dark-mode .category-option label {
  background: #2a2a2a;
}

body.dark-mode .category-option label:hover {
  background: #1e3a5f;
}

body.dark-mode .category-option input[type="checkbox"]:checked+label {
  background: #1e3a5f;
  border-left: 3px solid #4fc3f7;
}

body.dark-mode .thank-you-content h3 {
  color: #4fc3f7;
}

body.dark-mode .emoji.selected::after {
  background: #4fc3f7;
}

/* Dark mode button */
body.dark-mode .dark-mode-btn {
  background-color: #f0f0f0;
  color: #121212;
}

body.dark-mode .dark-mode-btn:hover {
  background-color: #ffffff;
}

/* Activity cards in dark mode */
body.dark-mode .activity-card.sleep,
body.dark-mode .activity-card.water {
  background: #203d4d;
  border-color: #006086;
}

/* Analytics section in dark mode */
body.dark-mode .analytics-card {
  background-color: #2d2d2d;
  color: #e0e0e0;
}

body.dark-mode .analytics-box {
  background-color: #1f1f1f;
  border-color: #444;
}

/* Settings buttons in dark mode */
body.dark-mode .settings-buttons .dark-mode-btn {
  background-color: #f0f0f0;
  color: #121212;
}

/* ===== NUTRITION SECTION STYLES ===== */
.nutrition-section {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Nutritional Tips Section */
.nutritional-tips-section {
  background: linear-gradient(145deg, #ffffff, #f5fff0);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #4CAF50;
}

.nutritional-tips-section h3 {
  color: #2E7D32;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.nutritional-tips-section h3::before {
  content: '💡';
  margin-right: 10px;
}

.nutritional-tips-section p {
  margin-bottom: 15px;
  color: #424242;
  line-height: 1.6;
}

.tips-list {
  padding-left: 20px;
}

.tips-list li {
  margin-bottom: 12px;
  color: #555;
  line-height: 1.5;
}

.tips-list li strong {
  color: #2E7D32;
  font-weight: 600;
}

/* Meal Section */
.meal-section {
  background-color: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.meal-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 20px;
}

.meal-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.meal-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #757575;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.meal-tab:hover {
  color: #FF5722;
}

.meal-tab.active {
  color: #FF5722;
}

.meal-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #FF5722;
  border-radius: 3px 3px 0 0;
}

.meal-content {
  padding: 15px 0;
}

.food-list {
  min-height: 150px;
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding: 10px 0;
  border-radius: 8px;
}

.food-list::-webkit-scrollbar {
  width: 6px;
}

.food-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.food-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.food-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.food-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 3px solid #FF5722;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.food-item:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.food-info {
  flex-grow: 1;
}

.food-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
}

.food-details {
  font-size: 14px;
  color: #757575;
  display: flex;
  gap: 15px;
}

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

.food-delete {
  background: none;
  border: none;
  color: #f44336;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  transition: transform 0.2s ease;
}

.food-delete:hover {
  transform: scale(1.2);
}

.food-edit {
  background: none;
  border: none;
  color: #2196F3;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  transition: transform 0.2s ease;
}

.food-edit:hover {
  transform: scale(1.2);
}

.empty-meal-message {
  text-align: center;
  color: #9e9e9e;
  font-style: italic;
  padding: 30px 0;
}

.add-food-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.food-input-container {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.add-food-form input {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
}

.add-food-form input[type="text"] {
  flex: 3;
  min-width: 120px;
}

.add-food-form input[type="number"] {
  flex: 1;
  min-width: 80px;
}

.add-food-btn {
  background-color: #FF5722;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-food-btn:hover {
  background-color: #E64A19;
}

/* Meal Planner Section */
.meal-plan-section {
  background-color: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.meal-plan-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 20px;
}

.meal-plan-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.meal-plan-toggle button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f5f5f5;
  color: #333;
  margin-top: 0;
}

.meal-plan-toggle button.active {
  background-color: #673AB7;
  color: white;
}

.meal-plan-toggle button:hover:not(.active) {
  background-color: #e0e0e0;
}

.day-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 15px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.day-selector::-webkit-scrollbar {
  display: none;
}

.day-btn {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: #757575;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-top: 0;
}

.day-btn.active {
  background-color: #673AB7;
  color: white;
  border-color: #673AB7;
}

.day-btn:hover:not(.active) {
  border-color: #673AB7;
  color: #673AB7;
}

.meal-plan-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.meal-plan-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  height: 100%;
  min-height: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 3px solid #673AB7;
}

.meal-plan-card h4 {
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.plan-meal-items {
  min-height: 120px;
}

.plan-meal-item {
  padding: 10px 12px;
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 2px solid #FF9800;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.empty-plan-message {
  color: #9e9e9e;
  font-style: italic;
  text-align: center;
  padding: 30px 0;
}

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

.form-row {
  display: flex;
  gap: 10px;
}

.form-row select {
  flex: 1;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.meal-plan-form textarea {
  width: 100%;
  height: 120px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  resize: vertical;
  font-family: inherit;
}

.save-plan-btn {
  background-color: #673AB7;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.save-plan-btn:hover {
  background-color: #5E35B1;
}

/* Nutrition Calculator */
.nutrition-calculator {
  background: linear-gradient(145deg, #ffffff, #fff5f2);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #FF5722;
}

.nutrition-calculator h3 {
  color: #D84315;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.nutrition-calculator p {
  margin-bottom: 20px;
  color: #424242;
  line-height: 1.6;
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.calculator-form>div {
  display: flex;
  flex-direction: column;
}

.calculator-form label {
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.calculator-form input,
.calculator-form select {
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
}

.calculator-form input:focus,
.calculator-form select:focus {
  outline: none;
  border-color: #FF5722;
  box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.2);
}

.calculate-btn {
  grid-column: span 3;
  background-color: #FF5722;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.calculate-btn:hover {
  background-color: #E64A19;
}

.calculator-result {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.result-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.result-values {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.result-item {
  text-align: center;
  padding: 15px 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-width: 120px;
  border-bottom: 3px solid #FF5722;
}

.result-item-value {
  font-size: 24px;
  font-weight: 700;
  color: #FF5722;
  margin-bottom: 8px;
}

.result-item-label {
  font-size: 14px;
  color: #757575;
}

/* Dark Mode Styles for Nutrition Section */
body.dark-mode .nutritional-tips-section {
  background: linear-gradient(145deg, #1f1f1f, #1a2311);
  border-left: 4px solid #66BB6A;
}

body.dark-mode .nutritional-tips-section h3 {
  color: #81C784;
}

body.dark-mode .nutritional-tips-section p,
body.dark-mode .nutrition-calculator p {
  color: #e0e0e0;
}

body.dark-mode .tips-list li {
  color: #b0b0b0;
}

body.dark-mode .tips-list li strong {
  color: #81C784;
}

body.dark-mode .meal-section,
body.dark-mode .meal-plan-section {
  background-color: #1f1f1f;
}

body.dark-mode .meal-section h3,
body.dark-mode .meal-plan-section h3 {
  color: #e0e0e0;
}

body.dark-mode .meal-tabs {
  border-bottom-color: #444;
}

body.dark-mode .meal-tab {
  color: #9e9e9e;
}

body.dark-mode .meal-tab:hover {
  color: #FF8A65;
}

body.dark-mode .meal-tab.active {
  color: #FF8A65;
}

body.dark-mode .meal-tab.active::after {
  background-color: #FF8A65;
}

body.dark-mode .food-item {
  background-color: #2a2a2a;
  border-left-color: #FF8A65;
}

body.dark-mode .food-name {
  color: #e0e0e0;
}

body.dark-mode .food-details {
  color: #b0b0b0;
}

body.dark-mode .empty-meal-message,
body.dark-mode .empty-plan-message {
  color: #777;
}

body.dark-mode .add-food-form input,
body.dark-mode .form-row select,
body.dark-mode .meal-plan-form textarea {
  background-color: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .day-btn {
  background-color: #2a2a2a;
  border-color: #444;
  color: #9e9e9e;
}

body.dark-mode .day-btn.active {
  background-color: #512DA8;
  color: #e0e0e0;
  border-color: #512DA8;
}

body.dark-mode .day-btn:hover:not(.active) {
  border-color: #7E57C2;
  color: #7E57C2;
}

body.dark-mode .meal-plan-card {
  background-color: #2a2a2a;
  border-left-color: #7E57C2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .meal-plan-card h4 {
  color: #e0e0e0;
}

body.dark-mode .plan-meal-item {
  background-color: #333;
  border-left-color: #FFA726;
  color: #e0e0e0;
}

body.dark-mode .nutrition-calculator {
  background: linear-gradient(145deg, #1f1f1f, #2d1f1b);
  border-left: 4px solid #FF8A65;
}

body.dark-mode .nutrition-calculator h3 {
  color: #FF8A65;
}

body.dark-mode .calculator-form label {
  color: #b0b0b0;
}

body.dark-mode .calculator-result {
  background-color: #2a2a2a;
}

body.dark-mode .result-title {
  color: #e0e0e0;
}

body.dark-mode .result-item {
  background-color: #333;
  border-bottom-color: #FF8A65;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .result-item-value {
  color: #FF8A65;
}

body.dark-mode .result-item-label {
  color: #b0b0b0;
}

/* Responsive Design for Nutrition Section */
@media (max-width: 768px) {
  .calculator-form {
    grid-template-columns: 1fr;
  }

  .calculate-btn {
    grid-column: span 1;
  }

  .meal-plan-content {
    grid-template-columns: 1fr;
  }

  .result-values {
    flex-direction: column;
    align-items: center;
  }

  .result-item {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .food-input-container {
    flex-direction: column;
  }

  .add-food-form {
    flex-direction: column;
  }

  .add-food-btn {
    width: 100%;
  }
}

/* Enhanced AI Health Assistant Chat Styles */
.chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FF5722;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
}

.chatbot-toggle i {
  color: white;
  font-size: 24px;
}

.chatbot-toggle:hover {
  transform: scale(1.05);
  background-color: #FF7043;
}

.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  height: 500px;
  background: #212121;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 998;
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.chatbot-container.active {
  transform: scale(1);
}

.chatbot-header {
  background: linear-gradient(to right, #C23616, #FF5722);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.chatbot-header h3 i {
  margin-right: 10px;
  font-size: 20px;
  color: white;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #1E1E1E;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  padding: 12px 15px;
  border-radius: 10px;
  max-width: 85%;
  word-break: break-word;
  animation: fadeIn 0.3s ease;
}

.bot-message {
  background: #323232;
  color: #E0E0E0;
  margin-right: auto;
  border-radius: 10px 10px 10px 0;
}

.user-message {
  background: #1565C0;
  color: white;
  margin-left: auto;
  border-radius: 10px 10px 0 10px;
}

.chatbot-input {
  display: flex;
  background: #2A2A2A;
  padding: 12px;
  border-top: 1px solid #444;
}

.chatbot-input input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 30px;
  background: #323232;
  color: white;
  font-size: 14px;
  outline: none;
}

.chatbot-input input::placeholder {
  color: #AAA;
}

.chatbot-send {
  background: #FF5722;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.chatbot-send:hover {
  background: #E64A19;
}

.bullet-points {
  margin-top: 10px;
}

.bullet {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}

.bullet-dot {
  margin-right: 3px;
  margin-left: 5px;
}

.bullet-dot:first-child {
  margin-left: 0;
}

.bot-typing {
  color: #AAA;
  font-style: italic;
}

.bot-typing::after {
  content: '...';
  animation: typing 1.5s infinite;
}

@keyframes typing {
  0% {
    content: '.';
  }

  33% {
    content: '..';
  }

  66% {
    content: '...';
  }
}
