/* assets/css/ondas-frequencia.css */
/* CSS ISOLADO - Apenas para Calculadora de Ondas e Frequência */

/* ===================================
   VARIÁVEIS CSS - CORES DE FÍSICA
   ================================== */
:root {
    --primary: #0984e3;          /* Azul energia */
    --secondary: #6c5ce7;        /* Roxo força */
    --accent: #00b894;           /* Verde movimento */
    --light: #e8f4fd;            /* Fundo azul claro */
    --gradient: linear-gradient(135deg, #0984e3, #6c5ce7);
}

/* ===================================
   CORREÇÃO LAYOUT - REMOVE SCROLL HORIZONTAL
   ================================== */
.ondas-container,
.content {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* Garantir que inputs não quebrem layout */
.ondas-input-group input {
    max-width: 100%;
    box-sizing: border-box;
}

/* ===================================
   SEÇÃO DA CALCULADORA ONDAS E FREQUÊNCIA
   ================================== */
.ondas-calculator-section {
    margin-bottom: 3rem;
}

.ondas-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ondas-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.ondas-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
}

.ondas-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;
}

.ondas-inputs h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   SISTEMA DE ABAS ONDAS
   ================================== */
.ondas-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--light);
    padding: 0.5rem;
    border-radius: 12px;
    overflow-x: auto;
}

.ondas-tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.ondas-tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.ondas-tab-btn.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(9, 132, 227, 0.3);
}

/* Conteúdo das Abas */
.ondas-tab-content {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.ondas-tab-content.active {
    display: block;
}

/* ===================================
   DADOS BÁSICOS ONDAS
   ================================== */
.ondas-dados-basicos {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ondas-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ondas-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ondas-input-group label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.ondas-input-group input {
    padding: 0.8rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.ondas-input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.2);
}

.ondas-input-help {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.25rem;
}

/* ===================================
   BOTÃO CALCULAR
   ================================== */
.ondas-calculate-section {
    text-align: center;
    margin: 2rem 0;
}

.ondas-calculate-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}

.ondas-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(9, 132, 227, 0.4);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.ondas-calculate-btn:active {
    transform: translateY(-1px);
}

/* ===================================
   EXEMPLOS RÁPIDOS ONDAS
   ================================== */
.ondas-examples {
    text-align: center;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.ondas-examples.hidden {
    display: none;
}

.ondas-examples p {
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.ondas-example-btn {
    background: var(--light);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    margin: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.ondas-example-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.3);
}

/* ===================================
   RESULTADO DAS ONDAS
   ================================== */
.ondas-resultado {
    background: #e8f5e8;
    border: 2px solid var(--accent);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.ondas-resultado h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.ondas-resultado-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Resultado Principal */
.ondas-resultado-principal {
    background: var(--accent);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.ondas-resultado-principal h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.ondas-valor-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ondas-value {
    font-size: 2.2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.ondas-unit {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Detalhamento */
.ondas-detalhamento {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.ondas-detalhamento h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.ondas-item-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ondas-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.ondas-item:hover {
    transform: translateX(5px);
    background: #e8f5e8;
}

.ondas-item-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.ondas-item-value {
    font-weight: bold;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO
   ================================== */
.ondas-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.ondas-explanation h3 {
    color: #856404;
    margin-bottom: 1rem;
    text-align: center;
}

.ondas-step {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #ffc107;
}

.ondas-step h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.ondas-step p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
    line-height: 1.5;
}

/* ===================================
   CONTEÚDO EDUCACIONAL
   ================================== */
.ondas-content-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.ondas-content-section h2 {
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.ondas-content-block {
    margin-bottom: 2rem;
}

.ondas-content-block p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
    font-size: 1rem;
}

.ondas-content-block strong {
    color: var(--secondary);
}

/* Types Grid */
.ondas-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.ondas-type-item {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.ondas-type-item.mechanical {
    background: var(--light);
    border: 2px solid var(--primary);
}

.ondas-type-item.electromagnetic {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.ondas-type-item.matter {
    background: #f3e5f5;
    border: 2px solid var(--secondary);
}

.ondas-type-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ondas-type-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ondas-type-item h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.ondas-type-item.mechanical h4 {
    color: var(--primary);
}

.ondas-type-item.electromagnetic h4 {
    color: #856404;
}

.ondas-type-item.matter h4 {
    color: var(--secondary);
}

/* Properties Grid */
.ondas-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.ondas-property-item {
    background: var(--light);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.ondas-property-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.ondas-property-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.ondas-property-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.ondas-property-item p {
    color: #5a6c7d;
    margin: 0;
    line-height: 1.6;
}

/* Formula Display */
.ondas-formula-display {
    background: linear-gradient(135deg, var(--light) 0%, #f0f8ff 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.ondas-formula-display h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.ondas-formula p {
    margin: 0.8rem 0;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Formulas Grid */
.ondas-formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.ondas-formula-card {
    background: var(--light);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.ondas-formula-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.ondas-formula-card h5 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.ondas-formula-content p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: #495057;
    font-weight: 600;
    text-align: center;
}

.ondas-formula-content small {
    display: block;
    margin-top: 1rem;
    color: #6c757d;
    font-family: inherit;
    line-height: 1.4;
    text-align: left;
}

/* Examples Detailed */
.ondas-examples-detailed {
    margin-top: 2rem;
}

.ondas-example-item {
    background: var(--light);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.ondas-example-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ondas-example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.ondas-example-item h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.ondas-example-calculation {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
}

.ondas-example-calculation p {
    margin: 0.8rem 0;
    line-height: 1.6;
}

.ondas-example-calculation ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.ondas-example-calculation li {
    margin: 0.5rem 0;
    color: #495057;
}

/* Tips Grid */
.ondas-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.ondas-tip-item {
    background: #fff3e0;
    border: 2px solid #ffcc02;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.ondas-tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.2);
}

.ondas-tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e65100;
}

.ondas-tip-item h4 {
    color: #e65100;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.ondas-tip-item p {
    color: #e65100;
    margin: 0;
    line-height: 1.6;
}

/* ===================================
   FAQ ONDAS
   ================================== */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: var(--light);
    color: var(--primary);
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    list-style: none;
}

.faq-question:hover {
    background: var(--secondary);
    color: white;
}

.faq-question::marker {
    display: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    color: #444;
    line-height: 1.6;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ===================================
   REFERÊNCIAS ONDAS
   ================================== */
.references-container {
    margin-top: 1.5rem;
}

.references-list {
    list-style: none;
    padding: 0;
}

.referencia-item {
    background: var(--light);
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.accuracy-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.accuracy-note h5 {
    color: #856404;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.accuracy-note p {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===================================
   CREDIBILIDADE ONDAS
   ================================== */
.credibilidade-container {
    background: var(--light);
    border: 2px solid var(--secondary);
    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: 1rem;
}

.credibilidade-icon {
    font-size: 2rem;
}

.credibilidade-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
}

.credibilidade-content {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

.credibilidade-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Legal Notice */
.ondas-aviso-legal {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.ondas-aviso-legal p {
    margin: 0;
    color: #721c24;
    font-weight: 600;
}

/* References */
.ondas-references {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.ondas-references h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.ondas-references ul {
    margin: 0;
    padding-left: 1.5rem;
}

.ondas-references li {
    margin-bottom: 0.8rem;
    color: var(--primary);
    line-height: 1.6;
}

/* ===================================
   ANIMAÇÕES
   ================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVIDADE
   ================================== */
@media (max-width: 1024px) {
    .ondas-container {
        padding: 1.5rem;
    }
    
    .ondas-tabs {
        flex-wrap: wrap;
    }
    
    .ondas-tab-btn {
        min-width: 120px;
    }
    
    .ondas-input-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .ondas-header h1 {
        font-size: 2rem;
    }
    
    .ondas-container {
        padding: 1rem;
    }
    
    .ondas-dados-basicos {
        padding: 1rem;
    }
    
    .ondas-calculate-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .ondas-value {
        font-size: 1.8rem;
    }
    
    .ondas-unit {
        font-size: 1.3rem;
    }
    
    .ondas-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .ondas-example-icon,
    .ondas-tip-icon,
    .ondas-property-icon {
        font-size: 2rem;
    }
    
    .ondas-content-section {
        padding: 1.5rem;
    }
    
    .ondas-content-section h2 {
        font-size: 1.5rem;
    }
    
    .ondas-properties-grid,
    .ondas-formulas-grid,
    .ondas-tips-grid {
        grid-template-columns: 1fr;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .ondas-container {
        padding: 0.8rem;
    }
    
    .ondas-header h1 {
        font-size: 1.8rem;
    }
    
    .ondas-dados-basicos {
        padding: 0.8rem;
    }
    
    .ondas-calculate-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .ondas-tabs {
        padding: 0.3rem;
    }
    
    .ondas-tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .ondas-content-section {
        padding: 1rem;
    }
    
    .credibilidade-container {
        padding: 1.5rem;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===================================
   RESULTADO APRIMORADO - MODELO RESCISÃO
   ================================== */
.ondas-resultado-header {
    background: var(--gradient);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ondas-valor-destaque {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ondas-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.ondas-valor-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    opacity: 0.9;
}

.ondas-valor-principal {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.ondas-value {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: var(--primary)
}

.ondas-unit {
    font-size: 1.5rem;
    opacity: 0.8;
}

h4{
    color: var(--primary);
}

.ondas-resultado-detalhes {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    margin-bottom: 1.5rem;
}

.ondas-resultado-detalhes h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.ondas-valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.ondas-valor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.ondas-valor-item:hover {
    transform: translateX(5px);
    background: #e8f0ff;
}

.ondas-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.ondas-value-small {
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.ondas-formula-destaque {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: var(--primary);
    font-size: 1.1rem;
}

/* ===================================
   EXPLICAÇÃO DO CÁLCULO - MODELO RESCISÃO
   ================================== */
.ondas-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e8f5e8;
    border: 2px solid var(--accent);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.ondas-explanation h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    text-align: center;
}

.ondas-step {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ondas-step h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ondas-step-content {
    color: #444;
    line-height: 1.6;
}

.ondas-step-content p {
    margin: 0.5rem 0;
}

.ondas-step-content strong {
    color: var(--accent);
}

/* ===================================
   CÁLCULOS DETALHADOS
   ================================== */
.ondas-calculo {
    background: var(--light);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.ondas-calculo p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

.ondas-calculo p:first-child {
    font-weight: 600;
    color: var(--primary);
    font-family: inherit;
}

.ondas-calculo p:last-child {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: bold;
}

.ondas-derivado {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.ondas-derivado p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    color: #444;
}

.ondas-derivado p:first-child {
    font-weight: 600;
    color: #856404;
    font-family: inherit;
}

.ondas-derivado p:last-child {
    color: #856404;
    font-weight: bold;
}

/* ===================================
   FÓRMULA DESTACADA
   ================================== */
.ondas-formula {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}

/* ===================================
   EXEMPLOS E BOTÕES APRIMORADOS
   ================================== */
.ondas-examples {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.ondas-examples p {
    margin-bottom: 1.5rem;
    color: #5a6c7d;
    font-size: 1.1rem;
    font-weight: 600;
}

.ondas-example-btn {
    background: linear-gradient(135deg, var(--light) 0%, #f0f8ff 100%);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(9, 132, 227, 0.15);
}

.ondas-example-btn:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}

/* ===================================
   BOTÃO CALCULAR APRIMORADO
   ================================== */
.ondas-calculate-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1.3rem 3.5rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.3);
    position: relative;
    overflow: hidden;
}

.ondas-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(9, 132, 227, 0.4);
}

.ondas-calculate-btn:active {
    transform: translateY(-1px);
}

.ondas-calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.ondas-calculate-btn:hover::before {
    left: 100%;
}

.ondas-clear-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #e0e6ed;
}

.ondas-clear-btn {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
}

.ondas-clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
    background: linear-gradient(135deg, #d32f2f 0%, #c2185b 100%);
}

.ondas-clear-btn:active {
    transform: translateY(0);
}

.ondas-aviso-legal-dinamico {
    animation: fadeInUp 0.5s ease;
}

/* ===================================
   RESPONSIVIDADE APRIMORADA
   ================================== */
@media (max-width: 768px) {
    .ondas-valor-destaque {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ondas-icon {
        font-size: 2.5rem;
    }
    
    .ondas-value {
        font-size: 2rem;
    }
    
    .ondas-unit {
        font-size: 1.2rem;
    }
    
    .ondas-valores-grid {
        grid-template-columns: 1fr;
    }
    
    .ondas-valor-item {
        padding: 1rem;
    }
    
    .ondas-step {
        padding: 1rem;
    }
    
    .ondas-formula {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
    
    .ondas-calculate-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .ondas-resultado-header {
        padding: 1.5rem;
    }
    
    .ondas-value {
        font-size: 1.8rem;
    }
    
    .ondas-unit {
        font-size: 1rem;
    }
    
    .ondas-example-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        margin: 0.2rem;
    }
    
    .ondas-explanation {
        padding: 1rem;
    }
    
    .ondas-step {
        padding: 0.8rem;
    }
    
    .ondas-formula {
        font-size: 1rem;
    }
}

/* ===================================
   ANIMAÇÕES SUAVES
   ================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   EFEITOS VISUAIS ADICIONAIS
   ================================== */
.ondas-step:nth-child(odd) {
    border-left-color: var(--primary);
}

.ondas-step:nth-child(even) {
    border-left-color: var(--accent);
}

.ondas-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Gradiente sutil no fundo da explicação */
.ondas-explanation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary), var(--secondary), #ff9800);
    border-radius: 12px 12px 0 0;
}

.ondas-explanation {
    position: relative;
}

/* Loading animation para o botão calcular */
.ondas-calculate-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.ondas-calculate-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   CORREÇÃO DO TÍTULO - ESPECIFICIDADE MÁXIMA
   ================================== */
body[data-page="ondas-frequencia"] .ondas-header h1 {
    color: #0984e3 !important;
    background: transparent !important;
    -webkit-text-fill-color: #0984e3 !important;
}