/* assets/css/probabilidade.css */
/* CSS ISOLADO - Apenas para Calculadora de Probabilidade */

/* ===================================
   CORES ESTATÍSTICA - PROBABILIDADE
   ================================== */
:root {
    /* Cores Estatística */
    --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 probabilidade */
    --prob-primary: #ff6b6b;
    --prob-secondary: #4ecdc4;
    --prob-accent: #ffe66d;
    --prob-light: #fff5f5;
    --prob-dark: #e55a5a;
    --prob-gradient: linear-gradient(135deg, #ff6b6b, #4ecdc4);
}

/* ===================================
   SEÇÃO DA CALCULADORA PROBABILIDADE
   ================================== */
.probabilidade-calculator-section {
    margin-bottom: 3rem;
}

.probabilidade-header {
    text-align: center;
    margin-bottom: 2rem;
}

.probabilidade-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.probabilidade-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.probabilidade-calculator-container {
    background: var(--prob-gradient);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    margin-bottom: 2rem;
}

.probabilidade-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
}

/* ===================================
   SELEÇÃO DE TIPO DE PROBABILIDADE
   ================================== */
.probabilidade-tipo-section {
    margin-bottom: 2rem;
}

.probabilidade-tipo-section h3 {
    color: var(--prob-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.probabilidade-tipo-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.probabilidade-radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 107, 107, 0.05);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 107, 0.1);
}

.probabilidade-radio-option:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 107, 107, 0.3);
}

.probabilidade-radio-option input[type="radio"] {
    display: none;
}

.probabilidade-radio-option input[type="radio"]:checked + .radio-custom {
    background: var(--prob-primary);
    border-color: var(--prob-primary);
}

.probabilidade-radio-option input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

.probabilidade-radio-option input[type="radio"]:checked ~ .option-info {
    color: #2c3e50;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 50%;
    position: relative;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-info {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.option-info strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.option-info small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===================================
   SEÇÕES DE INPUT
   ================================== */
.probabilidade-input-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.probabilidade-input-section.hidden {
    display: none;
}

.probabilidade-input-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.probabilidade-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--prob-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    transform: translateY(-1px);
}

.input-group small {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ===================================
   PROBABILIDADE COMPOSTA
   ================================== */
.probabilidade-operacao {
    margin-bottom: 1.5rem;
}

.probabilidade-operacao label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.probabilidade-operacao select {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.probabilidade-eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.evento-group {
    background: rgba(255, 107, 107, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.evento-group h4 {
    color: var(--prob-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ===================================
   BOTÕES
   ================================== */
.probabilidade-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-calcular,
.btn-limpar {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-calcular {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-calcular:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-limpar {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-limpar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* ===================================
   RESULTADO
   ================================== */
.probabilidade-resultado {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.probabilidade-resultado.hidden {
    display: none;
}

.probabilidade-resultado h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.resultado-main {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.resultado-probabilidade {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 1rem 0;
}

.resultado-interpretacao {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.resultado-interpretacao strong {
    color: #fff;
}

/* ===================================
   EXPLICAÇÃO
   ================================== */
.probabilidade-explanation {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 5px solid var(--prob-primary);
}

.probabilidade-explanation.hidden {
    display: none;
}

.probabilidade-explanation h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.step-by-step {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #e0e6ed;
}

.calculation-step {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.calculation-step:last-child {
    border-bottom: none;
}

.step-number {
    background: var(--prob-primary);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.75rem;
}

.step-formula {
    background: #f1f3f4;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    margin: 0.5rem 0;
    border-left: 3px solid var(--prob-primary);
}

/* ===================================
   EXEMPLOS
   ================================== */
.probabilidade-examples-section {
    margin-bottom: 3rem;
}

.probabilidade-examples-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.probabilidade-examples-section p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.example-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e0e6ed;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--prob-primary);
}

.example-card h4 {
    color: var(--prob-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.example-card p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-example {
    background: var(--prob-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-example:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

/* ===================================
   CONTEÚDO EDUCACIONAL - CARDS
   ================================== */
.educational-content {
    margin-top: 3rem;
}

.content-block {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
    border-left: 4px solid var(--prob-primary);
    transition: all 0.3s ease;
}

.content-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-left-color: var(--prob-accent);
}

.content-block h2 {
    color: var(--prob-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--prob-primary);
    padding-bottom: 0.5rem;
}

.content-block h3 {
    color: var(--prob-primary);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    border-bottom: 3px solid var(--prob-primary);
    padding-bottom: 0.5rem;
}

.content-block p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.content-block strong {
    color: var(--prob-primary);
}

.educational-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.educational-card {
    background: var(--prob-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--prob-primary);
    transition: all 0.3s ease;
}

.educational-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--prob-accent);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.educational-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.educational-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   EXEMPLO DETALHADO
   ================================== */
.example-detailed {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid #e0e6ed;
    border-left: 5px solid #28a745;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.example-scenario,
.example-calculation,
.example-interpretation {
    margin-bottom: 1.5rem;
}

.example-scenario h4,
.example-calculation h4,
.example-interpretation h4 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.example-calculation ul {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid #e0e6ed;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.example-calculation li {
    margin-bottom: 0.5rem;
    color: #495057;
}

/* ===================================
   FÓRMULAS
   ================================== */
.formula-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.formula-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #e0e6ed;
    transition: all 0.3s ease;
}

.formula-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--prob-primary);
}

.formula-card h4 {
    color: var(--prob-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.formula {
    background: #f1f3f4;
    padding: 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--prob-primary);
}

.formula-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   FAQ PROBABILIDADE
   ================================== */
.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(--prob-primary);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
}

.faq-question {
    background: var(--prob-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(--prob-dark);
}

.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(--prob-primary);
}

/* ===================================
   REFERÊNCIAS PROBABILIDADE
   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(--prob-primary);
    font-size: 0.95rem;
    color: #444;
    transition: all 0.3s ease;
}

.referencia-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
}

.referencia-item em {
    color: var(--prob-primary);
    font-weight: 600;
}

/* ===================================
   CREDIBILIDADE PROBABILIDADE
   MANTENDO ESTRUTURA ORIGINAL FUNCIONAL
   ================================== */
.credibilidade-container {
    background: var(--prob-light);
    border: 2px solid var(--prob-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(--prob-primary);
}

.credibilidade-title {
    color: var(--prob-primary);
    font-size: 1.4rem;
    margin: 0;
    font-weight: bold;
}

.credibilidade-content {
    font-size: 1.1rem;
    color: var(--prob-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--prob-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(--prob-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(--prob-secondary);
    transform: translateY(-2px);
}

.credibilidade-equipe {
    font-size: 0.9rem;
    color: var(--prob-dark);
    font-style: italic;
    margin-top: 1rem;
}

/* ===================================
   RESPONSIVIDADE
   ================================== */
@media (max-width: 768px) {
    .probabilidade-header h1 {
        font-size: 2rem;
    }
    
    .probabilidade-calculator-container {
        padding: 1.5rem;
    }
    
    .probabilidade-tipo-options {
        grid-template-columns: 1fr;
    }
    
    .probabilidade-input-grid {
        grid-template-columns: 1fr;
    }
    
    .probabilidade-eventos-grid {
        grid-template-columns: 1fr;
    }
    
    .probabilidade-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-calcular,
    .btn-limpar {
        width: 100%;
        max-width: 250px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .educational-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .formula-grid {
        grid-template-columns: 1fr;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .content-block {
        padding: 1.5rem;
    }
    
    .content-block h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .probabilidade-header h1 {
        font-size: 1.8rem;
    }
    
    .probabilidade-calculator-container {
        padding: 1rem;
    }
    
    .probabilidade-container {
        padding: 1.5rem;
    }
    
    .content-block {
        padding: 1rem;
    }
    
    .credibilidade-badges {
        gap: 0.5rem;
    }
    
    .credibilidade-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ===================================
   HIDDEN UTILITY
   ================================== */
.hidden {
    display: none !important;
}