/* Frontend CSS for EonCore Assessment Plugin */

.eoncore-assessment-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.eoncore-assessment-title {
    display: none; /* Hidden to save space */
}

.eoncore-assessment-description {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
    line-height: 1.5;
}

.eoncore-category-section {
    margin-bottom: 20px;
}

.eoncore-category-title {
    font-size: 22px;
    font-weight: bold;
    color: #2271b1;
    margin-top: 0;
    margin-bottom: 20px;
    display: none; /* Hidden since we removed category titles */
}

.eoncore-question-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.eoncore-question-categories {
    margin-bottom: 6px;
}

.eoncore-question-categories small {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f6fc;
    color: #2271b1;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.eoncore-question-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Rating styles moved to rating-style.css for easy customization */

.eoncore-user-info-section {
    margin-top: 40px;
    padding: 25px;
    background: #f0f8ff;
    border-radius: 6px;
    border: 1px solid #d0e8ff;
}

.eoncore-user-info-section h3 {
    font-size: 20px;
    color: #2271b1;
    margin-top: 0;
    margin-bottom: 20px;
}

.eoncore-form-row {
    margin-bottom: 15px;
}

.eoncore-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.eoncore-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.eoncore-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 5px rgba(34, 113, 177, 0.3);
}

.eoncore-submit-section {
    margin-top: 30px;
    text-align: center;
}

.eoncore-submit-button {
    padding: 15px 40px;
    background: #2271b1;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.eoncore-submit-button:hover {
    background: #1a5a8a;
    transform: translateY(-2px);
}

.eoncore-submit-button:active {
    transform: translateY(0);
}

.eoncore-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.eoncore-loading {
    margin-top: 15px;
    font-size: 16px;
    color: #2271b1;
    font-weight: bold;
}

.eoncore-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

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

.eoncore-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Pagination styles */
.eoncore-pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #c0c0c0;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #a0a0a0;
}

.eoncore-page-indicator,
.eoncore-question-counter {
    font-size: 12px;
    color: #2271b1;
    font-weight: 600;
}

.eoncore-current-page,
.eoncore-total-pages,
.eoncore-questions-range {
    font-weight: bold;
    color: #1a5a8a;
}

.eoncore-pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.eoncore-pagination-button {
    padding: 10px 20px;
    background: #2271b1;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.eoncore-pagination-button:hover:not(:disabled) {
    background: #1a5a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.eoncore-pagination-button:active:not(:disabled) {
    transform: translateY(0);
}

.eoncore-pagination-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.eoncore-pagination-status {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.eoncore-current-page-display,
.eoncore-total-pages-display {
    color: #2271b1;
    font-weight: bold;
}

/* Radar chart styling */
.eoncore-radar-chart-section {
    margin: 40px 0;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.eoncore-radar-chart-section h3 {
    font-size: 24px;
    color: #333;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

.eoncore-radar-chart-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Results page styling */
.eoncore-results-page-wrapper {
    padding: 40px 20px;
    background: #f5f5f5;
    min-height: 100vh;
}

.eoncore-results-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.eoncore-results-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #2271b1;
    padding-bottom: 15px;
}

.eoncore-results-user-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
}

.eoncore-results-user-info p {
    margin: 5px 0;
    font-size: 16px;
}

.eoncore-overall-score {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #2271b1 0%, #1a5a8a 100%);
    border-radius: 8px;
    text-align: center;
    color: #ffffff;
}

.eoncore-overall-score h3 {
    margin-top: 0;
    font-size: 24px;
    color: #ffffff;
}

.eoncore-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.eoncore-score-value {
    font-size: 48px;
    font-weight: bold;
}

.eoncore-score-details {
    font-size: 18px;
    opacity: 0.9;
}

.eoncore-category-results h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.eoncore-category-result {
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
}

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

.eoncore-category-result-header h4 {
    margin: 0;
    font-size: 20px;
    color: #2271b1;
}

.eoncore-category-score {
    font-size: 16px;
    font-weight: bold;
    color: #2271b1;
}

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

.eoncore-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1 0%, #1a5a8a 100%);
    transition: width 0.5s ease;
}

.eoncore-category-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.eoncore-results-footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    color: #2271b1;
}

.eoncore-session-id {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.eoncore-session-id code {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: monospace;
    color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
    .qodef-page-title {
        height: 10px !important;
        min-height: 10px !important;
    }

    .eoncore-assessment-container,
    .eoncore-results-container {
        padding: 8px 12px;
        max-width: 100%;
        margin-top: 0;
    }

    .eoncore-assessment-description {
        font-size: 12px;
        margin-bottom: 8px;
        margin-top: 0;
        line-height: 1.3;
    }

    .eoncore-question-item {
        margin-bottom: 12px;
        padding: 10px;
    }

    .eoncore-question-categories {
        margin-bottom: 4px;
    }

    .eoncore-question-categories small {
        padding: 2px 6px;
        font-size: 9px;
    }

    .eoncore-question-text {
        font-size: 12px;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .eoncore-assessment-title,
    .eoncore-results-title {
        font-size: 18px;
    }

    .eoncore-rating-labels span,
    .eoncore-radio-custom {
        width: 40px;
        height: 40px;
    }

    .eoncore-score-value {
        font-size: 36px;
    }

    .eoncore-pagination-info {
        padding: 6px 10px;
        margin-bottom: 8px;
    }

    .eoncore-page-indicator,
    .eoncore-question-counter {
        font-size: 10px;
    }

    .eoncore-pagination-controls {
        margin: 12px 0;
        padding: 10px;
    }

    .eoncore-pagination-button {
        padding: 8px 14px;
        font-size: 12px;
    }

    .eoncore-pagination-status {
        font-size: 11px;
    }

    .eoncore-radar-chart-container {
        height: 450px;
    }

    .eoncore-radar-chart-section {
        padding: 20px 15px;
    }

    .eoncore-user-info-section {
        margin-top: 20px;
        padding: 15px;
    }

    .eoncore-user-info-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .eoncore-form-row {
        margin-bottom: 10px;
    }

    .eoncore-form-row label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .eoncore-input {
        padding: 8px;
        font-size: 14px;
    }

    .eoncore-submit-section {
        margin-top: 15px;
    }

    .eoncore-submit-button {
        padding: 12px 30px;
        font-size: 15px;
    }

    .eoncore-results-page-wrapper {
        padding: 8px;
        min-height: auto;
    }
}
