/* assets/css/checksum.css */
/* CSS ISOLADO - Apenas para Calculadora de Checksum */
/* CORES COMPUTAÇÃO APLICADAS - MANTENDO TODAS AS CLASSES FUNCIONAIS */

/* ===== VARIÁVEIS COMPUTAÇÃO ===== */
:root {
    --primary: #2d3436;          /* Preto código */
    --secondary: #00b894;        /* Verde terminal */
    --accent: #0984e3;           /* Azul digital */
    --light: #f8f9fa;            /* Fundo cinza claro */
    --gradient: linear-gradient(135deg, #2d3436, #00b894);
    
    /* Cores complementares */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0ea5e9;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border: #d1d5db;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
}

/* ===================================
   SEÇÃO DA CALCULADORA CHECKSUM
   ================================== */
.checksum-calculator-section {
    margin-bottom: 3rem;
}

.checksum-header {
    text-align: center;
    margin-bottom: 2rem;
}

.checksum-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.checksum-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.checksum-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(45, 52, 54, 0.1);
    border: 1px solid var(--light);
}

/* ===================================
   SISTEMA DE TABS
   ================================== */
.checksum-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.checksum-tab-btn {
    background: var(--gray-50);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.checksum-tab-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.checksum-tab-btn.active {
    background: var(--primary);
    color: white;
    border-bottom: 2px solid var(--primary);
}

.checksum-tab-content {
    display: none;
}

.checksum-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===================================
   INPUT SECTION
   ================================== */
.checksum-input-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.checksum-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checksum-input-group.full-width {
    width: 100%;
}

.checksum-input-group label {
    font-weight: 600;
    color: var(--primary);
}

.checksum-input-group textarea,
.checksum-input-group input,
.checksum-input-group select {
    padding: 0.75rem;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Courier New', monospace;
}

.checksum-input-group textarea:focus,
.checksum-input-group input:focus,
.checksum-input-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.checksum-input-group small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.checksum-input-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Algoritmos Grid */
.checksum-algorithms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checksum-algorithm-card {
    background: linear-gradient(135deg, var(--light), var(--gray-100));
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checksum-algorithm-card:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}

.checksum-algorithm-card:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--light), rgba(45, 52, 54, 0.05));
}

.checksum-checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.checksum-checkbox-label input[type="checkbox"] {
    width: auto;
    align-self: flex-start;
}

.checksum-algorithm-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.checksum-algorithm-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Verificação e Comparação Grids */
.checksum-verification-grid,
.checksum-comparison-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.checksum-verification-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.checksum-comparison-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
}

.checksum-comparison-vs {
    background: linear-gradient(135deg, var(--accent), #0369a1);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    min-width: 60px;
}

.checksum-hash-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Botões */
.checksum-calculate-btn,
.checksum-clear-btn,
.checksum-copy-btn,
.checksum-export-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.checksum-calculate-btn {
    background: var(--gradient);
    color: white;
}

.checksum-calculate-btn:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 52, 54, 0.3);
}

.checksum-clear-btn {
    background: var(--gray-100);
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.checksum-clear-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

.checksum-copy-btn,
.checksum-export-btn {
    background: linear-gradient(135deg, var(--accent), #0284c7);
    color: white;
    margin-right: 0.5rem;
}

.checksum-copy-btn:hover,
.checksum-export-btn:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-1px);
}

/* ===================================
   RESULTADO CHECKSUM
   ================================== */
.checksum-resultado {
    background: linear-gradient(135deg, var(--light), var(--gray-100));
    border: 2px solid var(--secondary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.checksum-resultado h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Results Grid */
.checksum-results-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checksum-result-item {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.checksum-result-item:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}

.checksum-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.checksum-result-algorithm {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.checksum-result-length {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.checksum-result-hash {
    font-family: 'Courier New', monospace;
    background: var(--primary);
    color: var(--secondary);
    padding: 1rem;
    border-radius: 8px;
    word-break: break-all;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

.checksum-copy-hash-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.checksum-copy-hash-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Actions */
.checksum-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Verification Results */
.checksum-verification-result {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.checksum-verification-result.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid var(--success);
    color: #047857;
}

.checksum-verification-result.failure {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid var(--danger);
    color: #dc2626;
}

.checksum-verification-result.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid var(--warning);
    color: #92400e;
}

.checksum-verification-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.checksum-verification-status {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.checksum-verification-message {
    font-size: 1rem;
    opacity: 0.9;
}

.checksum-verification-details {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.checksum-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.checksum-detail-row:last-child {
    border-bottom: none;
}

.checksum-detail-label {
    font-weight: 600;
    color: #374151;
}

.checksum-detail-value {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    word-break: break-all;
    max-width: 60%;
    text-align: right;
}

/* Comparison Results */
.checksum-comparison-result {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.checksum-comparison-result.match {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid var(--success);
    color: #047857;
}

.checksum-comparison-result.mismatch {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid var(--danger);
    color: #dc2626;
}

.checksum-comparison-result.different-types {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid var(--warning);
    color: #92400e;
}

.checksum-comparison-analysis {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

/* ===================================
   MELHORIAS PARA EXPLICAÇÃO DO CHECKSUM
   ================================== */

.checksum-explanation {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid var(--accent);
    border-radius: 15px;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 8px 25px rgba(9, 132, 227, 0.15);
}

.checksum-explanation h3 {
    color: #0c4a6e;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #0284c7;
    padding-bottom: 0.5rem;
}

/* Container dos passos de verificação */
#calculationSteps {
    display: flex;
    flex-direction: column;
}

#calculationSteps h4 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    margin: 0 0 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px rgba(45, 52, 54, 0.2);
}

/* Timeline de verificação */
.verification-timeline {
    position: relative;
    padding-left: 2rem;
}

.verification-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--secondary));
}

/* Estilização dos passos de verificação */
#calculationSteps p {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin: 0.8rem 0;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

#calculationSteps p:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

#calculationSteps p strong {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 180px;
    flex-shrink: 0;
}

/* Ícones dos passos */
#calculationSteps p::before {
    content: '';
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

/* Passo 1 - Algoritmo detectado */
#calculationSteps p:has(strong:contains("1. Algoritmo")) {
    border-left: 4px solid #8b5cf6;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

#calculationSteps p:has(strong:contains("1. Algoritmo"))::before {
    content: '🔍';
    background: #8b5cf6;
}

/* Passo 2 - Checksum calculado */
#calculationSteps p:has(strong:contains("2. Checksum calculado")) {
    border-left: 4px solid var(--accent);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

#calculationSteps p:has(strong:contains("2. Checksum calculado"))::before {
    content: '⚙️';
    background: var(--accent);
}

/* Passo 3 - Checksum esperado */
#calculationSteps p:has(strong:contains("3. Checksum esperado")) {
    border-left: 4px solid var(--warning);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

#calculationSteps p:has(strong:contains("3. Checksum esperado"))::before {
    content: '📋';
    background: var(--warning);
}

/* Passo 4 - Comparação */
#calculationSteps p:has(strong:contains("4. Comparação")) {
    border-left: 4px solid var(--secondary);
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
}

#calculationSteps p:has(strong:contains("4. Comparação"))::before {
    content: '🔄';
    background: var(--secondary);
}

/* Resultado da comparação - Sucesso */
.comparison-success {
    border-left-color: var(--success) !important;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
}

.comparison-success::before {
    content: '✅' !important;
    background: var(--success) !important;
}

/* Resultado da comparação - Falha */
.comparison-failure {
    border-left-color: var(--danger) !important;
    background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
}

.comparison-failure::before {
    content: '❌' !important;
    background: var(--danger) !important;
}

/* Conclusão */
#calculationSteps p:has(strong:contains("Conclusão")) {
    border: 3px solid var(--primary);
    background: linear-gradient(135deg, var(--light), rgba(45, 52, 54, 0.05));
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 1.05rem;
}

#calculationSteps p:has(strong:contains("Conclusão"))::before {
    content: '🎯';
    background: var(--primary);
    width: 45px;
    height: 45px;
    margin: 0 auto 0.5rem;
}

#calculationSteps p:has(strong:contains("Conclusão")) strong {
    margin-right: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Conclusão de sucesso */
.conclusion-success {
    border-color: var(--success) !important;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
}

.conclusion-success::before {
    content: '🎉' !important;
    background: var(--success) !important;
}

.conclusion-success strong {
    color: #047857 !important;
}

/* Conclusão de falha */
.conclusion-failure {
    border-color: var(--danger) !important;
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
}

.conclusion-failure::before {
    content: '⚠️' !important;
    background: var(--danger) !important;
}

.conclusion-failure strong {
    color: #dc2626 !important;
}

/* Valores de hash em monospace */
#calculationSteps p:contains("2d8d3a78"),
#calculationSteps p:contains("sha"),
#calculationSteps p:contains("md5") {
    font-family: 'Courier New', monospace;
}

/* Hash values styling */
.hash-value {
    font-family: 'Courier New', monospace;
    background: rgba(45, 52, 54, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    color: var(--primary);
    word-break: break-all;
    font-size: 0.9rem;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.status-badge.match {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #10b981;
}

.status-badge.mismatch {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #ef4444;
}

/* Responsividade para explicação do checksum */
@media (max-width: 768px) {
    .checksum-explanation {
        padding: 1.5rem;
    }
    
    .verification-timeline {
        padding-left: 1rem;
    }
    
    .verification-timeline::before {
        left: 0.5rem;
    }
    
    #calculationSteps p {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    #calculationSteps p strong {
        min-width: auto;
        margin-bottom: 0.5rem;
    }
    
    #calculationSteps p::before {
        margin: 0 auto 0.5rem;
    }
}

@media (max-width: 480px) {
    .checksum-explanation h3 {
        font-size: 1.2rem;
    }
    
    #calculationSteps h4 {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    #calculationSteps p {
        padding: 1rem;
    }
    
    .hash-value {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ===================================
   CONTEÚDO EDUCACIONAL CHECKSUM
   ================================== */
.checksum-educational-content {
    margin-top: 3rem;
}

.checksum-content-block {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(45, 52, 54, 0.08);
    border: 1px solid var(--light);
}

.checksum-content-block h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.checksum-content-block p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Types Grid */
.checksum-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.checksum-type-card {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid;
}

.checksum-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.checksum-type-card.security-low {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.checksum-type-card.security-medium {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    border-color: #f97316;
}

.checksum-type-card.security-good {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #3b82f6;
}

.checksum-type-card.security-high {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: var(--success);
}

.checksum-type-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.checksum-type-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary);
}

.checksum-type-card p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.checksum-type-info {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Applications Grid */
.checksum-applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.checksum-app-card {
    background: linear-gradient(135deg, var(--light), #e0f2fe);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.checksum-app-card:hover {
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.2);
}

.checksum-app-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.checksum-app-card h4 {
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.checksum-app-card p {
    color: #075985;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.checksum-app-example {
    font-family: 'Courier New', monospace;
    background: var(--primary);
    color: var(--secondary);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Step by Step */
.checksum-step-by-step {
    margin-top: 2rem;
}

.checksum-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.checksum-step-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

.checksum-step-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.checksum-step-content p {
    color: var(--text-secondary);
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.checksum-step-content code {
    background: var(--secondary);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

/* Comparison Example */
.checksum-comparison-example {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.checksum-hash-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.checksum-hash-line.oficial {
    background: #f0f9ff;
    border: 1px solid var(--accent);
}

.checksum-hash-line.calculado {
    background: #f0fdf4;
    border: 1px solid var(--success);
}

.checksum-label {
    font-weight: 600;
    color: #374151;
    min-width: 80px;
}

.checksum-value {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    word-break: break-all;
    font-size: 0.8rem;
}

.checksum-match {
    text-align: center;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 1rem;
}

/* Security Grid */
.checksum-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.checksum-security-card {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid;
}

.checksum-security-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.checksum-security-card.level-excellent {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: var(--success);
}

.checksum-security-card.level-good {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #3b82f6;
}

.checksum-security-card.level-basic {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.checksum-security-card.level-technical {
    background: linear-gradient(135deg, var(--gray-100), var(--border));
    border-color: var(--text-secondary);
}

.checksum-security-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.checksum-security-methods {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.checksum-tips-section {
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.checksum-tips-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.checksum-tips-list {
    list-style: none;
    padding: 0;
}

.checksum-tips-list li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.checksum-tips-list li strong {
    color: var(--primary);
}

/* ===================================
   FAQ, CREDIBILIDADE E REFERÊNCIAS
   ================================== */
.content-block {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--light);
    transition: all 0.3s ease;
}

.content-block:hover {
    box-shadow: 0 10px 35px rgba(45, 52, 54, 0.1);
    transform: translateY(-2px);
}

.content-block h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 0.8rem;
    font-weight: 600;
}

/* FAQ Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(45, 52, 54, 0.1);
}

.faq-item[open] {
    box-shadow: 0 8px 25px rgba(45, 52, 54, 0.15);
}

.faq-question {
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question:hover {
    background: var(--secondary);
}

.faq-question::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1.5rem;
    background: var(--white);
}

.faq-answer p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer strong {
    color: var(--primary);
    font-weight: 600;
}

/* Credibilidade Styles */
.credibilidade-container {
    background: linear-gradient(135deg, var(--light), rgba(45, 52, 54, 0.05));
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    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(--secondary);
}

.credibilidade-title {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.credibilidade-content {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.credibilidade-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(45, 52, 54, 0.2);
}

/* Referências Styles */
.referencias-container {
    margin-top: 1.5rem;
}

.referencias-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.referencia-item {
    background: var(--light);
    border-left: 4px solid var(--primary);
    padding: 1.2rem 1.5rem;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.referencia-item:hover {
    background: rgba(45, 52, 54, 0.08);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(45, 52, 54, 0.1);
}

.referencia-item::before {
    content: "📖";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.referencia-item em {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   EXEMPLOS E AJUDA
   ================================== */
.checksum-examples,
.checksum-help {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light), var(--gray-100));
    border-radius: 15px;
    border: 1px solid var(--border);
}

.checksum-examples h2,
.checksum-help h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
}

.checksum-examples-grid,
.checksum-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.checksum-example-item {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.checksum-example-item:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}

.checksum-example-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.checksum-example-item p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.checksum-example-btn {
    background: linear-gradient(135deg, var(--accent), #0891b2);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.checksum-example-btn:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateY(-1px);
}

.checksum-help-item {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.checksum-help-item:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}

.checksum-help-icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.checksum-help-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.checksum-help-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* ===================================
   ANIMAÇÕES
   ================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hidden {
    display: none !important;
}

/* ===================================
   RESPONSIVIDADE CHECKSUM
   ================================== */
@media (max-width: 768px) {
    .checksum-header h1 {
        font-size: 2rem;
    }
    
    .checksum-header p {
        font-size: 1rem;
    }
    
    .checksum-container {
        padding: 1.5rem;
    }
    
    .checksum-tabs {
        flex-direction: column;
    }
    
    .checksum-tab-btn {
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .checksum-comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checksum-comparison-vs {
        justify-self: center;
        max-width: 100px;
    }
    
    .checksum-algorithms-grid,
    .checksum-types-grid,
    .checksum-applications-grid,
    .checksum-security-grid {
        grid-template-columns: 1fr;
    }
    
    .checksum-examples-grid,
    .checksum-help-grid {
        grid-template-columns: 1fr;
    }
    
    .checksum-step {
        flex-direction: column;
        text-align: center;
    }
    
    .checksum-step-number {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .checksum-help-item {
        flex-direction: column;
        text-align: center;
    }
    
    .checksum-help-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .checksum-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .checksum-detail-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .checksum-detail-value {
        max-width: 100%;
        text-align: center;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .content-block {
        padding: 1.5rem;
    }
    
    .checksum-examples,
    .checksum-help {
        padding: 1.5rem;
    }
    
    .checksum-result-hash {
        font-size: 0.8rem;
    }
    
    .checksum-type-icon,
    .checksum-security-icon {
        font-size: 2rem;
    }
    
    .credibilidade-container {
        padding: 1rem;
    }
    
    .credibilidade-badges {
        gap: 0.5rem;
    }
    
    .credibilidade-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}