/* public/components/history-calendar/history.css (Updated) */

#calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#calendar-nav h3 {
    margin: 0;
    color: var(--primary-color, #667eea);
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}

.calendar-header {
    text-align: center;
    font-weight: bold;
    color: var(--primary-color, #667eea);
    padding: 5px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: bold;
    position: relative;
    cursor: pointer;
}

.calendar-day.other-month {
    color: #ccc;
    cursor: default;
}

.calendar-day.goal-met {
    background-color: #4CAF50;
    color: white;
}

.calendar-day.goal-close {
    background-color: #FFC107;
    color: #333;
}

.calendar-day.goal-missed {
    background-color: #F44336;
    color: white;
}

.calendar-day.no-data {
    background-color: #f0f0f0;
    color: #999;
    cursor: default;
}

/* --- THIS IS THE NEW STYLE --- */
.calendar-day.no-interaction {
    background-color: #ff9800; /* Orange */
    color: white;
}
/* --- END NEW STYLE --- */


#calendar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.8em;
}

.legend-item::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 5px;
}

.legend-item.goal-met::before { background-color: #4CAF50; }
.legend-item.goal-close::before { background-color: #FFC107; }
.legend-item.goal-missed::before { background-color: #F44336; }
.legend-item.no-data::before { background-color: #f0f0f0; }

/* --- THIS IS THE NEW LEGEND ITEM --- */
.legend-item.no-interaction::before {
    background-color: #ff9800;
}
/* --- END NEW LEGEND ITEM --- */


.calendar-day .tooltip {
    visibility: hidden;
    width: 140px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 10;
    bottom: 115%;
    left: 50%;
    margin-left: -70px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9em;
    pointer-events: none;
}

.calendar-day .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.calendar-day:hover .tooltip, .calendar-day .tooltip.show-tooltip {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 767px) {
    .calendar-day {
        font-size: 0.7em;
    }
    #calendar-legend {
        gap: 5px;
    }
    .legend-item {
        font-size: 0.7em;
    }
}