/* Enhanced App Styling */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  background-color: #f5f7fa;
  padding-bottom: 100px;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

:root {
  --app-primary: #1e5631;
  --app-primary-light: #a7e3b9;
  --app-secondary: #e83e8c;
  --app-secondary-light: #f8d7e6;
  --app-accent: #3d7cf9;
  --app-gray-light: #f5f7fa;
  --app-gray-medium: #dbe1e8;
  --app-gray-dark: #8a94a6;
  --app-dark: #333333;
  --app-gradient-primary: linear-gradient(135deg, #1e5631, #2a7d45);
  --app-gradient-secondary: linear-gradient(135deg, #e83e8c, #f06598);
  --app-gradient-blue: linear-gradient(135deg, #3d7cf9, #64a1ff);
  --app-shadow-sm: 0 2px 10px rgba(0,0,0,0.03);
  --app-shadow-md: 0 8px 20px rgba(0,0,0,0.06);
  --app-shadow-lg: 0 15px 30px rgba(0,0,0,0.08);
  --app-radius-sm: 8px;
  --app-radius-md: 12px;
  --app-radius-lg: 20px;
}
    
.app-container {
  max-width: 1200px;
  margin: 30px auto;
  background: white;
  border-radius: var(--app-radius-lg);
  box-shadow: var(--app-shadow-lg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.app-container::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(167,227,185,0.08) 0%, rgba(255,255,255,0) 70%);
  top: -400px;
  right: -400px;
  z-index: -1;
  border-radius: 50%;
}
    
.app-header {
  background: var(--app-gradient-primary);
  color: white;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.06' fill-rule='evenodd'/%3E%3C/svg%3E");
  top: 0;
  left: 0;
  opacity: 0.6;
}
    
.app-header h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
    
.app-header p {
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1.1rem;
}
    
.app-tabs {
  display: flex;
  background-color: white;
  border-bottom: 1px solid var(--app-gray-medium);
}
    
.app-tab {
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--app-gray-dark);
  transition: all 0.3s;
  position: relative;
  text-align: center;
  flex: 1;
}
    
.app-tab.active {
  color: var(--app-primary);
  position: relative;
}

.app-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--app-gradient-secondary);
}
    
.app-tab:hover {
  color: var(--app-primary);
  background-color: rgba(231, 241, 236, 0.3);
}
    
.app-tab i {
  margin-right: 8px;
  font-size: 1.1rem;
}
    
.tab-content {
  display: none;
  padding: 50px;
  animation: fadeIn 0.5s;
}
    
.tab-content.active {
  display: block;
}
    
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
    
/* Advanced BMI Calculator Styles */
.advanced-bmi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
    
.bmi-input-card,
.bmi-result-card {
  background: white;
  border-radius: var(--app-radius-md);
  box-shadow: var(--app-shadow-md);
  padding: 35px;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid var(--app-gray-medium);
}

.bmi-input-card:hover,
.bmi-result-card:hover {
  box-shadow: var(--app-shadow-lg);
  border-color: var(--app-gray-light);
}
    
.bmi-input-card h3,
.bmi-result-card h3 {
  color: var(--app-primary);
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 600;
  border-bottom: 2px solid var(--app-gray-light);
  padding-bottom: 15px;
}
    
.guspinova-rec {
      margin-top: 30px;
      padding: 20px;
      border-radius: 10px;
      border-left: 5px solid var(--secondary);
      background-color: rgba(167,227,185,0.2);
    }
    
    .rec-list {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      margin-top: 20px;
    }
    
    .rec-item {
      background: white;
      border-radius: 10px;
      padding: 15px;
      box-shadow: 0 3px 10px rgba(0,0,0,0.05);
      width: calc(50% - 8px);
      display: flex;
      align-items: center;
      gap: 15px;
    }
    
    .rec-icon {
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--primary-light);
      color: var(--primary);
      border-radius: 50%;
      font-size: 1.5rem;
    }
    
    .rec-detail h4 {
      font-size: 1.1rem;
      color: var(--primary);
    }
    
    .rec-detail p {
      font-size: 0.9rem;
      color: var(--text-light);
    }
    
    /* Membership Program Styles */
    .membership-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
    }
    
    .membership-status {
      padding: 25px;
      background: linear-gradient(135deg, #FFCC33, #FF9900);
      border-radius: var(--app-radius-md);
      box-shadow: var(--app-shadow-md);
      display: flex;
      gap: 25px;
      align-items: center;
      overflow: hidden;
      position: relative;
    }

    .membership-status::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M0 0h80v80H0V0zm20 20v40h40V20H20zm20 35a15 15 0 1 1 0-30 15 15 0 0 1 0 30z' /%3E%3C/g%3E%3C/svg%3E");
    }
    
    .membership-level {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      background: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .membership-level i {
      font-size: 2rem;
      color: #f8b500;
    }
    
    .membership-details h3 {
      color: white;
      margin-bottom: 5px;
    }
    
    .membership-details p {
      color: rgba(255,255,255,0.9);
    }
    
    .points-section {
      padding: 20px;
      background: white;
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      margin-bottom: 30px;
    }
    
    .points-bar {
      height: 30px;
      background: var(--gray-light);
      border-radius: 15px;
      margin: 15px 0;
      overflow: hidden;
      position: relative;
    }
    
    .points-progress {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      border-radius: 15px;
      width: 65%;
      transition: width 1s;
    }
    
    .points-labels {
      display: flex;
      justify-content: space-between;
      color: var(--text-light);
      font-size: 0.9rem;
    }
    
    .benefits-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
      margin-top: 30px;
    }
    
    .benefit-card {
      background: white;
      border-radius: 15px;
      padding: 20px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      transition: transform 0.3s;
    }
    
    .benefit-card:hover {
      transform: translateY(-5px);
    }
    
    .benefit-header {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 15px;
    }
    
    .benefit-icon {
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--primary-light);
      color: var(--primary);
      border-radius: 50%;
      font-size: 1.5rem;
    }
    
    .benefit-card h4 {
      color: var(--primary);
      font-size: 1.1rem;
    }
    
    .benefit-card p {
      color: var(--text-light);
      font-size: 0.95rem;
    }
    
    /* Teen Nutrition Education Styles */
    .edu-header {
      margin-bottom: 30px;
      text-align: center;
    }
    
    .edu-tabs {
      display: flex;
      border-bottom: 2px solid var(--gray-medium);
      margin-bottom: 30px;
    }
    
    .edu-tab {
      padding: 15px 25px;
      cursor: pointer;
      font-weight: 600;
      color: var(--text-light);
      transition: all 0.3s;
      position: relative;
    }
    
    .edu-tab.active {
      color: var(--primary);
    }
    
    .edu-tab.active::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--secondary);
    }
    
    .edu-content {
      display: none;
      animation: fadeIn 0.5s;
    }
    
    .edu-content.active {
      display: block;
    }
    
    .nutrition-cards {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 25px;
      margin-top: 25px;
    }
    
    .nutrition-card {
      background: white;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      transition: transform 0.3s;
    }
    
    .nutrition-card:hover {
      transform: translateY(-8px);
    }
    
    .nutrition-image {
      height: 180px;
      overflow: hidden;
    }
    
    .nutrition-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s;
    }
    
    .nutrition-card:hover .nutrition-image img {
      transform: scale(1.05);
    }
    
    .nutrition-content {
      padding: 20px;
    }
    
    .nutrition-content h3 {
      color: var(--primary);
      margin-bottom: 10px;
    }
    
    .nutrition-content p {
      color: var(--text-light);
      font-size: 0.95rem;
      margin-bottom: 15px;
    }
    
    .nutrition-link {
      color: var(--secondary);
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    
    /* Social Integration Styles */
    .social-columns {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 30px;
    }
    
    .social-feed {
      background: white;
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      padding: 25px;
    }
    
    .post-form {
      display: flex;
      margin-bottom: 25px;
      gap: 15px;
    }
    
    .post-form textarea {
      flex: 1;
      border: 1px solid var(--gray-medium);
      border-radius: 10px;
      padding: 15px;
      resize: none;
      height: 100px;
    }
    
    .post-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 10px;
    }
    
    .post-btn {
      padding: 10px 20px;
      border: none;
      background: var(--secondary);
      color: white;
      border-radius: 5px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s;
    }
    
    .post-btn:hover {
      background: var(--primary);
      transform: translateY(-2px);
    }
    
    .feed-post {
      border-bottom: 1px solid var(--gray-medium);
      padding: 20px 0;
    }
    
    .post-header {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 15px;
    }
    
    .post-avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      overflow: hidden;
    }
    
    .post-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .post-user h4 {
      margin: 0;
      color: var(--primary);
    }
    
    .post-timestamp {
      font-size: 0.85rem;
      color: var(--text-light);
    }
    
    .post-content {
      margin-bottom: 15px;
      line-height: 1.6;
    }
    
    .post-media {
      margin-bottom: 15px;
      border-radius: 10px;
      overflow: hidden;
    }
    
    .post-media img {
      width: 100%;
      border-radius: 10px;
    }
    
    .post-actions {
      display: flex;
      gap: 20px;
    }
    
    .post-action {
      display: flex;
      align-items: center;
      gap: 5px;
      color: var(--text-light);
      cursor: pointer;
      transition: color 0.3s;
    }
    
    .post-action:hover {
      color: var(--secondary);
    }
    
    .trending-section {
      background: white;
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      padding: 25px;
      height: fit-content;
    }
    
    .trending-header {
      margin-bottom: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .trending-header h3 {
      color: var(--primary);
    }
    
    .trending-header a {
      color: var(--secondary);
      font-size: 0.9rem;
    }
    
    .trending-tag {
      display: flex;
      align-items: center;
      padding: 10px 15px;
      background: var(--gray-light);
      border-radius: 8px;
      margin-bottom: 10px;
      transition: all 0.3s;
      cursor: pointer;
    }
    
    .trending-tag:hover {
      background: var(--primary-light);
    }
    
    .trending-tag span {
      flex: 1;
      color: var(--text-dark);
    }
    
    .trending-tag .count {
      background: white;
      color: var(--primary);
      border-radius: 15px;
      padding: 3px 10px;
      font-size: 0.85rem;
      font-weight: bold;
    }
    
    /* Input styling enhancements */
.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--app-dark);
  font-size: 1rem;
}

.input-with-unit {
  position: relative;
}

.input-with-unit input,
select {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 1px solid var(--app-gray-medium);
  border-radius: var(--app-radius-sm);
  font-size: 1rem;
  transition: all 0.3s;
  background-color: #fff;
  color: var(--app-dark);
}

.input-with-unit input:focus,
select:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(61, 124, 249, 0.1);
  outline: none;
}

.input-with-unit .unit {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--app-gray-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Enhanced buttons */
.calculate-btn,
.post-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--app-gradient-blue);
  color: white;
  border: none;
  border-radius: var(--app-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.calculate-btn:hover,
.post-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(61, 124, 249, 0.2);
}