/**
 * Evaluation Form Fixes - v2.5.20.1
 * Fixes for evaluation form display issues
 */

/* Fix for candidate body boxes */
.mt-candidate-body {
    margin: 15px 0;
    padding: 25px;
    background: #f8f0e3;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

/* Fix for evaluation criteria cards */
.mt-criterion-card {
    position: relative;
    margin: 15px 0;
    padding: 20px;
    background: #f8f0e3;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.mt-criterion-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-left: 5px;
    border-left: 4px solid;
}

.mt-criterion-icon {
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 24px;
}

.mt-criterion-info {
    flex: 1;
}

.mt-criterion-label {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #0072BC;
}

.mt-criterion-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* Score slider styling */
.mt-score-slider-wrapper {
    margin-top: 20px;
    padding: 10px 0;
}

.mt-score-slider {
    width: 100%;
    height: 6px;
    appearance: none;
    background: linear-gradient(to right, #f44 0%, #fb3 50%, #00C851 100%);
    border-radius: 3px;
    outline: none;
}

.mt-score-slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    background: #084452;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
    cursor: pointer;
    appearance: none;
}

.mt-score-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #084452;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
    cursor: pointer;
}

/* Score display */
.mt-score-value {
    display: inline-block;
    float: right;
    margin-top: -40px;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #084452;
    border-radius: 20px;
}

/* Average score display */
#mt-total-score {
    font-size: 24px;
    font-weight: 700;
    color: #0072BC;
}

.mt-evaluated-count {
    margin-left: 10px;
    font-size: 14px;
    color: #0072BC;
}

/* Save buttons - More specific selectors to override theme styles */
button.mt-save-draft,
button.mt-submit-evaluation,
.mt-btn.mt-submit-evaluation {
    margin: 10px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white !important;
    background: #084452 !important;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

button.mt-save-draft:hover,
button.mt-submit-evaluation:hover,
.mt-btn.mt-submit-evaluation:hover {
    background: #00694E !important;
    box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
    transform: translateY(-2px);
}

button.mt-save-draft,
.mt-btn.mt-save-draft {
    background: #666 !important;
}

button.mt-save-draft:hover,
.mt-btn.mt-save-draft:hover {
    background: #555 !important;
}

/* Fix spacing and alignment */
.mt-evaluation-header {
    margin-bottom: 30px;
    padding: 30px;
    color: white;
    background: linear-gradient(135deg, #00694E 0%, #084452 100%);
    border-radius: 8px;
}

.mt-evaluation-title {
    margin: 0 0 10px;
    font-size: 28px;
    color: #0072BC !important; /* Copper color for better readability */
}

/* Ensure the h1 inside also gets the copper color */
.mt-evaluation-title h1 {
    color: #0072BC !important;
}

.mt-evaluation-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* Responsive fixes */
@media (width <= 768px) {
    .mt-criterion-card {
        padding: 15px;
    }
    
    .mt-criterion-label {
        font-size: 16px;
    }
    
    .mt-criterion-description {
        font-size: 13px;
    }
    
    .mt-evaluation-header {
        padding: 20px;
    }
    
    .mt-evaluation-title {
        font-size: 22px;
        color: #0072BC !important; /* Maintain copper color on mobile */
    }
}
