/**
 * Validation Styles for Forschungszulage Form
 */

.validation-feedback {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

/* Validation Status */
.validation-status {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    flex-wrap: wrap;
}

.validation-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #ccc;
}

.validation-indicator.valid {
    background-color: #28a745;
}

.validation-indicator.invalid {
    background-color: #dc3545;
}

.validation-indicator.pending {
    background-color: #ffc107;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.validation-text {
    flex: 1;
    font-weight: 500;
    min-width: 200px;
}

.validation-status.valid {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.validation-status.invalid {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.validation-status.pending {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Score Display */
.score-display {
    margin-top: 10px;
    width: 100%;
}

.score {
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 5px;
    display: inline-block;
}

.score-red {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.score-orange {
    background-color: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
    color: #f57c00;
}

.score-yellow {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #d39e00;
}

.score-green {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

/* Validation Details */
.validation-details {
    display: none;
    margin-top: 10px;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.validation-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

/* Roles List */
.validation-roles-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.role-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border-left: 3px solid #ccc;
    transition: all 0.3s ease;
}

.role-item.present {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

.role-item.missing {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.role-name {
    flex: 1;
    font-weight: 500;
}

.role-status {
    width: 16px;
    height: 16px;
    position: relative;
}

.role-item.present .role-status::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
}

.role-item.missing .role-status::before {
    content: "✗";
    color: #dc3545;
    font-weight: bold;
}

.role-description {
    flex-basis: 100%;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

/* Feedback Summary */
.feedback-summary {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.feedback-assessment {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Feedback Improvements */
.feedback-improvements {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.feedback-improvements h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.feedback-improvements ul {
    padding-left: 20px;
}

.feedback-improvements li {
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Improvement Suggestions */
.improvement-suggestions {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    display: none;
}

.improvement-suggestions h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.suggestions-content {
    margin-bottom: 15px;
}

.suggestions-content p {
    margin: 5px 0;
}

.better-prompt {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(40, 167, 69, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.better-prompt-content {
    margin: 10px 0;
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    white-space: pre-wrap;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Use Suggestion Button */
.use-suggestion-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.use-suggestion-button:hover {
    background-color: #218838;
}

/* Check Validation Button */
.check-validation-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    flex: 1;
    min-width: 150px;
}

.check-validation-button:hover {
    background-color: #135e96;
}

.check-validation-button:disabled {
    background-color: #9cc3dd;
    cursor: not-allowed;
}

/* ChatGPT Help Button */
.chatgpt-help-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #10a37f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    flex: 1;
    min-width: 150px;
}

.chatgpt-help-button:hover {
    background-color: #0c8c6e;
}

.chatgpt-help-button:disabled {
    background-color: #8cdece;
    cursor: not-allowed;
}

/* Adjust Submit Button */
#submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .validation-status {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .validation-indicator {
        margin-bottom: 5px;
    }
    
    .role-item {
        padding: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
} 