/* Planner Page Specific Styles */

#planner-container {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
}

/* Calendar Styles */
.calendar-day { 
    min-height: 120px; 
    transition: background-color 0.2s; 
}

.calendar-day:hover { 
    background-color: #fdfcfa; 
}

.calendar-day.other-month { 
    background-color: #fbf9f8; 
    color: #b0a8a3; 
}

.calendar-day-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.calendar-day-number { 
    font-size: 0.8rem; 
    font-weight: 500; 
}

.moon-phase, .holiday { 
    font-size: 0.75rem; 
}

.holiday { 
    font-weight: 500; 
    color: var(--brand-accent); 
}

/* Planner Event Styles */
.planner-event { 
    position: relative; 
    font-size: 0.75rem; 
    padding: 2px 6px; 
    border-radius: 4px; 
    margin-bottom: 3px; 
    cursor: pointer; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    border-left-width: 3px; 
}

.planner-event-checkbox { 
    display: none; 
    position: absolute; 
    left: -22px; 
    top: 50%; 
    transform: translateY(-50%); 
    accent-color: var(--brand-accent); 
}

.selection-mode-active .planner-event { 
    cursor: default; 
}

.selection-mode-active .planner-event-checkbox { 
    display: block; 
}

.selection-mode-active .planner-event-inner { 
    margin-left: 20px; 
}

.planner-event.selected {
    background-color: var(--brand-secondary) !important;
    border-left-color: var(--brand-accent) !important;
}

/* Event Type Colors */
.event-task { 
    background-color: #cfe2f3; 
    border-left-color: #6fa8dc; 
}

.event-sport { 
    background-color: #d9ead3; 
    border-left-color: #93c47d; 
}

.event-rest { 
    background-color: #fce5cd; 
    border-left-color: #f6b26b; 
}

.event-symptom { 
    background-color: #ead1dc; 
    border-left-color: #c27ba0; 
}

.event-energy { 
    background-color: #fff2cc; 
    border-left-color: #ffd966; 
}

.event-medicine { 
    background-color: #d0e0e3; 
    border-left-color: #76a5af; 
}

.event-gratitude { 
    background-color: #d4c4e0; 
    border-left-color: #8e7cc3; 
}

/* View Switcher */
.view-btn { 
    background-color: #fff; 
    border: 1px solid var(--brand-secondary); 
}

.view-btn.active { 
    background-color: var(--brand-accent); 
    color: white; 
    border-color: var(--brand-accent); 
}

/* AI Advice Styles */
#ai-advice-result ul {
    list-style-type: none;
    padding-left: 0;
}

#ai-advice-result li {
    background-color: var(--brand-background);
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--brand-accent);
}

#ai-advice-result .advice-day-header {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--brand-secondary);
}