/* Session Module Styles */

/* Card styling */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Session type badges */
.badge-invited {
    background-color: #0d6efd;
    color: white;
}

.badge-open {
    background-color: #198754;
    color: white;
}

.badge-pod {
    background-color: #0dcaf0;
    color: white;
}

/* Timeline styling for session components */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-badge {
    position: absolute;
    top: 16px;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    color: white;
    line-height: 40px;
    z-index: 1;
}

.timeline-badge i {
    font-size: 1.2rem;
}

.timeline-panel {
    position: relative;
    margin-left: 60px;
}

/* Session cards in grid view */
.session-card {
    height: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
}

.session-card .card-header {
    padding: 0.75rem 1.25rem;
}

.session-card .card-body {
    padding: 1.25rem;
}

.session-card .card-footer {
    padding: 0.75rem 1.25rem;
    background-color: transparent;
}

/* Attendance summary cards */
.attendance-summary-card {
    text-align: center;
    border-radius: 0.5rem;
    overflow: hidden;
}

.attendance-summary-card .card-body {
    padding: 1rem;
}

.attendance-summary-card h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.attendance-summary-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Filter form styling */
.filter-form .form-label {
    font-weight: 500;
    font-size: 0.875rem;
}

.filter-form .form-select {
    font-size: 0.875rem;
}

.filter-form .btn {
    font-size: 0.875rem;
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
    .timeline:before {
        left: 15px;
    }
    
    .timeline-badge {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
    
    .timeline-badge i {
        font-size: 0.9rem;
    }
    
    .timeline-panel {
        margin-left: 45px;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
        border-radius: 0.25rem !important;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Session type border colors */
.border-invited_training {
    border-left: 4px solid #0d6efd;
}

.border-open_training {
    border-left: 4px solid #198754;
}

.border-pod_training {
    border-left: 4px solid #0dcaf0;
}

/* Improved buttons */
.btn-action {
    border-radius: 50px;
    padding: 0.375rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action i {
    font-size: 0.875rem;
}