/* RESET */
body {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  font-family: Arial;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background: #020617;
  border-bottom: 2px solid #0ea5e9;
}

.status {
  color: #22c55e;
  font-weight: bold;
}

/* GRID LAYOUT */
.container {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  height: calc(100vh - 100px);
}

/* PANELS */
.panel {
  padding: 15px;
  border-right: 1px solid #1e293b;
  overflow-y: auto;
}

/* CARDS */
.card {
  background: #020617;
  border: 1px solid #1e293b;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
}

.card h4 {
  margin-bottom: 8px;
  color: #38bdf8;
  font-size: 13px;
}

/* INPUTS */
input, select {
  width: 100%;
  margin-bottom: 6px;
  padding: 6px;
  background: #0f172a;
  border: 1px solid #334155;
  color: white;
  border-radius: 4px;
}

/* BUTTON */
.run-btn {
  width: 100%;
  padding: 12px;
  background: #0ea5e9;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.run-btn:hover {
  background: #0284c7;
}

/* PROCESS BOXES */
.box {
  background: #020617;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #334155;
  text-align: center;
}

.box p {
  margin: 0;
  font-size: 14px;
}

.box span {
  font-size: 20px;
  font-weight: bold;
}

/* FOOTER */
.footer {
  padding: 10px;
  background: #020617;
  border-top: 2px solid #0ea5e9;
}
/* =========================
   🔹 PUMP GRAPH STYLE
========================= */

#pumpChart {
  width: 100%;
  height: 350px;
  display: block;
}

.run-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.run-btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

#comp_energy {
  color: #00ff88;
  font-weight: bold;
}

.logo {
  width: 50px;
  height: 50px;
  animation: floatLogo 3s ease-in-out infinite, glow 2s infinite;
}

@keyframes floatLogo {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes glow {
  0% { filter: drop-shadow(0 0 4px #00c6ff); }
  50% { filter: drop-shadow(0 0 15px #00c6ff); }
  100% { filter: drop-shadow(0 0 4px #00c6ff); }
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
}

.header h2 {
  font-size: 20px;
  font-weight: bold;
}

#report h2 {
  margin-top: 15px;
}

#report div {
  background: #f1f5f9;
  padding: 10px;
  border-radius: 6px;
}

.rep-box {
  background: #f1f5f9;
  padding: 12px;
  margin-top: 10px;
  border-left: 4px solid #0072ff;
  border-radius: 6px;
}

/* =========================
   🔹 Base Button
========================= */
.btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  color: white;
}

/* Hover effect */
.btn:hover {
  transform: scale(1.05);
}

/* =========================
   🔹 Button Colors
========================= */

/* 🟢 RUN DESIGN */
.btn-run {
  background: linear-gradient(45deg, #22c55e, #16a34a);
}

/* 🔵 OPTIMIZATION */
.btn-opt {
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
}

/* 🟣 AI */
.btn-ai {
  background: linear-gradient(45deg, #a855f7, #7e22ce);
}

/* 🟠 REPORT */
.btn-report {
  background: linear-gradient(45deg, #f97316, #ea580c);
}

.btn {
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


/* =========================
   🔹 BASE BOX
========================= */

.box {
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #334155;
  transition: 0.3s;
}

/* =========================
   🔹 TYPES
========================= */

.box.info {
  border-left: 5px solid #38bdf8;
}

.box.success {
  border-left: 5px solid #22c55e;
}

.box.warning {
  border-left: 5px solid #facc15;
}

.box.danger {
  border-left: 5px solid #ef4444;
}

.box.primary {
  border-left: 5px solid #a855f7;
}

/* Hover */
.box:hover {
  transform: scale(1.03);
}



/* =========================
   🔹 DASHBOARD GRID (NEW)
========================= */

.dashboard {
  display: grid;
  grid-template-columns: 320px 1fr 350px;
  height: 100vh;
  gap: 10px;
  padding: 10px;
  background: #0f172a;
}

/* Panels upgrade */
.panel {
  background: #1e293b;
  border-radius: 16px;
  padding: 15px;
  color: white;
  overflow-y: auto;
}

/* Left panel */
.left {
  border-right: 1px solid #334155;
}

/* Center panel */
.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Right panel */
.right {
  border-left: 1px solid #334155;
}

/* Chart size fix */
#pumpChart {
  width: 100% !important;
  height: 450px !important;
}


/* =========================
   🔹 ANALYSIS BOX
========================= */

.analysis-box {
  margin-top: 15px;
  background: #020617;
  padding: 12px;
  border-radius: 12px;
  border-left: 4px solid #38bdf8;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5f5;
}

canvas {
  width: 100% !important;
  height: 500px !important;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;

  background: linear-gradient(135deg, #0b1a2a, #0f2c44);
  border-bottom: 1px solid rgba(255,255,255,0.1);

  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* LEFT */
.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  font-size: 26px;
  background: #00d4ff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,212,255,0.6);
}

.title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.subtitle {
  font-size: 12px;
  color: #9bb3c9;
}

/* RIGHT */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.status {
  font-size: 13px;
  color: #cde3ff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.green {
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88;
}

/* BUTTON */
.btn-export {
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-export:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,180,71,0.7);
}


.header {
  background-size: 200% 200%;
  animation: gradientMove 6s infinite alternate;
}

@keyframes gradientMove {
  0% { background-position: left; }
  100% { background-position: right; }
}
