/* HealSpace Modern Design System */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Nunito:wght@300;400;600;700&display=swap");

:root {
  /* Brand Colors - Teal Theme */
  --primary: #4f9d92;
  --primary-light: #6bb5aa;
  --primary-dark: #3a7a71;
  --secondary: #f4a261;
  --accent: #e76f51;

  /* Neutrals */
  --white: #ffffff;
  --cream: #fff8f3;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4f9d92 0%, #6bb5aa 100%);
  --gradient-warm: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
  --gradient-soft: linear-gradient(180deg, #4f9d92 0%, rgba(79, 157, 146, 0.05) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Spacing */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Typography */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Nunito", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--cream);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
}

/* Logo Styles */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

/* Modern Navigation */
.modern-nav {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--primary);
}

/* Hero Section */
.hero-modern {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-logo {
  width: 180px;
  height: auto;
  margin: 0 auto 2rem;
  animation: fadeIn 1.5s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
  font-weight: 400;
}

/* Modern Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn-primary-modern {
  background: var(--gradient-primary);
  color: var(--white);
  animation: pulse 2s infinite;
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  animation: none;
}

.btn-secondary-modern {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary-modern:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-modern {
  background: transparent;
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
}

.btn-outline-modern:hover {
  background: var(--gray-50);
  border-color: var(--primary);
  color: var(--primary);
}

/* Modern Cards */
.card-modern {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-100);
}

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

.card-header-modern {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-100);
}

.card-title-modern {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.card-subtitle-modern {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 400;
}

/* Modern Form Elements */
.form-group-modern {
  margin-bottom: 1.5rem;
}

.form-label-modern {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-input-modern {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  background: var(--white);
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 157, 146, 0.1);
}

.form-textarea-modern {
  min-height: 120px;
  resize: vertical;
}

.form-select-modern {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234B5563'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5rem;
  padding-right: 3rem;
}

/* Range Slider */
.range-slider-modern {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: var(--gray-200);
  outline: none;
  -webkit-appearance: none;
}

.range-slider-modern::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.range-slider-modern::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--primary-dark);
}

.range-slider-modern::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow);
  border: none;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.range-value {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Alert Boxes */
.alert-modern {
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border-left: 4px solid;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.alert-danger-modern {
  background: #fef2f2;
  border-color: var(--danger);
  color: #991b1b;
}

.alert-warning-modern {
  background: #fffbeb;
  border-color: var(--warning);
  color: #92400e;
}

.alert-success-modern {
  background: #f0fdf4;
  border-color: var(--success);
  color: #166534;
}

.alert-info-modern {
  background: #eff6ff;
  border-color: var(--info);
  color: #1e40af;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

/* Progress Bar */
.progress-bar-modern {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* Mood Calendar */
.mood-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.mood-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--gray-200);
  background: var(--white);
}

.mood-day:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.mood-day.mood-great {
  background: #10b981;
  color: var(--white);
  border-color: #10b981;
}

.mood-day.mood-good {
  background: #6bb5aa;
  color: var(--white);
  border-color: #6bb5aa;
}

.mood-day.mood-okay {
  background: #f4a261;
  color: var(--white);
  border-color: #f4a261;
}

.mood-day.mood-bad {
  background: #e76f51;
  color: var(--white);
  border-color: #e76f51;
}

.mood-day.mood-terrible {
  background: #ef4444;
  color: var(--white);
  border-color: #ef4444;
}

/* Footer */
.footer-modern {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 2rem 2rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .card-modern {
    padding: 1.5rem;
  }

  .btn-modern {
    width: 100%;
  }

  .mood-calendar {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
  }
}

/* Utility Classes */
.container-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.py-1 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-3 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-4 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

.gap-1 {
  gap: 0.5rem;
}
.gap-2 {
  gap: 1rem;
}
.gap-3 {
  gap: 1.5rem;
}
.gap-4 {
  gap: 2rem;
}
