/* ============================================
   LEI DE OHM - SIMULAÇÃO FUTURISTA
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

#leideohm-container {
    max-width: 1000px;
    margin: 20px auto;
    font-family: 'Orbitron', monospace;
}

/* CABEÇALHO */
.leideohm-header {
    text-align: center;
    margin-bottom: 20px;
}
.leideohm-header h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 3px;
    animation: leideohm-glowPulse 2s infinite;
}
.leideohm-header h1::before { content: '⚡'; margin-right: 10px; color: #ffd700; }
.leideohm-header h1::after { content: '⚡'; margin-left: 10px; color: #ffd700; }
.leideohm-subtitle {
    color: #00ccff;
    font-size: 0.7rem;
    letter-spacing: 2px;
}
@keyframes leideohm-glowPulse {
    0%,100% { text-shadow: 0 0 10px rgba(0,255,255,0.3); }
    50% { text-shadow: 0 0 25px rgba(0,255,255,0.8); }
}

/* CARD PRINCIPAL */
.leideohm-card {
    background: linear-gradient(135deg, #05051a, #0a0a2a);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(0,255,255,0.2);
    box-shadow: 0 0 20px rgba(0,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.leideohm-card::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(0,255,255,0.02) 20px, rgba(0,255,255,0.02) 40px);
    animation: leideohm-lightningMove 20s linear infinite;
    pointer-events: none;
}
.leideohm-card::after {
    content: '⚡';
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 40px;
    opacity: 0.05;
    animation: leideohm-spark 3s infinite;
}
@keyframes leideohm-lightningMove {
    0% { transform: translate(0,0); }
    100% { transform: translate(50px,50px); }
}
@keyframes leideohm-spark {
    0%,100% { opacity: 0; }
    50% { opacity: 1; }
}

/* CANVAS */
.leideohm-canvas-container {
    text-align: center;
    margin-bottom: 20px;
}
#leideohm-canvas {
    background: #020210;
    border-radius: 15px;
    border: 2px solid #00ffff;
    width: 100%;
    max-width: 900px;
    height: auto;
}

/* TOGGLE */
.leideohm-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 8px;
    background: rgba(0,0,0,0.4);
    border-radius: 50px;
}
.mode-label {
    color: #00ccff;
    font-size: 0.7rem;
    text-transform: uppercase;
}
.mode-btn {
    background: #0a0a2a;
    border: 1px solid #00ffff;
    padding: 6px 18px;
    font-size: 0.75rem;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    border-radius: 40px;
    color: #00ffff;
    transition: all 0.2s;
}
.mode-btn.active {
    background: #00ffff;
    color: #05051a;
    box-shadow: 0 0 12px #00ffff;
}
.mode-btn:hover:not(.active) {
    background: rgba(0,255,255,0.15);
}

/* LINHA ÚNICA DE INPUTS E RESULTADO */
.leideohm-inputs-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.leideohm-input-card {
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(0,255,255,0.2);
}

.leideohm-input-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: #00ccff;
}

.leideohm-number-input {
    background: #05051a;
    border: 2px solid #00ffff;
    border-radius: 8px;
    padding: 10px;
    font-size: 1.2rem;
    font-family: 'Orbitron', monospace;
    color: #00ffff;
    text-align: center;
    width: 100%;
    max-width: 140px;
    margin: 0 auto;
    display: block;
    outline: none;
    font-weight: bold;
}

.leideohm-number-input:focus {
    border-color: #ff3366;
    box-shadow: 0 0 10px rgba(255,51,102,0.5);
    background: #0a0a2a;
}

.leideohm-input-unit {
    font-size: 0.65rem;
    color: #888;
    margin-top: 8px;
}

/* CARD DE RESULTADO */
.leideohm-result-card {
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid #00ff88;
}

.leideohm-result-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: #00ff88;
}

.leideohm-result-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00ff88;
}

/* RODAPÉ */
.leideohm-formula {
    text-align: center;
    padding: 12px;
    background: rgba(0,255,255,0.03);
    border-radius: 12px;
    border: 1px dashed rgba(0,255,255,0.2);
}
.leideohm-formula-text {
    font-size: 0.9rem;
    color: #00ffff;
    margin-bottom: 5px;
}
.leideohm-formula-desc {
    font-size: 0.65rem;
    color: #666;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .leideohm-inputs-line {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .leideohm-card {
        padding: 15px;
    }
    .leideohm-header h1 {
        font-size: 1.2rem;
    }
    .leideohm-number-input {
        font-size: 1rem;
        padding: 8px;
    }
}

/* CENTRALIZAÇÃO */
.leideohm-inputs-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    align-items: stretch;
}

.leideohm-input-card {
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid rgba(0,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.leideohm-result-card {
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #00ff88;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.leideohm-input-unit {
    font-size: 0.65rem;
    color: #888;
    margin-top: 8px;
}

.leideohm-result-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ff88;
}

.leideohm-result-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #00ff88;
}

.leideohm-input-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #00ccff;
}

/* Responsivo */
@media (max-width: 768px) {
    .leideohm-inputs-line {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .leideohm-number-input {
        width: 100px;
        font-size: 1rem;
    }
}