:root {
    --bg-color: #101217;
    --sec-color: #1a1d24;
    --sec-color-2: #2a2d35;
    --white: #ffffff;
    
    --color-break: #3a3f4b;      /* Dark for break */
    --color-sketch: #1b5e20;     /* Darker green */
    --color-vector: #56de93;     /* Bright green */
    
    --border-radius: 8px;
  }
  

  .social-media-content {
    width: 100%; display: flex; justify-content: center;flex-direction:column; padding: 20px;margin-top: 30px;
}

.no-content {
    background: var(--sec-color);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    color: var(--white);
}
  
  /* Legend remains the same */
  .uc-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
  }
  
  .legend-item { display: flex; align-items: center; gap: 8px; }
  .dot { width: 12px; height: 12px; border-radius: 3px; }
  
  /* Layout Grid */
  .uc-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px; /* Label | Bar | Total */
    align-items: center;
    margin-bottom: 16px;
    gap: 15px;
  }
  
  .page-label { font-weight: 600; font-size: 0.9rem; }
  
  .uc-timeline {
    display: flex;
    height: 24px; /* Slightly taller to fit numbers */
    background: var(--sec-color-2);
    border-radius: 6px;
    overflow: hidden;
  }
  
  /* Segment Styling */
  .segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    min-width: 20px; /* Ensures small days still show a sliver of color */
  }
  
  .break { background-color: var(--color-break); }
  .sketch { background-color: var(--color-sketch); }
  .vector { background-color: var(--color-vector); color: #101217; } /* Dark text for bright green */
  
  /* Total Counter */
  .total-days {
    text-align: right;
    font-size: 0.85rem;
    color: var(--white);
    background: var(--sec-color-2);
    padding: 4px 10px;
    border-radius: 4px;
    justify-self: end;
  }

  
  .heatmap-container {
    border-radius: var(--border-radius);
    justify-content: center;
    display: flex;
    scale: 1.3;
    padding: 20px;
  }
  
  .heatmap-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--white);
  }
  
  #heatmap {
    display: grid;
    grid-template-columns: repeat(13, 1fr); /* 1 for year label + 12 months */
    gap: 0.5rem;
  }
  
  .year-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--white);
  }
  
  .month-cell {
    width: 100%;
    padding-top: 100%; /* keep it square */
    border-radius: 6px;
    background-color: var(--sec-color-2);
    position: relative;
    transition: var(--transition);
  }
  
  .month-cell:hover {
    transform: scale(1.1);
  }
  
  .month-cell::after {
    content: attr(data-count);
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.6rem;
    color: var(--white);
    opacity: 0.7;
  }
  

  



.analytics-content {
    display: block;
    padding: 20px;
  }
  
  h1, h2, h3 {
    text-align: center;
  }
  
  .chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  
  
  .chart-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .legend-section {
    display: flex;
    align-items: center;
    padding: 20px;
  }
  
  .chart-legend {
    display: flex;
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    margin-top:20px;
    margin-bottom: 20px;
    width: 100%;
    border-radius: var(--border-radius, 12px);
  }
  
  .legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
  }
  
  .legend-item span {
    font-size: 1.2em;
  }
  
  .legend-item:hover {
    background-color: rgba(86, 222, 147, 0.1);
  }
  
  .legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  .category-selection {
    text-align: center;
  }
  
  .main-content {
    display: flex;
    flex-direction: column;
  }
  
  
  .category-select {
    background: var(--sec-color, #1a1d24);
    color: var(--white, #ffffff);
    border: 1px solid var(--sec-color-2, #2a2d35);
    border-radius: var(--border-radius, 12px);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
  }
  
  .category-select:hover {
    border-color: var(--green, rgb(86, 222, 147));
    box-shadow: 0 0 0 2px rgba(86, 222, 147, 0.1);
  }
  
  .category-select:focus {
    outline: none;
    border-color: var(--green, rgb(86, 222, 147));
    box-shadow: 0 0 0 3px rgba(86, 222, 147, 0.2);
  }
  
  .category-select optgroup {
    font-weight: 600;
    color: var(--green, rgb(86, 222, 147));
    background: var(--sec-color, #1a1d24);
  }
  
  .category-select option {
    background: var(--sec-color, #1a1d24);
    color: var(--white, #ffffff);
    padding: 8px;
  }
  
  .no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--white, #ffffff);
  }
  
  .no-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--green, rgb(86, 222, 147));
  }
  
  .no-content p {
    font-size: 16px;
    opacity: 0.7;
  }
  
  .legend-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--white, #ffffff);
    text-align: left;
  }
  
  #pieChart {
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
  }
  
  #pieChart:hover {
    transform: scale(1.1);
  }
  
  