/* TherapywAIse Evaluation System Themes */
/* Discipline-specific theming for evaluation components */

/* Base Evaluation Styles */
.evaluation-container {
    flex: 1;
    background: #f8f9fa;
    overflow-y: auto;
    padding: 0;
}

.evaluation-app-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Evaluation Tab Styling */
.discipline-tab[data-therapy="evaluations"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3) !important;
}

.discipline-tab[data-therapy="evaluations"]:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b5b95 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4) !important;
}

.discipline-tab[data-therapy="evaluations"].active {
    background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%) !important;
    color: white !important;
    border-bottom: 3px solid #3c366b !important;
}

/* PT Evaluation Theme */
.theme-evaluations .evaluation-container.pt-theme {
    --primary-color: #27ae60;
    --primary-light: #2ecc71;
    --primary-dark: #219a52;
    --accent-color: #58d68d;
}

/* OT Evaluation Theme */
.theme-evaluations .evaluation-container.ot-theme {
    --primary-color: #f39c12;
    --primary-light: #f1c40f;
    --primary-dark: #d68910;
    --accent-color: #f7dc6f;
}

/* SLP Evaluation Theme */
.theme-evaluations .evaluation-container.slp-theme {
    --primary-color: #8e44ad;
    --primary-light: #9b59b6;
    --primary-dark: #7d3c98;
    --accent-color: #bb8fce;
}

/* RT Evaluation Theme */
.theme-evaluations .evaluation-container.rt-theme {
    --primary-color: #3498db;
    --primary-light: #5dade2;
    --primary-dark: #2980b9;
    --accent-color: #85c1e9;
}

/* Evaluation Form Styling */
.evaluation-form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px;
    overflow: hidden;
}

.evaluation-header {
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.evaluation-section {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.evaluation-section.deficit-identified {
    border-left-width: 4px;
    border-left-color: var(--primary-color, #667eea);
}

.evaluation-section-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e8ed;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.evaluation-section-header:hover {
    background: #e9ecef;
}

.evaluation-section-content {
    padding: 20px;
    background: white;
}

/* Cascading Fields */
.cascading-field-group {
    margin: 10px 0;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.cascading-field-group h6 {
    margin: 0 0 10px 0;
    color: var(--primary-color, #667eea);
    font-weight: 600;
}

.cascading-field-item {
    display: block;
    margin: 8px 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.cascading-field-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary-color, #667eea);
}

.cascading-field-item:hover {
    color: var(--primary-color, #667eea);
}

/* Goal Generator Styling */
.goal-generator {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.goal-generator-header {
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.goal-generator-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.goal-item {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
}

.goal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.goal-confidence {
    font-size: 0.8rem;
    color: #7f8c8d;
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Action Buttons */
.evaluation-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.evaluation-actions .right-actions {
    display: flex;
    gap: 10px;
}

.btn-evaluation-cancel {
    padding: 12px 24px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-evaluation-cancel:hover {
    background: #7f8c8d;
}

.btn-evaluation-save {
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-evaluation-save:hover {
    background: #2980b9;
}

.btn-evaluation-complete {
    padding: 12px 24px;
    background: var(--primary-color, #667eea);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-evaluation-complete:hover {
    background: var(--primary-dark, #5a67d8);
}

.btn-evaluation-complete:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Loading States */
.evaluation-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    flex-direction: column;
}

.evaluation-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color, #667eea);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Progress Indicator */
.evaluation-progress {
    width: 100px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.evaluation-progress-fill {
    height: 100%;
    background: white;
    transition: width 0.3s ease;
}

/* Patient Evaluation Management */
.patient-evaluation-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.evaluation-management-tabs {
    display: flex;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 20px;
}

.evaluation-management-tab {
    padding: 12px 20px;
    border: none;
    background: #f8f9fa;
    color: #666;
    border-radius: 6px 6px 0 0;
    margin-right: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.evaluation-management-tab.active {
    background: #667eea;
    color: white;
}

.evaluation-management-tab:hover {
    background: #e9ecef;
}

.evaluation-management-tab.active:hover {
    background: #5a67d8;
}

.evaluation-card {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.evaluation-card.in-progress {
    border-left: 4px solid #f39c12;
}

.evaluation-card.completed {
    border-left: 4px solid #27ae60;
}

.evaluation-card.draft {
    border-left: 4px solid #95a5a6;
}

.evaluation-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.evaluation-status.in-progress {
    background: #fff3cd;
    color: #856404;
}

.evaluation-status.completed {
    background: #d5f4e6;
    color: #27ae60;
}

.evaluation-status.draft {
    background: #f8f9fa;
    color: #6c757d;
}

.evaluation-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-evaluation-action {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-evaluation-primary {
    background: var(--primary-color, #667eea);
    color: white;
    border: none;
}

.btn-evaluation-primary:hover {
    background: var(--primary-dark, #5a67d8);
}

.btn-evaluation-secondary {
    background: transparent;
    color: var(--primary-color, #667eea);
    border: 1px solid var(--primary-color, #667eea);
}

.btn-evaluation-secondary:hover {
    background: var(--primary-color, #667eea);
    color: white;
}

.btn-evaluation-tertiary {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-evaluation-tertiary:hover {
    background: #f8f9fa;
}

/* Statistics Card */
.evaluation-stats-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.evaluation-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.evaluation-stat-item {
    text-align: center;
}

.evaluation-stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.evaluation-stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .evaluation-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .evaluation-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .evaluation-actions .right-actions {
        justify-content: center;
    }
    
    .evaluation-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .patient-evaluation-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Fix for tab wrapping */
.discipline-tabs {
    flex-wrap: wrap !important;
    overflow-x: auto !important;
    width: 100% !important;
    gap: 5px;
}

.discipline-tab {
    flex-shrink: 0;
    min-width: fit-content;
}