/* === GLOBAL (LIGHT THEME) === */
body {
  font-family: "Orbitron", "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top left, #f9ffff, #e6f7ff, #dff5ff);
  color: #0a1a1f;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

h1 {
  margin: 20px auto 40px;
  font-size: 2.5rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #0077ff, #00bfff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowPulse 3s ease-in-out infinite;
}

/* @keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 8px #00bfff55, 0 0 20px #00bfff33; }
  50% { text-shadow: 0 0 16px #0099ff55, 0 0 30px #0099ff33; }
} */

/* === CONTAINER === */
.container {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

/* === PANELS === */
.panel {
  flex: 1;
  min-width: 340px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(0, 140, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 100, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 150, 255, 0.15);
}

h2 {
  margin-top: 0;
  text-align: center;
  border-bottom: 2px solid rgba(0, 100, 255, 0.2);
  padding-bottom: 10px;
  color: #003355;
}

/* === LABELS & INPUT ROWS === */
label {
  display: block;
  margin: 0;
  font-weight: 600;
  color: #002a3a;
}

.inputRow .trio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
  gap: 16px; /* consistent spacing between label & inputs */
}

.inputRow label {
  flex: 1;
  text-align: left;
}

/* === DUAL INPUTS === */
.dual {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 260px; /* 👈 adjust width here for all input pairs */
}

/* === INPUT FIELDS === */
input {
  width: 120px; /* half of 260px minus gap */
  padding: 12px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 140, 255, 0.3);
  background: rgba(240, 250, 255, 0.8);
  color: #002a3a;
  font-size: 0.9rem;
}

input:focus {
  outline: none;
  border-color: #007fff;
  background: #f4fbff;
  box-shadow: 0 0 10px #00bfff55;
}

/* === INVESTMENT SECTION === */
.investmentBox {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.investmentDiv label {
  margin-bottom: 6px;
}

.investmentBox input {
  width: 200px;
}

/* === HEADER ROW === */
.headerRow {
  margin-bottom: 12px;
}

.headerRow .dualHeader {
  padding: 0;
  margin: 0;
}

.headerRow .dual div {
  width: 120px;
  text-align: left;
  color: #004a6b;
  font-weight: 700;
  padding: 12px 24px 12px 0;
  margin: 0;
}

.headerRow .trio label,
.headerRow .trio div {
  color: #858c93;
  font-weight: 700;
}

/* === BUTTONS === */
button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  margin-top: 18px;
  background: linear-gradient(90deg, #00a2ff, #0078d7);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.2s;
}

button:hover {
  background: linear-gradient(90deg, #006ac9, #004fa5);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 120, 215, 0.4);
}

.outputBox strong {
    color: #ffffff;
  }

  hr {
    border: none;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    margin: 16px 0;
  }

  .small {
    font-size: 0.9rem;
    color: #ffffff;
    margin-top: 20px;
    display: block;
    text-align: center;
  }

  /* === SECTIONS === */
  .inputs-section {
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-color: #ffffff rgba(0, 0, 0, 0.2);
    scrollbar-width: thin;
  }

  /* === Project Results Panel === */
.outputs-section {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 25px 35px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.08);
  color: #e0f7fa;
  backdrop-filter: blur(8px);
  /* layout: use flex column so we can reorder children visually without changing HTML */
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.outputs-section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #003355;
  margin-bottom: 25px;
}

/* === Outer glass container === */
.upperOutputBox {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ 2 columns */
  gap: 10px;
  background: rgba(33, 56, 63, 0.051);
  border: 1px solid rgba(0, 255, 255, 0.058);
  border-radius: 16px;
  padding: 15px 10px;
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.05);
}

/* Visual ordering: keep existing CSS for these components but swap their visual order */
.outputs-section .bottomOutputs { order: 1; }
.outputs-section .divider { order: 2; align-self: stretch; }
.outputs-section .upperOutputBox { order: 3; }

.totalAnnual {
  background: rgba(0, 10, 15, 0.6);
  border: 1px solid rgba(0, 140, 255, 0.3);
  border-radius: 12px;
  background: rgba(240, 250, 255, 0.8);
  grid-column: 1 / -1; /* ✅ make it span across both columns */
}

.totalAnnual p {
  font-size:10px;
  padding: 10px;
  text-align: center;
  color:#00ccff
}

.totalAnnual span {
  font-weight: bold;
  font-size: 30px;
  color: #002a3a;
}



/* === Inner mini boxes === */
.miniBox {
  background: rgba(240, 250, 255, 0.8);
  border: 1px solid rgba(0, 140, 255, 0.3);
  border-radius: 12px;
  padding: 5px;
  margin:2px;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.miniBox:hover {
  transform: translateY(-4px);
}

/* Text styling */
.miniBox strong {
  color: #002a3a;
  display: block;
  font-size:12px;
  margin:1px;
}

.miniBox span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #002a3a;
  margin:1px;
}


/* Divider line */
.divider {
  border: none;
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  margin: 0.01px;
}


.bottomOutputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 10px;
  background: rgba(33, 56, 63, 0.051);
  border: 1px solid rgba(0, 255, 255, 0.058);
  border-radius: 16px;
  padding: 15px 10px;
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.05);
  column-gap: 100px; /* ✅ increase horizontal spacing */
 
}


.ROI {
  background: rgba(240, 250, 255, 0.8);
  border: 1px solid rgba(0, 140, 255, 0.3);
  border-radius: 12px;
  grid-column: 1 / -1;
  text-align: center; /* ✅ centers everything */
  padding: 15px;
  justify-items:center;
}

.ROI p{
  font-size: 1.2rem; /* ✅ larger heading text */

}

.ROI p strong{
  color: #00ccff;
}

.ROI p span {
  display: block;
  font-weight: bold;
  font-size: 2rem; /* ✅ large ROI number */
  color: #002a3a;
  margin-top: 5px;
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
}

.bottomOutputs p {
 
  margin-top: 1px;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #002a3a;
}

.bottomOutputs span {
  color: #002a3a;
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
}

.year1Box{
    border: 1px solid rgba(0, 255, 255, 0.058);
    padding:5px;
    margin:1px;
}

.periodBox {
  display: flex;
  align-items: baseline; /* aligns text nicely on the same line */
  gap: 5px; /* small space between number and text */
}

.periodBox span {
  font-size: 1.9rem;
  font-weight: 600;
  color: #002a3a;
}

.periodBox p {
  margin: 0;
  color: #002a3a;
}

/* Move the theme toggle button to the top-right corner */
.theme-toggle {
  position: fixed;     /* stays visible while scrolling */
  top: 15px;           /* distance from the top */
  right: 20px;         /* distance from the right */
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 6px 12px;
  transition: all 0.3s ease;
  z-index: 1000;       /* make sure it's above everything */
}

.theme-toggle:hover {
  background: rgba(0, 255, 255, 0.15);
  transform: scale(1.05);
}


/* toggle switch style */
.toggle {
  width: 40px;
  height: 20px;
  background: #222;
  border-radius: 20px;
  position: relative;
  transition: background 0.3s ease;
}

.toggle .circle {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

/* You can make a version for "dark" mode */
body.light .toggle {
  background: #ccc;
}

body.light .toggle .circle {
  left: 22px;
  background: #000;
}

.label {
  font-size: 0.9rem;
}

.theme-toggle.dark .toggle {
  background: #ddd;
}

.theme-toggle.dark .circle {
  left: 22px;
  background: #000;
}
.theme-toggle.dark .label {
  color: #000;
}

/* logo placement */
.logo-wrap{
  position: absolute; 
  left: 20px; 
  top: 18px; 
}
.page-logo {
  max-width: 120px;   /* will not exceed 120px */
  width: 12vw;        /* scales with viewport width */
  height: auto;
  max-height: 80px;   /* prevents it getting too tall on large screens */
}

