/* assets/css/sistemas-lineares.css */
/* CSS ISOLADO - Apenas para Calculadora de Sistemas Lineares */

/* ===================================
   VARIÁVEIS DE COR - ÁREA MATEMÁTICA
   ================================== */
:root {
    --primary: #667eea;        /* Azul lógico */
    --secondary: #764ba2;      /* Roxo precisão */
    --accent: #f093fb;         /* Rosa suave */
    --light: #f8f9ff;          /* Fundo azul claro */
    --gradient: linear-gradient(135deg, #667eea, #764ba2);
    --danger: #dc2626;         /* Vermelho para avisos */
    --warning: #f59e0b;        /* Amarelo para atenção */
    --success: #22c55e;        /* Verde para sucesso */
}

/* ===================================
   PREVENIR SCROLL HORIZONTAL
   ================================== */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.sist-calculator-section,
.sist-container,
.sist-equation-row,
.sist-examples {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===================================
   SEÇÃO DA CALCULADORA SISTEMAS LINEARES
   ================================== */
.sist-calculator-section {
    margin-bottom: 3rem;
}

.sist-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sist-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sist-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.sist-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;
    overflow-x: hidden;
    max-width: 100%;
}

h2{
    
  /* Alinhamento e Cor */
  text-align: center;
  color: aliceblue; /* Azul primário do Bootstrap */
  
  /* Tipografia */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.25rem; /* Tamanho do título */
  font-weight: 700; /* Negrito */
  
  /* Espaçamento */
  margin-bottom: 1.5rem; /* Espaço abaixo do título */
}


.sist-inputs h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   SISTEMA DE ABAS ESPECÍFICO SIST
   ================================== */
.sist-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 1rem;
}

.sist-tab-btn {
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    color: #5a6c7d;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 100px;
}

.sist-tab-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.sist-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* ===================================
   CONTEÚDO DAS ABAS SIST
   ================================== */
.sist-tab-content {
    display: none;
}

.sist-tab-content.active {
    display: block;
    animation: fadeInSistTab 0.3s ease;
}

@keyframes fadeInSistTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   SISTEMA DE EQUAÇÕES
   ================================== */
.sist-system-input,
.sist-problem-input {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0e6ed;
}

.sist-equation-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.sist-equation-label {
    font-weight: 600;
    color: var(--primary);
    min-width: 80px;
    font-size: 0.9rem;
}

.sist-equation-2x2,
.sist-equation-3x3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    border: 2px solid var(--primary);
}

.sist-equation-2x2 input,
.sist-equation-3x3 input {
    width: 60px;
    padding: 0.6rem;
    border: 2px solid var(--primary);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    background: white;
    transition: all 0.3s ease;
}

.sist-equation-2x2 input:focus,
.sist-equation-3x3 input:focus {
    outline: none;
    border-color: var(--secondary);
    transform: scale(1.05);
    background: var(--light);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.sist-var {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
    font-style: italic;
}

.sist-op {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

/* ===================================
   RESULTADO DISPLAY SIST
   ================================== */
.sist-result-display {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.sist-result-display:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.sist-result-display.wide {
    min-width: 300px;
    padding: 1rem;
}

/* ===================================
   RESULTADOS ESPECÍFICOS SIST
   ================================== */
.sist-solution-result,
.sist-cramer-result,
.sist-gauss-result,
.sist-escalonado-result,
.sist-problem-result {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.sist-solution-item,
.sist-cramer-item,
.sist-gauss-step,
.sist-escalonado-item,
.sist-problem-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
}

.sist-solution-item:hover,
.sist-cramer-item:hover,
.sist-escalonado-item:hover,
.sist-problem-item:hover {
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.15);
}

.sist-solution-label,
.sist-cramer-label,
.sist-gauss-label,
.sist-escalonado-label,
.sist-problem-label {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.sist-solution-value,
.sist-cramer-value,
.sist-gauss-value,
.sist-escalonado-value,
.sist-problem-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary);
    font-family: 'Courier New', monospace;
}

/* ===================================
   MATRIZ ESPECÍFICA SIST
   ================================== */
.sist-matrix-display,
.sist-matrix-3x3 {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 10px;
    border: 2px solid var(--primary);
    margin-bottom: 1rem;
}

.sist-matrix-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
}

.sist-matrix-row input {
    width: 60px;
    padding: 0.6rem;
    border: 2px solid var(--primary);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    background: white;
}

.sist-matrix-separator {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin: 0 0.5rem;
}

.sist-gauss-matrix {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--primary);
    font-size: 0.9rem;
    color: var(--secondary);
    text-align: center;
    line-height: 1.5;
}

/* ===================================
   CRAMER ESPECÍFICO
   ================================== */
.sist-cramer-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sist-cramer-input h4 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

/* ===================================
   GAUSS ESPECÍFICO
   ================================== */
.sist-gauss-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sist-gauss-input h4 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

/* ===================================
   ESCALONADO ESPECÍFICO
   ================================== */
.sist-escalonado-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sist-escalonado-input h4 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

/* ===================================
   PROBLEMA PRÁTICO SIST
   ================================== */
.sist-problem-text {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #4caf50;
    text-align: center;
    margin-bottom: 1rem;
}

.sist-problem-text h4 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.sist-problem-text p {
    color: #388e3c;
    margin: 0;
    font-weight: 600;
    line-height: 1.6;
}

.sist-problem-setup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sist-problem-vars {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem;
    background: #e1f5fe;
    border-radius: 8px;
    border: 2px solid #03a9f4;
}

.sist-var-def {
    font-weight: 600;
    color: #0277bd;
    font-size: 0.9rem;
}

/* ===================================
   FÓRMULA ESPECÍFICA SIST
   ================================== */
.sist-formula {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ===================================
   EXEMPLOS E AJUDA SIST
   ================================== */
.sist-examples {
    text-align: center;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.sist-examples.hidden {
    display: none;
}

.sist-examples p {
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.sist-example-btn {
    background: var(--light);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    margin: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.sist-example-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.sist-help {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    transition: all 0.3s ease;
}

.sist-help.hidden {
    display: none;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO SIST
   ================================== */
.sist-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    animation: slideInUpSist 0.5s ease;
}

.sist-explanation h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.sist-step {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.sist-step h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.sist-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

/* ===================================
   CONTEÚDO EDUCACIONAL SIST
   ================================== */
.sist-educational-content {
    margin-top: 3rem;
}

.sist-content-block {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
}

.sist-content-block h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.sist-content-block h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.sist-content-block p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.sist-content-block strong {
    color: var(--primary);
}

/* ===================================
   FORMULA DISPLAY SIST
   ================================== */
.sist-formula-display {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.sist-formula-display h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sist-formula-display .formula p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: var(--secondary);
    font-weight: 600;
}

/* ===================================
   GRIDS EXEMPLOS E DICAS SIST
   ================================== */
.sist-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.sist-example-item {
    background: var(--light);
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUpSist 0.6s ease-out;
}

.sist-example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.sist-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.sist-example-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sist-example-item p {
    color: #5a6c7d;
    font-size: 0.95rem;
    margin: 0;
}

.sist-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.sist-tip-item {
    background: #ede7f6;
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.sist-tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sist-tip-item h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.sist-tip-item p {
    color: var(--secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   EXEMPLO DE SOLUÇÃO SIST
   ================================== */
.sist-example-solution {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.sist-example-solution h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.sist-solution-step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.sist-solution-step h5 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.sist-solution-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

.sist-solution-final {
    background: #ede7f6;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.sist-solution-final h5 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.sist-solution-final p {
    color: var(--secondary);
    margin: 0;
    font-family: inherit;
}

/* ===================================
   FAQ ESPECÍFICA MATEMÁTICA
   ================================== */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.faq-question {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    background: var(--light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #ede7f6;
    color: var(--secondary);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   CREDIBILIDADE MATEMÁTICA
   ================================== */
.credibilidade-container {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.credibilidade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.credibilidade-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.credibilidade-title {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.credibilidade-content {
    color: #444;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.credibilidade-logo {
    font-weight: 700;
    color: var(--secondary);
}

.credibilidade-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.credibilidade-badge {
    background: white;
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--primary);
}

/* ===================================
   ANIMAÇÕES SIST
   ================================== */
@keyframes fadeInUpSist {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUpSist {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE SIST
   ================================== */
@media (max-width: 768px) {
    .sist-header h1 {
        font-size: 2rem;
    }
    
    .sist-tabs {
        gap: 0.3rem;
    }
    
    .sist-tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: 85px;
    }
    
    .sist-equation-row {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .sist-equation-2x2,
    .sist-equation-3x3 {
        gap: 0.5rem;
        padding: 0.8rem;
        flex-direction: column;
        align-items: center;
    }
    
    .sist-equation-2x2 input,
    .sist-equation-3x3 input {
        width: 50px;
        font-size: 0.9rem;
    }
    
    .sist-result-display {
        min-width: 180px;
        padding: 1.2rem;
    }
    
    .sist-result-display.wide {
        min-width: 250px;
    }
    
    .sist-examples-grid,
    .sist-tips-grid {
        grid-template-columns: 1fr;
    }
    
    .sist-solution-item,
    .sist-cramer-item,
    .sist-escalonado-item,
    .sist-problem-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .sist-matrix-row {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sist-matrix-row input {
        width: 50px;
    }
    
    .sist-problem-vars {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .sist-header h1 {
        font-size: 1.8rem;
    }
    
    .sist-container {
        padding: 1rem;
    }
    
    .sist-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .sist-tab-btn {
        width: 140px;
    }
    
    .sist-equation-2x2,
    .sist-equation-3x3 {
        gap: 0.4rem;
        padding: 0.6rem;
    }
    
    .sist-equation-2x2 input,
    .sist-equation-3x3 input {
        width: 45px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .sist-result-display {
        min-width: 160px;
        padding: 1rem;
    }
    
    .sist-result-display.wide {
        min-width: 200px;
    }
    
    .sist-example-icon {
        font-size: 2rem;
    }
    
    .sist-problem-text {
        padding: 1rem;
    }
    
    .sist-solution-value,
    .sist-cramer-value,
    .sist-escalonado-value,
    .sist-problem-value {
        font-size: 1rem;
    }
    
    .sist-matrix-row input {
        width: 40px;
        padding: 0.4rem;
    }
    
    .sist-gauss-matrix {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
}