/* public/css/timeline.css */
/* Timeline styles for plant visualization */

.plant-timeline {
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--background-light);
    border-radius: 8px;
  }
  
  .timeline-title {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
  }
  
  .timeline-container {
    display: flex;
    position: relative;
    height: 80px;
  }
  
  .timeline-months {
    display: flex;
    width: 100%;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
  }
  
  .timeline-month {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    padding: 5px 0;
    border-right: 1px solid var(--border-color);
    background-color: white;
  }
  
  .timeline-month:last-child {
    border-right: none;
  }
  
  .timeline-activities {
    position: absolute;
    width: 100%;
    top: 40px;
    display: flex;
  }
  
  .timeline-activity {
    height: 30px;
    position: absolute;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .timeline-activity.planting {
    background-color: var(--light-green);
    border: 1px solid var(--primary-color);
    color: var(--dark-text);
  }
  
  .timeline-activity.transplanting {
    background-color: var(--medium-green);
    border: 1px solid var(--primary-color);
    color: var(--dark-text);
  }
  
  .timeline-activity.harvesting {
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    color: white;
  }
  
  .timeline-legend {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;  
  }
  
  .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
  }
  
  .legend-color.planting {
    background-color: var(--light-green);
  }
  
  .legend-color.transplanting {
    background-color: var(--medium-green);
  }
  
  .legend-color.harvesting {
    /* Should be removed */
    display: none;
  }
  
  /* Year view styles */
  #year-grid {
    margin-top: 1.5rem;
    overflow-x: auto;
  }
  
  .year-grid-container {
    display: grid;
    grid-template-columns: 200px repeat(12, 1fr);
    grid-auto-rows: minmax(40px, auto);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow-x: hidden;
  }
  
  .year-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .plant-row {
    display: contents;
  }
  
  .plant-name-cell {
    padding: 0.75rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: white;
    cursor: pointer;
  }
  
  .plant-name-cell:hover {
    text-decoration: underline;
    color: var(--secondary-color);
  }
  
  .month-cell {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    padding: 3px;
  }
  
  .month-cell:nth-child(odd) {
    background-color: var(--background-light);
  }
  
  .cell-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
  }
  
  .cell-indicator.planting {
    background-color: var(--light-green);
    border: 1px solid var(--primary-color);
  }
  
  .cell-indicator.transplanting {
    background-color: var(--medium-green);
    border: 1px solid var(--primary-color);
  }
  
  .cell-indicator.harvesting {
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
  }
  
  /* Growing instruction steps */
  .growing-steps {
    margin: 1.5rem 0;
  }
  
  .growing-steps h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
  }
  
  .step-list {
    list-style: none;
  }
  
  .step-item {
    display: flex;
    margin-bottom: 1rem;
  }
  
  .step-number {
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
  }
  
  .step-content {
    flex: 1;
  }
  
  /* Info icons and tooltips */
  .tooltip {
    position: relative;
    display: inline-block;
  }
  
  .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark-text);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
  }
  
  .tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .year-grid-container {
      grid-template-columns: 120px repeat(12, 1fr);
      font-size: 0.9rem;
      overflow-x: auto;
    }
    
    .year-header {
      padding: 0.3rem;
      font-size: 0.8rem;
    }
    
    .month-cell {
      padding: 2px;
    }
    
    .cell-indicator {
      width: 10px;
      height: 10px;
    }
  }