/* Lesson Detail Modal Styling */
.lesson-detail-modal {
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header-section h4 {
    margin: 0;
    color: #333;
}

.lesson-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-completed { background: #4caf50; color: white; }
.status-cancelled { background: #f44336; color: white; }
.status-postponed { background: #ff9800; color: white; }
.status-pending { background: #2196f3; color: white; }

.info-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.info-section h5 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.info-grid > div {
    padding: 0.5rem 0;
}

.description-box {
    margin-top: 1rem;
    padding: 0.75rem;
    background: white;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
}

.description-box p {
    margin: 0.5rem 0 0 0;
    color: #666;
}

.zoom-section {
    background: #e3f2fd;
}

.zoom-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zoom-link-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #0b5cff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
    text-align: center;
    max-width: 250px;
}

.zoom-link-btn:hover {
    background: #0a4fd6;
    color: white;
    text-decoration: none;
}

.participants-section {
    background: #f3f4f6;
}

.participant-group {
    margin-bottom: 1rem;
}

.participant-group:last-child {
    margin-bottom: 0;
}

.participant-group > strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.attendance-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-secondary { background: #e2e3e5; color: #383d41; }

/* Inactive participant styling */
.inactive-participant {
    opacity: 0.6;
    background: #f5f5f5 !important;
}

.inactive-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    margin-left: 0.5rem;
    background: #9e9e9e;
    color: white;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
}

.error-message {
    padding: 2rem;
    text-align: center;
}

.error-message p {
    color: #f44336;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .lesson-detail-modal {
        padding: 1rem;
    }

    .modal-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .rz-button {
        width: 100%;
    }

    .zoom-link-btn {
        max-width: 100%;
    }
}
