/* Calendar Styles */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #dee2e6;
    border: 1px solid #dee2e6;
}

.calendar-header-cell {
    background-color: #f8f9fa;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border: 1px solid #dee2e6;
}

.calendar-day {
    background-color: white;
    min-height: 120px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.calendar-day.today {
    background-color: #e7f3ff;
}

.calendar-day.other-month {
    background-color: #f8f9fa;
    color: #adb5bd;
}

.calendar-day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.calendar-event {
    font-size: 0.75rem;
    padding: 0.25rem;
    margin-bottom: 0.125rem;
    border-radius: 0.25rem;
    cursor: pointer;
    color: white;
    text-decoration: none;
    display: block;
}

.calendar-event:hover {
    opacity: 0.8;
    color: white;
}

.calendar-event.activity {
    background-color: #198754;
}

.calendar-event.nextstep {
    background-color: #0d6efd;
}

.calendar-event.opportunity {
    background-color: #ffc107;
    color: #000;
}

.calendar-event.opportunity:hover {
    color: #000;
}

.event-title {
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-info {
    font-size: 0.65rem;
    opacity: 0.9;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.calendar-event-more {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    padding: 0.125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-header-cell:not(:first-child) {
        display: none;
    }
    
    .calendar-day {
        min-height: auto;
        border-bottom: 1px solid #dee2e6;
    }
}
