/* ===== SRS-2 Plugin Styles ===== */

/* Container principal */
.srs2-hetero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #faf8f5;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(101, 67, 33, 0.1);
}

/* Cabeçalho */
.srs2-hetero-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #8b6f47, #a0845c);
    color: white;
    border-radius: 8px;
}

.srs2-hetero-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.srs2-hetero-subtitle {
    font-size: 16px;
    margin: 5px 0;
    opacity: 0.9;
}

.srs2-hetero-description {
    font-size: 14px;
    margin: 10px 0 0 0;
    opacity: 0.8;
}

/* Informações do paciente */
.srs2-hetero-patient-info {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f5f1eb;
    border-radius: 8px;
    border-left: 4px solid #8b6f47;
}

.srs2-hetero-patient-info label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #654321;
    font-size: 16px;
}

.srs2-hetero-patient-info input {
    width: 100%;
    padding: 12px;
    border: 2px solid #d4c4a8;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.srs2-hetero-patient-info input:focus {
    outline: none;
    border-color: #8b6f47;
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

/* Barra de progresso */
.srs2-hetero-progress-container {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f6f0;
    border-radius: 8px;
}

.srs2-hetero-progress-bar {
    width: 100%;
    height: 12px;
    background-color: #e8dcc6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.srs2-hetero-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b6f47, #a0845c);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.srs2-hetero-progress-text {
    text-align: center;
    font-size: 14px;
    color: #654321;
    font-weight: 500;
}

/* Instruções */
.srs2-hetero-instructions {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f5f1eb;
    border-radius: 8px;
    border: 1px solid #d4c4a8;
}

.srs2-hetero-instructions h3 {
    margin: 0 0 15px 0;
    color: #654321;
    font-size: 20px;
}

.srs2-hetero-instructions p {
    margin-bottom: 15px;
    color: #5a4a3a;
    line-height: 1.6;
}

.srs2-hetero-scale {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.srs2-hetero-scale span {
    padding: 8px 12px;
    background-color: #e8dcc6;
    border-radius: 6px;
    font-size: 14px;
    color: #654321;
    text-align: center;
    font-weight: 500;
}

/* Questões */
.srs2-hetero-questions {
    margin-bottom: 30px;
}

.srs2-hetero-question {
    margin-bottom: 25px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e8dcc6;
    transition: box-shadow 0.3s ease;
}

.srs2-hetero-question:hover {
    box-shadow: 0 2px 8px rgba(139, 111, 71, 0.1);
}

.srs2-hetero-question-text {
    display: block;
    font-weight: 500;
    margin-bottom: 15px;
    color: #4a3c2a;
    line-height: 1.5;
    font-size: 16px;
}

/* Opções com texto completo (v1.1.0) */
.srs2-hetero-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-label {
    display: flex !important;
    align-items: center !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    background-color: #ffffff !important;
    border: 2px solid #e8dcc6 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-label:hover {
    background-color: #f5f1eb !important;
    border-color: #a0845c !important;
    transform: translateX(5px) !important;
}

.srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-label input[type="radio"] {
    margin-right: 12px !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    accent-color: #8b6f47 !important;
}

.srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-label:has(input:checked) {
    background-color: #8b6f47 !important;
    border-color: #8b6f47 !important;
}

.srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-label:has(input:checked) .srs2-hetero-option-text {
    color: white !important;
}

.srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-label:has(input:checked) .srs2-hetero-option-number {
    color: white !important;
}

.srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-label:has(input:checked) .srs2-hetero-option-description {
    color: white !important;
}

.srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-text {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    color: #5a4a3a !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

.srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-number {
    font-weight: bold !important;
    color: #8b6f47 !important;
    margin-right: 8px !important;
    font-size: 16px !important;
    min-width: 15px !important;
}

.srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-description {
    color: #5a4a3a !important;
    font-size: 15px !important;
}

/* Loading */
.srs2-hetero-loading {
    text-align: center;
    padding: 20px;
    background-color: #f5f1eb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.srs2-hetero-loading p {
    margin: 0;
    font-size: 16px;
    color: #654321;
    font-weight: 500;
}

/* Botão de envio */
.srs2-hetero-submit-container {
    text-align: center;
    margin-top: 30px;
}

.srs2-hetero-submit {
    background: linear-gradient(135deg, #8b6f47, #a0845c);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

.srs2-hetero-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #a0845c, #8b6f47);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.4);
}

.srs2-hetero-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Página de Resultados ===== */

.srs2-hetero-results-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.srs2-hetero-results-container {
    background-color: #faf8f5;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(101, 67, 33, 0.1);
    overflow: hidden;
}

.srs2-hetero-results-header {
    background: linear-gradient(135deg, #8b6f47, #a0845c);
    color: white;
    padding: 30px;
    text-align: center;
}

.srs2-hetero-results-header h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 600;
}

.srs2-hetero-results-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

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

.srs2-hetero-results-summary {
    padding: 30px;
    text-align: center;
    background-color: white;
}

.srs2-hetero-results-summary h3 {
    margin: 0 0 25px 0;
    color: #654321;
    font-size: 24px;
}

.srs2-hetero-score-card {
    background: linear-gradient(135deg, #f5f1eb, #f9f6f0);
    border: 2px solid #e8dcc6;
    border-radius: 12px;
    padding: 30px;
    margin: 0 auto;
    max-width: 400px;
}

.srs2-hetero-score-value {
    font-size: 48px;
    font-weight: 700;
    color: #8b6f47;
    margin-bottom: 10px;
}

.srs2-hetero-score-label {
    font-size: 16px;
    color: #654321;
    margin-bottom: 15px;
    font-weight: 500;
}

.srs2-hetero-score-interpretation {
    font-size: 20px;
    font-weight: 600;
    color: #5a4a3a;
    padding: 12px 20px;
    background-color: #e8dcc6;
    border-radius: 8px;
}

.srs2-hetero-results-interpretation {
    padding: 30px;
    background-color: #f9f6f0;
}

.srs2-hetero-results-interpretation h3 {
    margin: 0 0 20px 0;
    color: #654321;
    font-size: 22px;
}

.srs2-hetero-interpretation-text p {
    margin-bottom: 15px;
    color: #5a4a3a;
    line-height: 1.6;
    font-size: 16px;
}

.srs2-hetero-scale-reference {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8dcc6;
    margin-top: 20px;
}

.srs2-hetero-scale-reference h4 {
    margin: 0 0 15px 0;
    color: #654321;
    font-size: 18px;
}

.srs2-hetero-scale-reference ul {
    margin: 0;
    padding-left: 20px;
}

.srs2-hetero-scale-reference li {
    margin-bottom: 8px;
    color: #5a4a3a;
    line-height: 1.5;
}

.srs2-hetero-results-actions {
    padding: 30px;
    text-align: center;
    background-color: white;
    border-top: 1px solid #e8dcc6;
}

.srs2-hetero-btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.srs2-hetero-btn-print {
    background: linear-gradient(135deg, #8b6f47, #a0845c);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

.srs2-hetero-btn-print:hover {
    background: linear-gradient(135deg, #a0845c, #8b6f47);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.4);
}

.srs2-hetero-btn-new {
    background-color: #e8dcc6;
    color: #654321;
    border: 2px solid #d4c4a8;
}

.srs2-hetero-btn-new:hover {
    background-color: #d4c4a8;
    transform: translateY(-2px);
}

.srs2-hetero-results-disclaimer {
    padding: 30px;
    background-color: #f5f1eb;
    border-top: 1px solid #e8dcc6;
}

.srs2-hetero-results-disclaimer h4 {
    margin: 0 0 15px 0;
    color: #654321;
    font-size: 18px;
}

.srs2-hetero-results-disclaimer ul {
    margin: 0;
    padding-left: 20px;
}

.srs2-hetero-results-disclaimer li {
    margin-bottom: 10px;
    color: #5a4a3a;
    line-height: 1.6;
    font-size: 14px;
}

.srs2-hetero-loading-message {
    text-align: center;
    padding: 40px;
    background-color: #f5f1eb;
    border-radius: 8px;
    margin: 20px;
}

.srs2-hetero-loading-message p {
    margin: 0;
    font-size: 18px;
    color: #654321;
    font-weight: 500;
}

/* Estilos para Subescalas - Prioridade Alta */
.srs2-hetero-results-container .srs2-hetero-subscales-results {
    margin: 30px 0 !important;
    padding: 25px !important;
    background: linear-gradient(135deg, #f8f6f0 0%, #f0ede3 100%) !important;
    border-radius: 15px !important;
    border: 1px solid #d4c4a0 !important;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.1) !important;
}

.srs2-hetero-results-container .srs2-hetero-subscales-results h3 {
    color: #8b7355 !important;
    margin-bottom: 20px !important;
    font-size: 1.4em !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.srs2-hetero-results-container .srs2-hetero-subscales-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 25px !important;
}

.srs2-hetero-results-container .srs2-hetero-subscale-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    text-align: center !important;
    border: 2px solid #d4c4a0 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(139, 115, 85, 0.08) !important;
}

.srs2-hetero-results-container .srs2-hetero-subscale-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.15) !important;
    border-color: #8b7355 !important;
}

.srs2-hetero-results-container .srs2-hetero-subscale-title {
    font-weight: 600 !important;
    color: #8b7355 !important;
    font-size: 1.1em !important;
    margin-bottom: 10px !important;
}

.srs2-hetero-results-container .srs2-hetero-subscale-score {
    font-size: 2.2em !important;
    font-weight: bold !important;
    color: #a0845c !important;
    margin: 15px 0 !important;
    text-shadow: 1px 1px 2px rgba(139, 115, 85, 0.1) !important;
}

.srs2-hetero-results-container .srs2-hetero-subscale-description {
    color: #6b5b47 !important;
    font-size: 0.9em !important;
    line-height: 1.4 !important;
    font-style: italic !important;
}

.srs2-hetero-results-container .srs2-hetero-scale-reference {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 20px !important;
    border-left: 4px solid #8b7355 !important;
    margin-top: 20px !important;
}

.srs2-hetero-results-container .srs2-hetero-scale-reference h4 {
    color: #8b7355 !important;
    margin-bottom: 15px !important;
    font-size: 1.1em !important;
}

.srs2-hetero-results-container .srs2-hetero-scale-reference ul {
    margin: 0 !important;
    padding-left: 20px !important;
}

.srs2-hetero-results-container .srs2-hetero-scale-reference li {
    margin-bottom: 8px !important;
    color: #6b5b47 !important;
    line-height: 1.4 !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .srs2-hetero-container,
    .srs2-hetero-results-wrapper {
        padding: 15px;
    }
    
    .srs2-hetero-header h2 {
        font-size: 24px;
    }
    
    .srs2-hetero-scale {
        grid-template-columns: 1fr;
    }
    
    .srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-label {
        padding: 10px 12px !important;
    }
    
    .srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-text {
        font-size: 14px !important;
    }
    
    .srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-number {
        font-size: 15px !important;
    }
    
    .srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-description {
        font-size: 14px !important;
    }
    
    .srs2-hetero-results-header {
        padding: 20px;
    }
    
    .srs2-hetero-results-header h2 {
        font-size: 24px;
    }
    
    .srs2-hetero-score-value {
        font-size: 36px;
    }
    
    .srs2-hetero-btn {
        display: block;
        margin: 10px 0;
        width: 100%;
        max-width: 300px;
    }
    
    .srs2-hetero-results-container .srs2-hetero-subscales-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .srs2-hetero-results-container .srs2-hetero-subscale-card {
        padding: 15px !important;
    }
    
    .srs2-hetero-results-container .srs2-hetero-subscale-score {
        font-size: 1.8em !important;
    }
    
    .srs2-hetero-results-container .srs2-hetero-subscales-results {
        padding: 20px 15px !important;
    }
}

@media (max-width: 480px) {
    .srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-label {
        padding: 8px 10px !important;
    }
    
    .srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-text {
        font-size: 13px !important;
    }
    
    .srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-number {
        font-size: 14px !important;
    }
    
    .srs2-hetero-container .srs2-hetero-options .srs2-hetero-option-description {
        font-size: 13px !important;
    }
    
    .srs2-hetero-results-container .srs2-hetero-subscale-score {
        font-size: 1.6em !important;
    }
    
    .srs2-hetero-results-container .srs2-hetero-subscale-title {
        font-size: 1em !important;
    }
    
    .srs2-hetero-results-container .srs2-hetero-scale-reference {
        padding: 15px !important;
    }
}

/* Estilos para impressão */
@media print {
    .srs2-hetero-results-actions {
        display: none;
    }
    
    .srs2-hetero-results-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .srs2-hetero-results-header {
        background: #8b6f47 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

