/* CSS Styles for detailed student progress table */

.student-progress-table {
    /* Allow table to expand so horizontal scroll appears */
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    table-layout: auto;
}

.student-progress-table th {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    color: #495057;
    font-size: 12px;
    line-height: 1.2;
}

.student-progress-table td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

/* Prevent wrapping to ensure horizontal scroll */
.student-progress-table th,
.student-progress-table td {
    white-space: nowrap;
}

.activity-cell {
    min-height: 60px;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    padding: 8px;
}

.activity-value {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.activity-progress-bar {
    width: 80%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 5px auto 0;
    display: block;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar-fill.passing {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.progress-bar-fill.failing {
    background: linear-gradient(90deg, #ffc107 0%, #e0a800 100%);
}

.boolean-value.positive {
    color: #28a745;
    font-weight: bold;
}

.boolean-value.negative {
    color: #dc3545;
    font-weight: bold;
}

.detailed-progress-table {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detailed-progress-table h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 18px;
}

.course-info {
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.student-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.student-header p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.progress-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

/* Enable horizontal scroll for institution tabs detailed table */
.progress-individual-table-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.no-progress-data {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-progress-data p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .student-progress-table {
        font-size: 12px;
    }
    
    .student-progress-table th,
    .student-progress-table td {
        padding: 6px 4px;
    }
    
    .activity-value {
        font-size: 12px;
    }
    
    .detailed-progress-table {
        padding: 15px;
        margin: 20px 0;
    }
    
    .detailed-progress-table h4 {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .progress-table-container {
        overflow-x: scroll;
    }
    
    .student-progress-table {
        min-width: 600px;
        font-size: 11px;
    }
    
    .student-progress-table th {
        font-size: 10px;
        padding: 4px 2px;
    }
    
    .student-progress-table td {
        padding: 4px 2px;
    }
}