/* Calendar Styles for User Panel */

.calendar-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E5E7EB;
}

.calendar-header h3 {
    font-size: 1.5rem;
    color: #1F2937;
    margin: 0;
}

.calendar-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.calendar-nav button {
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.calendar-nav button:hover {
    background: #F59E0B;
    color: white;
    border-color: #F59E0B;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
    color: #F59E0B;
    background: #F3F4F6;
    border-radius: 8px;
    font-size: 0.875rem;
}

.calendar-day {
    min-height: 120px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 0.75rem;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-day:hover {
    border-color: #F59E0B;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.calendar-day.other-month {
    opacity: 0.3;
    background: #F9FAFB;
}

.calendar-day.today {
    border-color: #F59E0B;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
}

.calendar-day-number {
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.calendar-day.today .calendar-day-number {
    color: #F59E0B;
    font-size: 1.1rem;
}

.day-number {
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}


.calendar-day.has-class {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-color: #F59E0B;
    font-weight: 600;
}

.calendar-day.has-class.past-date {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(249, 168, 212, 0.15) 100%);
    opacity: 0.4;
}

.calendar-class-item.past-class {
    background: #EC4899 !important;
    color: white !important;
}

.calendar-day.has-class:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px -2px rgba(245, 158, 11, 0.3);
}


.calendar-classes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-class-item {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-class-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calendar-class-item.booked {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.calendar-class-item.online {
    background: linear-gradient(135deg, #EC4899 0%, #F9A8D4 100%);
}

.calendar-class-time {
    font-size: 0.7rem;
    opacity: 0.9;
}

.calendar-class-name {
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.legend-color.available {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.legend-color.booked {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.legend-color.online {
    background: linear-gradient(135deg, #EC4899 0%, #F9A8D4 100%);
}

/* Class Detail Modal Enhancement */
.class-detail-card {
    background: #F9FAFB;
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.class-detail-card h4 {
    color: #EC4899;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.class-detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.class-detail-info p {
    margin: 0;
    font-size: 0.9rem;
}

.class-detail-info strong {
    color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .calendar-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .calendar-grid::-webkit-scrollbar-thumb {
        background: #EC4899;
        border-radius: 4px;
    }
    
    .calendar-grid::-webkit-scrollbar-track {
        background: #F3F4F6;
        border-radius: 4px;
    }
    
    .calendar-grid {
        gap: 0.25rem;
        grid-template-columns: repeat(7, 100px);
        display: grid;
    }
    
    .calendar-day {
        min-height: 100px;
        width: 100px;
        padding: 0.5rem;
        display: flex;
        flex-direction: column;
        overflow: visible;
        flex-shrink: 0;
    }
    
    .day-number {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .calendar-class-item {
        font-size: 0.65rem;
        padding: 0.25rem 0.375rem;
    }
    
    .calendar-class-time {
        font-size: 0.6rem;
    }
    
    .calendar-class-name {
        font-size: 0.65rem;
    }
    
    .calendar-day-header {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .calendar-header h3 {
        font-size: 1.125rem;
    }
    
    .calendar-nav {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .calendar-nav button {
        flex: 1;
        min-width: 80px;
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .calendar-legend {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        padding: 0.75rem;
    }

    .calendar-day {
        min-height: 70px;
        padding: 0.375rem;
    }
    
    .calendar-day-header {
        font-size: 0.65rem;
        padding: 0.35rem;
    }

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

    .calendar-class-item {
        font-size: 0.6rem;
        padding: 0.2rem 0.3rem;
    }
    
    .calendar-class-time {
        font-size: 0.55rem;
    }
    
    .calendar-class-name {
        font-size: 0.6rem;
    }
}

