/* Styles pour la feuille de temps */

/* Calendrier mensuel */
.calendar-month-view {
    width: 100%;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #DEE2E6;
    margin-bottom: 1px;
}

.calendar-day-header {
    background: #f8fafc;
    color: #343A40;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #DEE2E6;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background-color: #f0f0f0 !important;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-day.today {
    border: 2px solid #00AE9E !important;
    background: #E8F5E9 !important;
}

.calendar-day.other-month {
    opacity: 0.4;
    background: #F8F9FA !important;
}

.calendar-day.weekend {
    background: #F8F9FA;
}

.entries-list {
    max-height: 80px;
    overflow-y: auto;
    margin-top: 8px;
}

.entry-item {
    background: #E3F2FD;
    border-left: 3px solid #2196F3;
    padding: 4px 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.entry-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.entry-item.recurring {
    background: #F3E5F5;
    border-left-color: #9C27B0;
}

.entry-item.overlap {
    background: #FFF3E0;
    border-left-color: #FF9800;
}

/* Calendrier hebdomadaire */
.calendar-week-view {
    width: 100%;
    overflow-x: auto;
}

.calendar-week-view table {
    width: 100%;
    table-layout: fixed;
}

.calendar-week-view th,
.calendar-week-view td {
    border: 1px solid #DEE2E6;
    padding: 8px;
    vertical-align: top;
}

.calendar-week-view th {
    background: #f8fafc;
    font-weight: 600;
    text-align: center;
}

.timeline-entry {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    padding: 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-entry:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.timeline-entry.recurring {
    background: #F3E5F5;
    border-left-color: #9C27B0;
}

.timeline-entry.overlap {
    background: #FFF3E0;
    border-left-color: #FF9800;
}

/* Badges de durée */
.duration-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.duration-badge.short {
    background: #E3F2FD;
    color: #1976D2;
}

.duration-badge.medium {
    background: #E8F5E9;
    color: #388E3C;
}

.duration-badge.long {
    background: #FFF3E0;
    color: #F57C00;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        min-height: auto;
        margin-bottom: 8px;
    }
    
    .calendar-week-view {
        font-size: 0.85rem;
    }
    
    .timeline-entry {
        font-size: 0.7rem;
        padding: 6px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-day,
.entry-item,
.timeline-entry {
    animation: fadeIn 0.3s ease;
}

/* Styles pour les totaux */
.total-hours {
    font-weight: 600;
    color: #00AE9E;
}

.total-hours.low {
    color: #FF9800;
}

.total-hours.high {
    color: #4CAF50;
}
