/* UPT Vector Evaluation Forms Styles */

/* Keep in sync with upt-vector-enhanced.css (.upt-em) */
.upt-vector-container strong.upt-em,
strong.upt-em {
    font-weight: bolder;
    color: inherit;
}

.evaluation-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.evaluation-criteria {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.evaluation-criteria h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.criteria-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.criteria-item:last-child {
    margin-bottom: 0;
}

.criteria-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.score-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.score-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-option input[type="radio"] {
    margin: 0;
}

.score-option label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.score-satisfactory {
    color: #28a745;
}

.score-unsatisfactory {
    color: #dc3545;
}

.remarks-textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
}

.remarks-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

.triggers-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.triggers-section h6 {
    color: #856404;
    font-weight: 600;
    margin-bottom: 1rem;
}

.trigger-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.trigger-item:last-child {
    margin-bottom: 0;
}

.trigger-item input[type="checkbox"] {
    margin: 0;
    margin-top: 0.2rem;
}

.trigger-item label {
    margin: 0;
    font-size: 0.9rem;
    color: #856404;
    cursor: pointer;
}

.general-notes {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
}

.general-notes textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
}

.general-notes textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 6px 6px;
}

.btn-evaluation {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-evaluation:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.candidate-header {
    background: #f8f9fa;
    color: var(--bs-heading-color);
    border-radius: 8px 8px 0 0;
}

.candidate-header h2 {
    margin: 0;
    font-weight: 600;
}

.candidate-header p {
    margin: 0;
    opacity: 0.9;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #007bff;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    border-color: #007bff;
    background: transparent;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fff;
}

.course-header {
    background: #f8f9fa;
    color: var(--bs-heading-color);
    border-radius: 8px 8px 0 0;
}

.course-header h2 {
    margin: 0;
    font-weight: 600;
}

.candidates-table {
    margin: 0;
}

.candidates-table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.candidates-table td {
    vertical-align: middle;
}

.badge-status {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.btn-view-candidate {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-view-candidate:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .score-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .criteria-item {
        padding: 0.75rem;
    }
    
    .evaluation-criteria {
        padding: 0.75rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error states */
.alert-evaluation {
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Portal shell: prevent theme/block list bullets on Bootstrap nav tabs */
.upt-vector-container ul.nav,
.upt-vector-container ul.nav-tabs {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
