/* Estilos do Simulador Fotovoltaico Residencial Japão */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --solar-yellow: #eab308;
  --battery-purple: #9333ea;
  --grid-green: #16a34a;
  --grid-red: #ef4444;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.card-kpi {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.canvas-container {
  position: relative;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.flow-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}


/* Flow Animation Styles */
@keyframes dash {
  to {
    stroke-dashoffset: -32;
  }
}

.flow-cable-solar {
  stroke: #eab308;
  stroke-dasharray: 6, 6;
  animation: dash 1.5s linear infinite;
}

.flow-cable-house {
  stroke: #38bdf8;
  stroke-dasharray: 6, 6;
  animation: dash 1.5s linear infinite;
}

.flow-cable-battery-charge {
  stroke: #c084fc;
  stroke-dasharray: 6, 6;
  animation: dash 1.5s linear infinite;
}

.flow-cable-battery-discharge {
  stroke: #c084fc;
  stroke-dasharray: 6, 6;
  animation: dash 1.5s linear infinite reverse;
}

.flow-cable-grid-export {
  stroke: #4ade80;
  stroke-dasharray: 6, 6;
  animation: dash 1.5s linear infinite;
}

.flow-cable-grid-import {
  stroke: #f87171;
  stroke-dasharray: 6, 6;
  animation: dash 1.5s linear infinite reverse;
}

.flow-node-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.flow-node-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}
