/* Assessment Container */
.assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Assessment Header */
.assessment-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.assessment-meta {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.assessment-meta p {
    margin: 5px 0;
    color: #666;
}

/* Trait Sections */
.trait-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.trait-section h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    color: #2271b1;
    font-size: 20px;
}

/* Questions */
.question-container {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.question-text {
    font-weight: 500;
    margin-bottom: 15px;
    color: #1d2327;
    font-size: 16px;
    line-height: 1.5;
}

/* Answers */
.answers-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 10px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-option:hover {
    background: #f0f0f1;
    border-color: #2271b1;
}

.answer-option input[type="radio"] {
    margin-right: 10px;
}

.answer-text {
    flex: 1;
    font-size: 15px;
    color: #3c434a;
}

/* Form Controls */
.assessment-controls {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.prev-section,
.next-section {
    background: #f0f0f1;
    color: #2c3338;
}

.prev-section:hover,
.next-section:hover {
    background: #e0e0e0;
}

.submit-assessment {
    background: #2271b1;
    color: #fff;
}

.submit-assessment:hover {
    background: #135e96;
}

/* Error Messages */
.question-error {
    color: #d63638;
    font-size: 13px;
    margin-top: 5px;
}

/* Results Page */
.assessment-results {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
}

.results-meta {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.overall-score {
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
    color: #2271b1;
}

.trait-group-result {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.score-bar {
    height: 20px;
    background: #f0f0f1;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: #2271b1;
    transition: width 0.3s ease;
}

.score-description {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    font-style: italic;
}

.trait-details {
    margin-top: 20px;
}

.trait-score {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
}

.trait-score:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .assessment-container {
        padding: 10px;
    }

    .trait-section {
        padding: 15px;
    }

    .question-container {
        padding: 10px;
    }

    .answers-container {
        margin-left: 0;
    }

    .assessment-controls {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Print Styles */
@media print {
    .assessment-container {
        max-width: none;
        padding: 0;
    }

    .assessment-controls {
        display: none;
    }

    .trait-section {
        break-inside: avoid;
        box-shadow: none;
    }
}
/* Add to your frontend.css */
.assessment-progress {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #2271b1;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.question-slide {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.question-slide.fade-out {
    opacity: 0;
}

.question-slide.fade-in {
    opacity: 1;
}
.trait-group-section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.group-name {
    color: #2271b1;
    font-size: 22px;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.trait-name {
    color: #1d2327;
    font-size: 18px;
    margin: 20px 0 15px;
}

.question-container {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}
.highlight-required {
    animation: pulse-red 2s;
}

@keyframes pulse-red {
    0% { background-color: #f8f9fa; }
    50% { background-color: #ffebee; }
    100% { background-color: #f8f9fa; }
}

/* Add to frontend.css */

.candidate-info {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.candidate-info h3 {
    font-size: 20px;
    color: #2271b1;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1d2327;
}

.form-row input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.form-row input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.start-assessment {
    background: #2271b1;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

.start-assessment:hover {
    background: #135e96;
}

@media screen and (min-width: 768px) {
    .candidate-info {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .start-assessment {
        width: auto;
        float: right;
    }
}
.radar-chart-container {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.trait-analysis {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.trait-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.trait-description {
    font-size: 0.75em;
    color: #4a5568;
    line-height: 1.3;
    margin-top: 8px;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.score-low .trait-value {
    color: #dc3545;
}

.score-medium .trait-value {
    color: #ffc107;
}

.score-high .trait-value {
    color: #28a745;
}

.trait-analysis {
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem;
}

.trait-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.trait-name {
    font-weight: 600;
    color: #374151;
    font-size: 1.1em;
}

.trait-score {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.trait-score.score-low {
    background-color: #FEE2E2;
    color: #DC2626;
}

.trait-score.score-medium {
    background-color: #FEF3C7;
    color: #D97706;
}

.trait-score.score-high {
    background-color: #D1FAE5;
    color: #059669;
}

.trait-scoring-rule {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #F9FAFB;
    border-radius: 6px;
}

.scoring-description {
    color: #4B5563;
    line-height: 1.5;
    font-size: 0.95em;
}

.trait-scoring-rule::before {
    content: "Analysis:";
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9em;
}
/* Add to frontend.css */

/* Score Indicators and Metrics */
.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    border: 8px solid;
    transition: all 0.3s ease;
}

.score-circle.score-low {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.score-circle.score-average {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.score-circle.score-high {
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.score-value {
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 0.9em;
    margin-top: 5px;
}

/* Trait Group Cards */
.trait-group-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.group-header {
    background: #f8fafc;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.group-header h4 {
    margin: 0;
    font-size: 1.2em;
    color: #1e293b;
}

.group-score {
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Trait Items */
.trait-item {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.trait-item:last-child {
    border-bottom: none;
}

.trait-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.trait-name {
    font-weight: 600;
    color: #334155;
}

.trait-metrics {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 32px;
}

.trait-score {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 15px;
    min-width: 80px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.score-low {
    background: #fee2e2;
    color: #dc2626;
}

.score-average {
    background: #fef3c7;
    color: #f59e0b;
}

.score-high {
    background: #dcfce7;
    color: #16a34a;
}

.industry-comparison {
    font-size: 0.85em;
    color: #64748b;
}

/* Development Plans */
.development-plan {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #2563eb;
}

.development-plan h5 {
    color: #2563eb;
    margin: 0 0 10px 0;
    font-size: 1em;
}

/* Descriptions */
.trait-description {
    color: #475569;
    line-height: 1.3;
    margin: 15px 0;
    padding: 10px 15px;
    background: #f1f5f9;
    border-radius: 6px;
}

/* References & Disclaimer */
.report-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.references, .disclaimer {
    margin: 20px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.references a {
    color: #2563eb;
    text-decoration: none;
}

.references a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-style: italic;
    color: #64748b;
}

/* Action Buttons */
.report-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.print-report {
    background: #2563eb;
    color: white;
    border: none;
}

.print-report:hover {
    background: #1d4ed8;
}

.download-pdf {
    background: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.download-pdf:hover {
    background: #f8fafc;
}

/* Print Styles */
@media print {
    .assessment-results {
        max-width: none;
        margin: 0;
        padding: 20px;
        box-shadow: none;
    }

    .report-actions {
        display: none;
    }

    .trait-group-card {
        break-inside: avoid;
        page-break-inside: avoid;
        width: 100%;
        margin-bottom: 20px;
    }

    .traits-list {
        display: block;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .trait-item {
        break-inside: avoid;
        page-break-inside: avoid;
        width: 100%;
        margin-bottom: 15px;
        display: block;
    }

    .development-plan {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .references a {
        text-decoration: none;
        color: #000;
    }

    .references a::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
    }
}
/* Benchmark Management Styles */
.benchmark-filters {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 4px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Bulk Edit Form */
.bulk-edit-form {
    margin-top: 20px;
}

.bulk-edit-field {
    margin-bottom: 15px;
}

.bulk-edit-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.bulk-edit-field input,
.bulk-edit-field select {
    width: 100%;
}

.bulk-edit-actions {
    margin-top: 20px;
    text-align: right;
}

/* Import Form */
.import-field {
    margin-bottom: 15px;
}

.import-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.import-actions {
    margin-top: 20px;
    text-align: right;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.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 #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.score-visualization {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.score-bar {
    position: relative;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    margin: 10px 0;
    overflow: visible;
}

.score-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.industry-average-marker {
    position: absolute;
    top: -15px;
    width: 2px;
    height: 50px;
    background: #64748b;
    transform: translateX(-50%);
}

.marker-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    color: #64748b;
}

.score-ranges {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #6b7280;
}

.trait-comparison {
    font-size: 14px;
    color: #6b7280;
    margin-left: 10px;
}

.score-low { color: #dc2626; }
.score-below-average { color: #ea580c; }
.score-average { color: #ca8a04; }
.score-above-average { color: #16a34a; }
.score-high { color: #15803d; }

.trait-description {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
}

.group-description {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    font-style: italic;
}
.trait-metrics {
    display: flex;
    align-items: center;
    gap: 15px;
}

.industry-average {
    color: #64748b;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.score-comparison {
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
}

.score-comparison.above-average {
    background-color: #dcfce7;
    color: #16a34a;
}

.score-comparison.below-average {
    background-color: #fee2e2;
    color: #dc2626;
}

.trait-item {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.trait-item:last-child {
    border-bottom: none;
}

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

.trait-description {
    font-size: 0.75em;
    color: #4b5563;
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 4px;
    border-left: 3px solid #2563eb;
}
.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    border: 8px solid;
    transition: all 0.3s ease;
}

.score-circle.score-low {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.score-circle.score-average {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.score-circle.score-high {
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.score-value {
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 0.9em;
    margin-top: 5px;
}
.group-score-description {
    margin: 15px 0;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.group-score-description h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1e40af;
    font-size: 1.1em;
}

.group-score-description ul {
    margin: 0;
    padding-left: 20px;
}

.group-score-description li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.group-score-description li:last-child {
    margin-bottom: 0;
}
/* Company dropdown styling */
select#candidate_company {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s ease;
    background-color: #fff;
    height: auto;
}

select#candidate_company:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

#candidate_company_other {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

#candidate_company_other:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}
.question-answered {
    background-color: #f0f7ff !important;
    border-left: 3px solid #2271b1 !important;
}

.highlight-required {
    animation: pulse-red 2s;
}

@keyframes pulse-red {
    0% { background-color: #f8f9fa; }
    50% { background-color: #ffebee; }
    100% { background-color: #f8f9fa; }
}

/* Fix for radio button appearance */
.answer-option input[type="radio"] {
    appearance: radio;
    -webkit-appearance: radio;
    opacity: 1;
    position: static;
    margin-right: 5px;
}

.radar-chart-container {
    height: 400px;
    margin: 30px 0;
    padding: 20px;
    padding-bottom: 120px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.radar-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.company-assessment-header{
    text-align: center;
}
/* Path: wp-content/plugins/assessment-system/css/frontend.css */
/* Add these styles at the end of the file */

.question-answered {
    background-color: #f0f7ff !important;
    border-left: 3px solid #2271b1 !important;
}

.highlight-required {
    animation: pulse-red 2s;
}

@keyframes pulse-red {
    0% { background-color: #f8f9fa; }
    50% { background-color: #ffebee; }
    100% { background-color: #f8f9fa; }
}

/* Fix for radio button appearance */
.answer-option input[type="radio"] {
    appearance: radio;
    -webkit-appearance: radio;
    opacity: 1;
    position: static;
    margin-right: 5px;
}
.result-header{
    padding-top: 30px;
    padding-bottom: 30px;
}

.traits-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    page-break-inside: avoid;
}

@media print {
    .traits-list {
        grid-template-columns: 1fr;
    }
    
    .trait-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}