/* ../shared/calculadoras/lei-ohm/lei-ohm.css */
/* CSS ISOLADO - Calculadora Lei de Ohm - ÁREA FÍSICA */

/* ===== VARIÁVEIS DE COR - ÁREA FÍSICA ===== */
:root {
    --fisica-primary: #0984e3;      /* Azul energia */
    --fisica-secondary: #6c5ce7;    /* Roxo força */
    --fisica-accent: #00b894;       /* Verde movimento */
    --fisica-light: #e8f4fd;       /* Fundo azul claro */
    --fisica-gradient: linear-gradient(135deg, #0984e3, #6c5ce7);
    
    /* Cores específicas para componentes */
    --tensao-color: #e74c3c;       /* Vermelho para tensão */
    --corrente-color: #00b894;     /* Verde para corrente */
    --resistencia-color: #f39c12;  /* Laranja para resistência */
    --potencia-color: #6c5ce7;     /* Roxo para potência */
}

/* ===================================
   SEÇÃO DA CALCULADORA LEI DE OHM
   ================================== */
.ohm-calculator-section {
    margin-bottom: 3rem;
}

.ohm-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ohm-calculator-section .ohm-header h1 {
    font-size: 2.5rem;
    color: var(--fisica-primary) !important;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(9, 132, 227, 0.1);
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--fisica-primary) !important;
    background-clip: initial !important;
}

.ohm-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
}

.ohm-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;
}

/* ===================================
   TRIÂNGULO DA LEI DE OHM - FÍSICA
   ================================== */
.ohm-triangle-display {
    background: linear-gradient(135deg, var(--fisica-light), #f0f8ff);
    border: 2px solid var(--fisica-primary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.ohm-triangle-display h3 {
    color: var(--fisica-primary);
    margin-bottom: 1.5rem;
}

.triangle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.triangle {
    position: relative;
    width: 120px;
    height: 100px;
    background: var(--fisica-gradient);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(9, 132, 227, 0.3);
    transform: perspective(500px) rotateX(10deg);
}

.triangle-top {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.triangle-bottom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.triangle-legend {
    text-align: left;
}

.triangle-legend p {
    margin: 0.5rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

h4{
    color: var(--fisica-primary);
    margin-bottom: 1rem;
    text-align: center;
}

/* ===================================
   DADOS BÁSICOS LEI DE OHM - FÍSICA
   ================================== */
.ohm-dados-basicos {
    background: linear-gradient(135deg, var(--fisica-light), #f0f8ff);
    border: 2px solid var(--fisica-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ohm-input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ohm-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ohm-input-group label {
    font-weight: 600;
    color: var(--fisica-primary);
    font-size: 0.95rem;
}

.ohm-input-group small {
    color: #7f8c8d;
    font-size: 0.8rem;
    font-style: italic;
}

.ohm-input-with-unit {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--fisica-primary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ohm-input-with-unit:focus-within {
    border-color: var(--fisica-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.2);
}

.ohm-input-with-unit input {
    border: none;
    padding: 0.8rem;
    flex: 1;
    font-size: 1rem;
    background: transparent;
}

.ohm-input-with-unit input:focus {
    outline: none;
}

.ohm-input-with-unit .unit {
    background: var(--fisica-primary);
    color: white;
    padding: 0.8rem 1rem;
    font-weight: bold;
    font-size: 1rem;
}

/* Cores específicas por tipo de componente */
.ohm-input-group.tensao .ohm-input-with-unit {
    border-color: var(--tensao-color);
}

.ohm-input-group.tensao .unit {
    background: var(--tensao-color);
}

.ohm-input-group.corrente .ohm-input-with-unit {
    border-color: var(--corrente-color);
}

.ohm-input-group.corrente .unit {
    background: var(--corrente-color);
}

.ohm-input-group.resistencia .ohm-input-with-unit {
    border-color: var(--resistencia-color);
}

.ohm-input-group.resistencia .unit {
    background: var(--resistencia-color);
}

/* ===================================
   CONVERSORES DE UNIDADES - FÍSICA
   ================================== */
.ohm-converters {
    background: #f8f9fa;
    border: 1px solid var(--fisica-primary);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.ohm-converters h4 {
    color: var(--fisica-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.converter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.converter-group {
    flex: 1;
    min-width: 150px;
}

.converter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--fisica-primary);
    font-size: 0.9rem;
}

.converter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--fisica-primary);
    border-radius: 5px;
    background: white;
    font-size: 0.9rem;
}

/* ===================================
   BOTÕES LEI DE OHM - ÁREA FÍSICA
   ================================== */
.ohm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.ohm-calculate-btn {
    background: var(--fisica-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}

.ohm-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.4);
}

.ohm-clear-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.ohm-clear-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

/* ===================================
   RESULTADO LEI DE OHM - FÍSICA
   ================================== */
.ohm-resultado {
    background: linear-gradient(135deg, var(--fisica-light), #e0f7fa);
    border: 2px solid var(--fisica-primary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease;
}

.ohm-resultado h3 {
    color: var(--fisica-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.ohm-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ohm-result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ohm-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color), var(--card-color-light));
}

.ohm-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.ohm-result-card.tensao {
    border-color: var(--tensao-color);
    --card-color: var(--tensao-color);
    --card-color-light: #ec7063;
}

.ohm-result-card.corrente {
    border-color: var(--corrente-color);
    --card-color: var(--corrente-color);
    --card-color-light: #58d68d;
}

.ohm-result-card.resistencia {
    border-color: var(--resistencia-color);
    --card-color: var(--resistencia-color);
    --card-color-light: #f8c471;
}

.ohm-result-card.potencia {
    border-color: var(--potencia-color);
    --card-color: var(--potencia-color);
    --card-color-light: #bb8fce;
}

.ohm-result-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--card-color);
}

.ohm-result-label {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.ohm-result-unit {
    font-size: 1rem;
    color: #7f8c8d;
}

/* ===================================
   EXPLICAÇÃO LEI DE OHM - FÍSICA
   ================================== */
.ohm-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--fisica-light), #e0f7fa);
    border: 2px solid var(--fisica-primary);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.ohm-explanation h3 {
    color: var(--fisica-primary);
    margin-bottom: 1rem;
}

.calculation-steps {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--fisica-primary);
}

.calculation-steps h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.calculation-steps ol {
    margin-left: 1.5rem;
}

.calculation-steps li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.formula-visual {
    background: #f8f9fa;
    border: 2px solid var(--fisica-primary);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.formula-step {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
}

.formula-step.final {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--fisica-primary);
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
}

.highlight {
    background: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: #856404;
    font-weight: bold;
}

.result-highlight {
    background: #d4edda;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: #155724;
    font-weight: bold;
}

/* ===================================
   FUNDAMENTAÇÃO CIENTÍFICA - FÍSICA
   ================================== */
.ohm-detailed-explanation {
    margin-top: 2rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--fisica-light), #ebf8ff);
    border: 2px solid var(--fisica-primary);
    border-radius: 15px;
    animation: slideInUp 0.7s ease;
}

.ohm-detailed-explanation h3 {
    color: var(--fisica-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.ohm-fundamentacao-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ===================================
   SEÇÕES DA FUNDAMENTAÇÃO - FÍSICA
   ================================== */
.ohm-fundamentacao-section {
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid #e0e6ed;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.ohm-fundamentacao-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--fisica-primary);
    padding-bottom: 0.5rem;
}

.ohm-scientific-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--fisica-light);
    border-radius: 10px;
    border-left: 4px solid var(--fisica-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.ohm-scientific-item:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.2);
}

.ohm-scientific-formula {
    background: var(--fisica-primary);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(9, 132, 227, 0.3);
    font-family: 'Courier New', monospace;
}

.ohm-scientific-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ohm-scientific-content p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 0.95rem;
}

.ohm-scientific-content strong {
    color: var(--fisica-primary);
    font-weight: 600;
}

.ohm-calculo-detalhe {
    background: #e8f5e8;
    border: 1px solid var(--corrente-color);
    border-radius: 10px;
    padding: 1.2rem;
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
}

.ohm-calculo-detalhe p {
    color: #2e7d32;
    font-size: 0.9rem;
    margin: 0.4rem 0;
    line-height: 1.5;
}

.ohm-calculo-detalhe p:first-child {
    font-weight: bold;
    color: #1b5e20;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-family: inherit;
}

/* ===================================
   EXEMPLOS RÁPIDOS - FÍSICA
   ================================== */
.ohm-examples {
    margin-top: 2rem;
    text-align: center;
}

.ohm-examples p {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.ohm-example-btn {
    background: var(--fisica-accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 184, 148, 0.3);
}

.ohm-example-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

.ohm-help {
    margin-top: 1rem;
    text-align: center;
    color: #7f8c8d;
}

/* ===================================
   CONTEÚDO EDUCACIONAL - ÁREA FÍSICA
   ================================== */
.ohm-educational-content {
    margin-top: 3rem;
}

.ohm-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;
}

.ohm-content-block h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* ===================================
   CARDS DA LEI DE OHM - FÍSICA
   ================================== */
.ohm-law-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.law-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.law-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--card-color);
}

.law-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.law-card.tensao {
    border-color: var(--tensao-color);
    --card-color: var(--tensao-color);
}

.law-card.corrente {
    border-color: var(--corrente-color);
    --card-color: var(--corrente-color);
}

.law-card.resistencia {
    border-color: var(--resistencia-color);
    --card-color: var(--resistencia-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.law-card h4 {
    color: var(--card-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.law-card p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.law-card p:nth-child(3) {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--card-color);
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.8rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ===================================
   EXEMPLOS DO DIA A DIA - FÍSICA
   ================================== */
.daily-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.daily-example {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.daily-example:hover {
    border-color: var(--fisica-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.2);
}

.example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.daily-example h4 {
    color: var(--fisica-primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.daily-example p {
    color: #2c3e50;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===================================
   EXEMPLO PRÁTICO DETALHADO - FÍSICA
   ================================== */
.practical-example {
    background: #f8f9fa;
    border: 2px solid var(--fisica-primary);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.example-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--fisica-primary);
    transition: all 0.3s ease;
}

.example-step:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.1);
}

.step-number {
    background: var(--fisica-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.step-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.step-content strong {
    color: var(--fisica-primary);
}

/* ===================================
   CONCEITOS DETALHADOS - FÍSICA
   ================================== */
.concepts-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.concept-detailed {
    background: white;
    border: 2px solid;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.concept-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.concept-detailed.tensao {
    border-color: var(--tensao-color);
}

.concept-detailed.corrente {
    border-color: var(--corrente-color);
}

.concept-detailed.resistencia {
    border-color: var(--resistencia-color);
}

.concept-header {
    background: var(--concept-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.concept-detailed.tensao .concept-header {
    --concept-color: var(--tensao-color);
}

.concept-detailed.corrente .concept-header {
    --concept-color: var(--corrente-color);
}

.concept-detailed.resistencia .concept-header {
    --concept-color: var(--resistencia-color);
}

.concept-icon {
    font-size: 2rem;
}

.concept-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.concept-body {
    padding: 1.5rem;
}

.concept-body p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.concept-body strong {
    color: var(--concept-color);
}

.concept-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.concept-examples span {
    background: rgba(9, 132, 227, 0.1);
    color: var(--fisica-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===================================
   APLICAÇÕES PROFISSIONAIS - FÍSICA
   ================================== */
.applications-professional {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.application-area {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.application-area:hover {
    border-color: var(--fisica-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.2);
}

.application-area h4 {
    color: var(--fisica-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.application-area ul {
    margin-left: 1rem;
}

.application-area li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.application-area strong {
    color: #2c3e50;
}

/* ===================================
   SEGURANÇA ELÉTRICA - FÍSICA
   ================================== */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.safety-card {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid;
    transition: all 0.3s ease;
}

.safety-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.safety-card.critical {
    background: #ffebee;
    border-color: #f44336;
}

.safety-card.warning {
    background: #fff3e0;
    border-color: #ff9800;
}

.safety-card.info {
    background: var(--fisica-light);
    border-color: var(--fisica-primary);
}

.safety-card.tools {
    background: #e8f5e8;
    border-color: #4caf50;
}

.safety-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.safety-card h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.safety-card.critical h4 {
    color: #d32f2f;
}

.safety-card.warning h4 {
    color: #f57c00;
}

.safety-card.info h4 {
    color: var(--fisica-primary);
}

.safety-card.tools h4 {
    color: #2e7d32;
}

.safety-card p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.safety-card strong {
    font-weight: 600;
}

/* ===================================
   FAQ + REFERÊNCIAS + CREDIBILIDADE - FÍSICA
   ================================== */
.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;
}

.content-block h3 {
    color: var(--fisica-primary);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--fisica-primary);
    padding-bottom: 0.5rem;
}

/* FAQ específico */
.faq-container {
    margin-top: 1rem;
}

.faq-item {
    background: var(--fisica-light);
    border: 1px solid var(--fisica-primary);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.1);
}

.faq-question {
    background: var(--fisica-primary);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.faq-question:hover {
    background: var(--fisica-secondary);
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid rgba(9, 132, 227, 0.2);
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #2c3e50;
}

.faq-answer strong {
    color: var(--fisica-primary);
    font-weight: 600;
}

/* Referências específico */
.references-container {
    margin-top: 1rem;
}

.references-list {
    list-style: none;
    padding: 0;
}

.referencia-item {
    background: var(--fisica-light);
    border-left: 4px solid var(--fisica-primary);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.referencia-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.referencia-item em {
    color: var(--fisica-secondary);
    font-weight: 600;
}

/* Credibilidade específico */
.credibilidade-container {
    background: linear-gradient(135deg, var(--fisica-light), #f0f8ff);
    border: 2px solid var(--fisica-primary);
    border-radius: 15px;
    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: 2.5rem;
}

.credibilidade-title {
    color: var(--fisica-primary);
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
}

.credibilidade-content {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credibilidade-logo {
    color: var(--fisica-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.credibilidade-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.credibilidade-badge {
    background: var(--fisica-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(9, 132, 227, 0.3);
}

/* ===================================
   ANÁLISE DO CIRCUITO - FÍSICA
   ================================== */
.circuit-analysis {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid var(--fisica-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.circuit-analysis h4 {
    color: var(--fisica-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.analysis-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.analysis-item:hover {
    border-color: var(--fisica-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.2);
}

.analysis-item h5 {
    color: var(--fisica-primary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
}

.analysis-item p {
    color: #2c3e50;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.ohm-verification {
    background: #e8f5e8;
    border: 2px solid var(--corrente-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.ohm-verification h4 {
    color: var(--corrente-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.ohm-verification p {
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.verification-formulas {
    background: white;
    border: 1px solid var(--corrente-color);
    border-radius: 8px;
    padding: 1.2rem;
    margin-top: 1rem;
}

.verification-formulas p {
    font-family: 'Courier New', monospace;
    color: #2e7d32;
    font-size: 0.95rem;
    margin: 0.6rem 0;
    padding: 0.5rem;
    background: #f1f8e9;
    border-radius: 5px;
    border-left: 3px solid var(--corrente-color);
}

.verification-formulas p strong {
    color: #1b5e20;
    font-weight: bold;
}

.calculated-badge {
    background: var(--fisica-gradient);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    position: absolute;
    top: -10px;
    right: -10px;
    box-shadow: 0 3px 10px rgba(9, 132, 227, 0.3);
}

.ohm-result-card {
    position: relative;
}

.ohm-result-card.calculated {
    border-width: 3px;
    box-shadow: 0 8px 25px rgba(9, 132, 227, 0.3);
    transform: scale(1.02);
}

.ohm-result-card.calculated .ohm-result-value {
    animation: pulse 2s infinite;
}

/* ===================================
   RESPONSIVIDADE LEI DE OHM
   ================================== */
@media (max-width: 768px) {
    .ohm-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ohm-input-group {
        min-width: 100%;
    }
    
    .converter-row {
        flex-direction: column;
    }
    
    .ohm-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .ohm-calculate-btn,
    .ohm-clear-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .triangle-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .ohm-result-grid {
        grid-template-columns: 1fr;
    }
    
    .example-step {
        flex-direction: column;
        text-align: center;
    }
    
    .applications-professional,
    .safety-grid {
        grid-template-columns: 1fr;
    }
    
    .credibilidade-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .ohm-header h1 {
        font-size: 2rem;
    }
    
    .ohm-container {
        padding: 1rem;
    }
    
    .ohm-triangle-display {
        padding: 1rem;
    }
    
    .triangle {
        width: 100px;
        height: 80px;
    }
    
    .triangle-top {
        font-size: 1.5rem;
    }
    
    .triangle-bottom {
        font-size: 1rem;
    }
    
    .ohm-result-value {
        font-size: 2rem;
    }
    
    .law-card {
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .practical-example {
        padding: 1rem;
    }
    
    .concepts-detailed-grid {
        grid-template-columns: 1fr;
    }
    
    .credibilidade-container {
        padding: 1rem;
    }
    
    .credibilidade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===================================
   ANIMAÇÕES LEI DE OHM
   ================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   SOBRESCREVER CSS BASE - NO FINAL
   ================================== */

/* Forçar cor específica para H1 da Lei de Ohm - DEVE FICAR NO FINAL */
body[data-page="lei-ohm"] .content .ohm-calculator-section .ohm-header h1,
body[data-page="lei-ohm"] .ohm-calculator-section .ohm-header h1,
body[data-page="lei-ohm"] .ohm-header h1 {
    color: #0984e3 !important;
    background: transparent !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #0984e3 !important;
    background-clip: initial !important;
}

/* ===================================
   CÁLCULO PASSO A PASSO - LEI DE OHM
   ================================== */

.calculation-steps {
    background: linear-gradient(135deg, var(--fisica-light), rgba(255, 255, 255, 0.95));
    border: 2px solid var(--fisica-primary);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.calculation-steps::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--fisica-gradient);
}

.calculation-steps h4 {
    color: var(--fisica-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.formula-highlight {
    background: var(--fisica-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
    transition: all 0.3s ease;
}

.formula-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.4);
}

/* Lista ordenada principal */
.calculation-steps ol {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.calculation-steps ol > li {
    background: white;
    border: 2px solid #e8f4fd;
    border-left: 4px solid var(--fisica-accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
    transition: all 0.3s ease;
    counter-increment: step-counter;
}

.calculation-steps ol > li::before {
    content: counter(step-counter);
    position: absolute;
    left: -15px;
    top: 15px;
    background: var(--fisica-gradient);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.calculation-steps ol > li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.15);
    border-left-color: var(--fisica-primary);
}

.calculation-steps ol > li > strong {
    color: var(--fisica-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.8rem;
}

/* Lista não ordenada (sub-itens) */
.calculation-steps ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 1rem;
}

.calculation-steps ul li {
    background: var(--fisica-light);
    border-left: 3px solid var(--fisica-accent);
    border-radius: 0 8px 8px 0;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.calculation-steps ul li:hover {
    background: white;
    border-left-color: var(--fisica-primary);
    transform: translateX(3px);
}

.calculation-steps ul li::before {
    content: "⚡";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--fisica-accent);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Parágrafos dentro dos passos */
.calculation-steps p {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #2c3e50;
}

.calculation-steps p strong {
    color: white;
    font-weight: 600;
}

/* Fórmulas específicas dentro dos passos */
.calculation-steps ol li p:contains("=") {
    background: rgba(108, 92, 231, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fisica-secondary);
    margin: 0.8rem 0;
}

/* Destacar valores específicos por tipo */
.calculation-steps li:nth-child(1) ul li {
    border-left-color: var(--tensao-color); /* Dados - vermelho */
}

.calculation-steps li:nth-child(1) ul li::before {
    background: var(--tensao-color);
    content: "📊";
}

.calculation-steps li:nth-child(2) ul li,
.calculation-steps li:nth-child(2) p {
    border-left-color: var(--corrente-color); /* Cálculo principal - verde */
}

.calculation-steps li:nth-child(2) ul li::before {
    background: var(--corrente-color);
    content: "⚡";
}

.calculation-steps li:nth-child(3) ul li,
.calculation-steps li:nth-child(3) p {
    border-left-color: var(--potencia-color); /* Potência - roxo */
}

.calculation-steps li:nth-child(3) ul li::before {
    background: var(--potencia-color);
    content: "🔋";
}

/* Responsividade */
@media (max-width: 768px) {
    .calculation-steps {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .calculation-steps ol > li {
        padding: 1rem;
        margin-left: 1rem;
    }
    
    .calculation-steps ol > li::before {
        left: -20px;
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .formula-highlight {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .calculation-steps {
        padding: 1rem;
    }
    
    .calculation-steps ol > li {
        padding: 0.8rem;
        margin-left: 0.5rem;
    }
    
    .calculation-steps ul {
        margin-left: 0.5rem;
    }
    
    .formula-highlight {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
}
