.feature-locked {
    position: relative;
    opacity: 0.7;
    cursor: pointer;
}

.feature-locked .fa-lock {
    margin-right: 8px;
    color: #ff6b6b;
}

.tab-button.feature-locked {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}

.tab-button.feature-locked:hover {
    background-color: #e9ecef;
}

.search-button.loading {
    position: relative;
    color: transparent;
}

.search-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 0.8s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

.strain-compounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
/* Sentiment Analysis */
.feedback-section.animate-section .sentiment-details {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 1.2rem !important;
    margin-top: 1rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.feedback-section.animate-section .sentiment-score {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
    padding: 0.8rem !important;
    background: white !important;
    border-radius: 6px !important;
}

.sentiment-score .label {
    font-weight: 500;
    color: #495057;
}

.feedback-section.animate-section .sentiment-score .value.positive {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
}

.feedback-section.animate-section .sentiment-score .value.negative {
    background: #ffebee !important;
    color: #c62828 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
}

.sentiment-score .value.neutral {
    background: #f5f5f5;
    color: #616161;
}

/* Compound Section */
.feedback-section.animate-section .compound-section {
    background: #f8f9fa !important;
    padding: 1.2rem !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.compound-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feedback-section.animate-section .strain-type-match {
    background: #e3f2fd !important;
    color: #1565c0 !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
}

.feedback-section .compound-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.feedback-section.animate-section .compound-tag {
    background: #e3f2fd !important;
    color: #1565c0 !important;
    padding: 0.6rem 1rem !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.compound-tag.cannabinoid {
    background: #e3f2fd;
    color: #1565c0;
}

.compound-tag.terpene {
    background: #f3e5f5;
    color: #7b1fa2;
  }
  
.profile-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.profile-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    background: rgba(0,0,0,0.05);
}

.profile-icon i {
    font-size: 0.8rem;
}

.effect-name {
    margin-left: 0.25rem;
}

.recommendation-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.error-message {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4444;
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 1000;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}
  /* Feedback Sections Styling */
  .feedback-sections {
      display: grid;
      gap: 1.5rem;
      padding: 1.5rem;
      max-width: 1200px;
      margin: 0 auto;
  }

  .feedback-section {
      background: var(--surface-color, #ffffff);
      border-radius: 12px;
      padding: 1.5rem;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      animation: slideIn 0.5s ease-out forwards;
  }

  /* Vibrant Tag Colors */
  .medical-tag {
      background: #e3f2fd;
      color: #1976d2;
      border: 1px solid #bbdefb;
  }

  .symptom-tag {
      background: #e8f5e9;
      color: #2e7d32;
      border: 1px solid #c8e6c9;
  }

  .condition-tag {
      background: #fff3e0;
      color: #f57c00;
      border: 1px solid #ffe0b2;
  }

  .concern-tag {
      background: #ffebee;
      color: #c62828;
      border: 1px solid #ffcdd2;
  }

  .characteristic-tag {
      background: #e1f5fe;
      color: #0277bd;
      border: 1px solid #b3e5fc;
  }

  .goal-tag {
      background: #f3e5f5;
      color: #7b1fa2;
      border: 1px solid #e1bee7;
  }

  /* Shared Tag Styles */
  .medical-tag, .concern-tag, .characteristic-tag, .goal-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      margin: 0.25rem;
      font-size: 0.9rem;
      transition: all 0.3s ease;
  }

  /* Hover Effects */
  .medical-tag:hover, .concern-tag:hover, .characteristic-tag:hover, .goal-tag:hover {
      transform: translateY(-2px);
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

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

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

  .animate-section {
      animation: slideIn 0.5s ease-out forwards;
  }

  .tag-container {
      animation: fadeIn 0.5s ease-out forwards;
      animation-delay: 0.3s;
  }

  /* Section Headers */
  .section-header {
      color: #2c3e50;
      font-size: 1.2rem;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid #e0e0e0;
  }

  .section-header i {
      color: #1976d2;
      margin-right: 0.5rem;
  }
.intent-details {
    display: grid;
    gap: 1rem;
}

.primary-intent, .usage-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.specific-goals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.strain-analysis {
    display: grid;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-top: 1.5rem;
}

.compound-match {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.match-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4CAF50;
    min-width: 60px;
}

.terpene-analysis, .cannabinoid-analysis {
    background: rgba(0, 0, 0, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
}

.compound-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.compound-match-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.match-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
}

.nlp-insights {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(25, 118, 210, 0.05);
    border-radius: 8px;
}

.insight-tag {
    background: #E3F2FD;
    color: #1976D2;
    border: 1px solid #BBDEFB;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem;
}

/* Enhanced Analysis Display */
.strain-analysis-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    background: var(--surface-color, #ffffff);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.compound-profile {
    background: var(--surface-color, #ffffff);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.effect-analysis {
    background: rgba(25, 118, 210, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.recommendation-summary {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recommendation-summary-text {
    color: #1976d2;
    font-weight: 500;
    line-height: 1.5;
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: white;
}
  .feedback-section.recommendation-summary {
      background: #e3f2fd !important;
      padding: 1.5rem !important;
      border-radius: 8px !important;
      margin-top: 2rem !important;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
      grid-column: 1 / -1 !important;
      width: 100% !important;
  }

  .feedback-section.recommendation-summary .recommendation-summary-text {
      color: #1976d2 !important;
      font-weight: 500 !important;
      line-height: 1.5 !important;
      font-size: 1.1rem !important;
      text-align: center !important;
      background: transparent !important;
      padding: 1rem !important;
  }

.sentiment-details {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

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

.sentiment-score .value {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.sentiment-score .positive { color: #4CAF50; }
.sentiment-score .negative { color: #f44336; }
.sentiment-score .neutral { color: #9e9e9e; }

/* Mobile responsiveness fixes */
.recommendation-form {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.recommendation-form input[type="text"] {
    position: static;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none; /* Prevents iOS default styling */
    appearance: none; /* Standard property for compatibility */}

/* Prevent independent scrolling */
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
    .recommendation-form {
        padding: 1rem;
    }
    
    .recommendation-form input[type="text"] {
        font-size: 16px; /* Prevents zoom on iOS */
        margin-bottom: 1rem;
    }
    
    /* Ensure content stays within viewport */
    .recommendation-content {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}
