/* assets/css/dispersao.css */
/* CSS ISOLADO - Apenas para Calculadora de Dispersão Estatística */

/* ===================================
   CORES ESTATÍSTICA - DISPERSÃO
   ================================== */
:root {
    /* Cores Estatística - Padrão correto */
    --primary: #ff6b6b;          /* Vermelho dados */
    --secondary: #4ecdc4;        /* Turquesa análise */
    --accent: #ffe66d;           /* Amarelo insights */
    --light: #fff5f5;            /* Fundo rosa claro */
    --gradient: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    
    /* Cores específicas dispersão */
    --dispersao-primary: #ff6b6b;
    --dispersao-secondary: #4ecdc4;
    --dispersao-accent: #ffe66d;
    --dispersao-light: #fff5f5;
    --dispersao-dark: #2d3748;
    --dispersao-text: #1a202c;
    --dispersao-shadow: rgba(255, 107, 107, 0.1);
    --dispersao-border: #fbb6ce;
}

/* ===================================
   SEÇÃO DA CALCULADORA DISPERSÃO
   ================================== */
.dispersao-calculator-section {
    margin-bottom: 3rem;
}

.dispersao-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dispersao-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.1);
}

.dispersao-header p {
    color: #4a5568;
    font-size: 1.2rem;
    opacity: 0.9;
}

.dispersao-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--dispersao-shadow);
    border: 1px solid var(--dispersao-border);
}

/* ===================================
   INPUTS DISPERSÃO
   ================================== */
.dispersao-input-section {
    margin-bottom: 2rem;
}

.dispersao-input-group {
    margin-bottom: 1.5rem;
}

.dispersao-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dispersao-text);
    font-size: 1.1rem;
}

.dispersao-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--dispersao-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
    font-family: 'Courier New', monospace;
}

.dispersao-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.dispersao-input-info {
    margin-top: 0.5rem;
}

.dispersao-input-info small {
    color: #718096;
    font-style: italic;
}

.dispersao-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dispersao-option-group label {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.dispersao-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--dispersao-border);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.dispersao-select:focus {
    outline: none;
    border-color: var(--primary);
}

.dispersao-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dispersao-btn-calcular {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 4px 15px var(--dispersao-shadow);
}

.dispersao-btn-calcular:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--dispersao-shadow);
}

.dispersao-btn-limpar {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.dispersao-btn-limpar:hover {
    background: linear-gradient(135deg, #c53030, #9c2a2a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 48, 48, 0.3);
}

/* ===================================
   RESULTADO DISPERSÃO
   ================================== */
.dispersao-resultado {
    background: linear-gradient(135deg, var(--light), #fef2f2);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.dispersao-resultado h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.dispersao-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dispersao-result-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px var(--dispersao-shadow);
    border: 1px solid var(--dispersao-border);
    text-align: center;
    transition: transform 0.3s ease;
}

.dispersao-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--dispersao-shadow);
}

.dispersao-result-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.dispersao-result-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dispersao-text);
    margin-bottom: 0.5rem;
}

.dispersao-result-description {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dispersao-data-summary {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.dispersao-data-summary h4 {
    color: var(--dispersao-text);
    margin-bottom: 0.5rem;
}

.dispersao-data-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dispersao-data-item {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ===================================
   EXPLICAÇÃO DISPERSÃO
   ================================== */
.dispersao-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light), #fef2f2);
    border: 2px solid var(--primary);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.dispersao-explanation h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.dispersao-explanation-content {
    color: var(--dispersao-text);
    line-height: 1.6;
}

/* PASSOS DIDÁTICOS MELHORADOS */
.dispersao-step-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px var(--dispersao-shadow);
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
}

.dispersao-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--dispersao-shadow);
}

.dispersao-step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f7fafc;
}

.dispersao-step-icon {
    background: var(--gradient);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 1rem;
    box-shadow: 0 3px 10px var(--dispersao-shadow);
}

.dispersao-step-title {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.dispersao-step-content {
    color: var(--dispersao-text);
    line-height: 1.6;
}

.dispersao-step-content ul {
    margin-left: 0;
    list-style: none;
    padding: 0;
}

.dispersao-step-content li {
    background: #f7fafc;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
    position: relative;
}

.dispersao-step-content li:before {
    content: "▶️";
    margin-right: 0.5rem;
}

.dispersao-formula-highlight {
    background: linear-gradient(135deg, var(--light), #fff1f0);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: var(--dispersao-text);
    box-shadow: 0 3px 10px rgba(255, 230, 109, 0.2);
}

.dispersao-calculation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.dispersao-calc-item {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--dispersao-border);
}

.dispersao-calc-item h6 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.dispersao-interpretation-box {
    background: linear-gradient(135deg, #fef5e7, #fed7aa);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.dispersao-interpretation-box h5 {
    color: #c05621;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.dispersao-interpretation-box h5:before {
    content: "💡";
    margin-right: 0.5rem;
    font-size: 1.3rem;
}

.dispersao-interpretation-box ul {
    margin-left: 0;
    list-style: none;
    padding: 0;
}

.dispersao-interpretation-box li {
    background: white;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    color: #744210;
}

.dispersao-interpretation-box li:before {
    content: "✨";
    margin-right: 0.5rem;
}

/* ===================================
   EXEMPLOS DISPERSÃO
   ================================== */
.dispersao-examples-section, .dispersao-help-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px var(--dispersao-shadow);
    border: 1px solid var(--dispersao-border);
}

.dispersao-examples-section h3, .dispersao-help-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.dispersao-examples-grid, .dispersao-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.dispersao-example-card, .dispersao-help-item {
    background: linear-gradient(135deg, var(--light), #fef2f2);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--dispersao-border);
}

.dispersao-example-card:hover, .dispersao-help-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--dispersao-shadow);
    border-color: var(--primary);
}

.dispersao-example-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.dispersao-example-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.dispersao-btn-example {
    background: linear-gradient(135deg, var(--secondary), #38b2ac);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.dispersao-btn-example:hover {
    background: linear-gradient(135deg, #38b2ac, #319795);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.dispersao-help-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.dispersao-help-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.dispersao-help-item p {
    color: #4a5568;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ===================================
   CONTEÚDO EDUCACIONAL DISPERSÃO
   ================================== */
.dispersao-educational-content {
    margin-top: 3rem;
}

.dispersao-content-block {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px var(--dispersao-shadow);
    border: 1px solid var(--dispersao-border);
}

.dispersao-content-block h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.dispersao-content-block h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.dispersao-content-block p {
    color: var(--dispersao-text);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.dispersao-applications-grid, .dispersao-measures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dispersao-app-card, .dispersao-measure-card {
    background: linear-gradient(135deg, var(--light), #fef2f2);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--dispersao-border);
}

.dispersao-app-card:hover, .dispersao-measure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--dispersao-shadow);
    border-color: var(--primary);
}

.dispersao-app-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.dispersao-app-card h3, .dispersao-measure-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.dispersao-app-card p, .dispersao-measure-card p {
    color: #4a5568;
    line-height: 1.5;
    font-size: 0.95rem;
}

.dispersao-example-detailed {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin-top: 1rem;
}

.dispersao-example-detailed h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.dispersao-example-detailed ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.dispersao-example-detailed li {
    margin-bottom: 0.5rem;
    color: var(--dispersao-text);
    line-height: 1.5;
}

/* ===================================
   FAQ DISPERSÃO ESTATÍSTICA
   ================================== */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--dispersao-shadow);
}

.faq-question {
    background: var(--primary);
    color: white;
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    display: block;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--secondary);
}

.faq-question::before {
    content: "▼ ";
    font-size: 0.8rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::before {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #ecf0f1;
}

.faq-answer p {
    margin: 0.5rem 0;
    color: #444;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--primary);
}

/* ===================================
   REFERÊNCIAS DISPERSÃO 
   MANTENDO CLASSES ORIGINAIS FUNCIONAIS
   ================================== */
.referencias-container {
    margin-top: 1.5rem;
}

.referencias-lista {
    list-style: none;
    padding: 0;
}

.referencia-item {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    font-size: 0.95rem;
    color: #444;
    transition: all 0.3s ease;
}

.referencia-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px var(--dispersao-shadow);
}

.referencia-item em {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   CREDIBILIDADE DISPERSÃO
   MANTENDO ESTRUTURA ORIGINAL FUNCIONAL
   ================================== */
.credibilidade-container {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.credibilidade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.credibilidade-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.credibilidade-title {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 0;
    font-weight: bold;
}

.credibilidade-content {
    font-size: 1.1rem;
    color: var(--dispersao-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.credibilidade-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.credibilidade-badge {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.credibilidade-badge:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.credibilidade-equipe {
    font-size: 0.9rem;
    color: var(--dispersao-text);
    font-style: italic;
    margin-top: 1rem;
}

/* ===================================
   UTILITÁRIAS DISPERSÃO
   ================================== */
.hidden {
    display: none !important;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE DISPERSÃO
   ================================== */
@media (max-width: 768px) {
    .dispersao-header h1 {
        font-size: 2rem;
    }
    
    .dispersao-header p {
        font-size: 1rem;
    }
    
    .dispersao-container {
        padding: 1.5rem;
    }
    
    .dispersao-options {
        grid-template-columns: 1fr;
    }
    
    .dispersao-buttons {
        flex-direction: column;
    }
    
    .dispersao-btn-calcular, .dispersao-btn-limpar {
        min-width: 100%;
    }
    
    .dispersao-results-grid {
        grid-template-columns: 1fr;
    }
    
    .dispersao-examples-grid, .dispersao-help-grid {
        grid-template-columns: 1fr;
    }
    
    .dispersao-applications-grid, .dispersao-measures-grid {
        grid-template-columns: 1fr;
    }
    
    .dispersao-content-block, .dispersao-examples-section, .dispersao-help-section {
        padding: 1.5rem;
    }
    
    .dispersao-textarea {
        min-height: 100px;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .dispersao-header h1 {
        font-size: 1.8rem;
    }
    
    .dispersao-container {
        padding: 1rem;
    }
    
    .dispersao-content-block, .dispersao-examples-section, .dispersao-help-section {
        padding: 1rem;
    }
    
    .dispersao-result-value {
        font-size: 1.5rem;
    }
    
    .credibilidade-badges {
        gap: 0.5rem;
    }
    
    .credibilidade-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}