.data-container-3 {
    margin-top: 40px;
    overflow-x: auto;
    padding: 25px;
    border-radius: 15px;
}

#saveGraphButton {
    text-align: center;
    width: fit-content;
}

.contribution-graph h3 {
    margin-top: 0;
    margin-left: 10px;
}

.contribution-graph {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-top: 20px;
    padding: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    width: fit-content;
    margin: 0 auto;
}

.graph-wrapper {
    min-width: 700px;
    max-width: 900px;
    margin: 0 auto;
    width: fit-content;
}

#contribution-grid {
    display: grid;
    grid-template-columns: repeat(52, 10px);
    grid-template-rows: repeat(7, 10px);
    grid-auto-flow: column;
    gap: 3px;
    margin-bottom: 10px;
    justify-content: center;
}

#contribution-grid .day {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-color: #ebedf0;
}

.graph-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 12px;
    color: #768390;
    width: calc(52 * 13px - 3px); /* 52 columns * (10px width + 3px gap) - 3px for last gap */
    margin: 0 auto; /* Center the legend container */
}

.legend-colors {
    display: flex;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.legend-colors li {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

/* Color scale for the boxes */
.legend-colors li:nth-child(1) { background-color: #ebedf0; }  /* 0 views */
.legend-colors li:nth-child(2) { background-color: rgba(38, 98, 163, 0.25); } /* 1-33% of max */
.legend-colors li:nth-child(3) { background-color: rgba(38, 98, 163, 0.5); }  /* 34-66% of max */
.legend-colors li:nth-child(4) { background-color: rgba(38, 98, 163, 0.75); } /* 67-99% of max */
.legend-colors li:nth-child(5) { background-color: rgba(38, 98, 163, 1); }    /* 100% of max */

#month-labels {
    display: flex;
    margin-bottom: 8px;
    color: var(--color-text-tertiary);
    font-size: 12px;
    align-items: center;
    justify-content: center;
}

.month-label {
    width: calc(13px * 4.3);  /* Approximate width of 4.3 weeks */
    text-align: center;
}

.save-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 5px auto;
}

.save-buttons button {
    margin: 0;
}

.data-container-3.gradient-active {
    background: linear-gradient(135deg, #6997c7 0%, #cfdae6 100%);
}

.data-container-3.gradient-active .contribution-graph {
    border: none;
}

#gradientButton.gradient-active {
    background: linear-gradient(135deg, #6997c7 0%, #cfdae6 100%);
    color: white;
    border-color: transparent;
}

