:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    padding: 1rem 1.5rem;
}

.table th {
    font-weight: 600;
}

.table thead th {
    vertical-align: middle;
    white-space: nowrap;
}

.criteria-title {
    font-weight: 600;
    color: var(--dark-color);
}

.level-radio {
    transform: scale(1.2);
    margin: 0 auto;
    display: block;
}

.level-label {
    font-size: 0.85rem;
    text-align: center;
    display: block;
    margin-top: 0.5rem;
    cursor: pointer;
}

.level-cell {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.level-cell:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.level-cell.active {
    background-color: rgba(13, 110, 253, 0.2);
}

#scoreSummary th, #scoreSummary td {
    padding: 0.5rem;
}

#scoreSummary tfoot th {
    font-size: 1.1rem;
}

#totalScore {
    font-size: 1.2rem;
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color) !important;
    font-weight: bold;
}

.level-0-description {
    color: var(--danger-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .level-label {
        font-size: 0.75rem;
    }
}