/* Vocational Tests Styles */

.vocational-test-results {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.vocational-test-results h3 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.vocational-test-results h4 {
    color: #34495e;
    margin-top: 20px;
}

/* Highlight */
.highlight {
    background: #3498db;
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 1.2em;
    font-weight: bold;
}

/* CHASIDE Results */
.chaside-top2 {
    text-align: center;
    margin: 30px 0;
}

.result-main {
    font-size: 1.3em;
    margin: 15px 0;
}

.vocational-scores-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.vocational-scores-table th,
.vocational-scores-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.vocational-scores-table th {
    background: #34495e;
    color: #fff;
    font-weight: 600;
}

.vocational-scores-table tr:hover {
    background: #f8f9fa;
}

/* Inteligencias Results */
.inteligencias-top3 ol {
    font-size: 1.1em;
    line-height: 1.8;
}

.inteligencias-chart {
    margin-top: 30px;
}

.chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.chart-label {
    width: 200px;
    font-weight: 500;
    font-size: 14px;
}

.chart-bar-container {
    flex: 1;
    position: relative;
    height: 30px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.chart-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #2c3e50;
}

/* MBTI Results */
.mbti-type {
    text-align: center;
    margin: 30px 0;
}

.type-description {
    font-size: 1.1em;
    color: #555;
    max-width: 600px;
    margin: 20px auto;
    line-height: 1.6;
}

.mbti-dimensions {
    margin-top: 30px;
}

.dimension-row {
    margin-bottom: 25px;
}

.dimension-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.dimension-bar {
    display: flex;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
}

.bar-left {
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.bar-right {
    background: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

/* LASSI Results */
.lassi-chart {
    margin: 30px 0;
}

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

/* Admin Table */
.vocational-tests-section {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.vocational-tests-table {
    margin-top: 15px;
}

.vocational-tests-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.vocational-tests-table td {
    padding: 10px;
}

/* Modal */
.test-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.test-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.test-modal-close:hover,
.test-modal-close:focus {
    color: #000;
}

/* All Tests View */
.all-vocational-tests {
    max-width: 1200px;
    margin: 0 auto;
}

.test-result-section {
    margin-bottom: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .chart-label {
        width: 150px;
        font-size: 12px;
    }
    
    .dimension-labels {
        font-size: 14px;
    }
    
    .test-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
