/* School ERP Frontend Styles */

.school-erp-student-dashboard {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

.school-erp-student-dashboard h2 {
    color: #0073aa;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.exam-card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #0073aa;
    transition: all 0.3s ease;
}

.exam-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.exam-name {
    font-weight: 600;
    color: #333;
    font-size: 18px;
}

.exam-date {
    color: #666;
    font-size: 13px;
}

.exam-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.detail-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
}

.result-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
}

.result-badge.pass {
    background: #d4edda;
    color: #155724;
}

.result-badge.fail {
    background: #f8d7da;
    color: #721c24;
}

.result-badge.pending {
    background: #fff3cd;
    color: #856404;
}

/* Results Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table thead th {
    background: #0073aa;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.results-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.results-table tbody tr:hover {
    background: #f8f9fa;
}

.results-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Responsive */
@media (max-width: 768px) {
    .exam-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exam-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-table {
        font-size: 13px;
    }
    
    .results-table thead th,
    .results-table tbody td {
        padding: 8px;
    }
}
