
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.detail-table th, .detail-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.detail-table th {
    background-color: #f8f9fa;
}

.topic-cell {
    font-size: 0.9em;
    color: #555;
}

.correct { color: #28a745; font-weight: bold; }
.incorrect { color: #dc3545; font-weight: bold; }

/* General Table Styles */
.general-table th {
    white-space: nowrap;
    text-align: center;
}

.result-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9em;
}

.result-cell .percent {
    font-weight: bold;
    font-size: 1.1em;
}

.result-cell .stats {
    color: #666;
    font-size: 0.8em;
}
