/* Custom CSS Variables */
:root {
  --primary-color: #00ADB5;
  --secondary-color: #393E46;
  --dark-color: #222831;
  --light-color: #EEEEEE;
  --accent-color: #FFD369;
  --gradient-primary: linear-gradient(135deg, #04c7d1 0%, #292b30 100%);
  --gradient-secondary: linear-gradient(135deg, #FFD369 0%, #00ADB5 100%);
  --gradient-dark: linear-gradient(135deg, #222831 0%, #393E46 100%);
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* Dark theme variables */
[data-theme="dark"] {
  --bs-body-bg: #222831;
  --bs-body-color: #EEEEEE;
  --bs-card-bg: #393E46;
  --bs-border-color: #393E46;
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;

}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: var(--gradient-primary);
  min-height: 100vh;
  transition: var(--transition);
}

[data-theme="dark"] body {
  background: var(--gradient-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.display-4 {
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(0, 173, 181, 0.95) !important;
  box-shadow: var(--shadow-light);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}


/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-lg {
  padding: 12px 30px;
  font-size: 1.1rem;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.card-header {
  border-bottom: none;
  font-weight: 600;
  padding: 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

[data-theme="dark"] .card {
  background-color: var(--bs-card-bg);
  color: var(--bs-body-color);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
  backdrop-filter: blur(10px);
}

.hero-stats {
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
  min-width: 120px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Form Elements */
.form-control, .form-select {
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.95);
  transition: var(--transition);
  padding: 12px 16px;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 173, 181, 0.25);
  background: white;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--light-color);
}

/* Statistics Cards */
.stats-card {
  background: var(--gradient-secondary);
  color: var(--dark-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  transition: var(--transition);
}

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

.stats-card .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.stats-card .stat-label {
  font-size: 1rem;
  opacity: 0.8;
}

/* Charts */
canvas {
  max-width: 100%;
  height: auto;
}

/* Checklist */
.checklist-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.checklist-item.completed {
  background: rgba(0, 173, 181, 0.2);
  border-left: 4px solid var(--primary-color);
}

.checklist-item input[type="checkbox"] {
  margin-right: 1rem;
  transform: scale(1.2);
}

/* Activities */
.activity-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  backdrop-filter: blur(5px);
}

.activity-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.activity-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: block;
}

.activity-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.activity-time {
  color: var(--primary-color);
  font-weight: 500;
}

/* Health Impact */
.health-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.health-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.health-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.health-improvement {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* Modal */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--shadow-heavy);
}

[data-theme="dark"] .modal-content {
  background-color: var(--secondary-color);
  color: var(--light-color);
}

/* Offcanvas */
.offcanvas {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

[data-theme="dark"] .offcanvas {
  background-color: var(--secondary-color);
  color: var(--light-color);
}

/* Footer */
.footer img {
  filter: brightness(1.2);
  transition: transform 0.3s ease;
}
.footer img:hover {
  transform: scale(1.1);
}
.footer a:hover {
  color: var(--accent-color);
}



/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Progress Bar */
.progress {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-bar {
  background: var(--gradient-secondary);
  border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-item {
    margin-bottom: 1rem;
    width: 100%;
    max-width: 200px;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .stats-card .stat-value {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-section {
    margin: 1rem 0;
    padding: 1.5rem 1rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .activity-card,
  .health-item {
    margin-bottom: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.5);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .ad-space {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}
