/* ==========================
   🔷 CSS Variables
   Define primary colors and text colors for consistent branding
========================== */
:root {
  --primary: #f97316;          /* Deep orange primary */
  --secondary: #f43f5e;        /* Pinkish secondary */
  --text-dark: #1e293b;        /* Dark text color */
  --brand-dark: #1e3a8a;       /* Dark blue for brand accents */
  --light-bg: #f1f5f9;         /* Light background for panels */
  --genz-bg: #fff7ed;          /* Light cream background for GenZ panel */
}

/* ==========================
   🔷 General Styles
   Reset box sizing and body font/colors
========================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================
   🔷 Header & Navbar
   Gradient background and flex layout for nav links
========================== */
.header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 4px 0; /* Match budget-planner (was 13px 0) */
    border-radius: 0 0 20px 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 20px; /* Desktop padding like budget-planner */
}

.logo {
  font-size: 25px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.logo a:hover {
  color: inherit;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffeb3b;
}

.btn-primary {
  background-color: var(--brand-dark);
  color: white;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  font-family: 'Segoe UI', sans-serif;
}

.btn-secondary {
  background-color: white;
  color: var(--brand-dark);
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  font-family: 'Segoe UI', sans-serif;
}

/* Hamburger icon - hidden on desktop */
.hamburger {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 20;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .container.navbar {
    padding: 15px 20px;
  } 
  
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem; /* Match budget-planner */
    max-width: 100%;
    flex-wrap: nowrap;
    }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    margin: 12px 0;
  }

 .hamburger {
    display: block;
  }

  .logo {
    font-size: 1.2rem; /* Match budget-planner */
    line-height: 1;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.4rem 0.8rem; /* Match budget-planner */
  }

  .hamburger {
    font-size: 1.5rem; /* Match budget-planner */
  }

  .logo {
    font-size: 1.6rem; /* Match budget-planner */
  }

  .nav-links a {
    margin: 12px 0;
  }
}

/* ==========================
   🔷 Calculator Panels
========================== */
.calculator-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.left-panel, .right-panel {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  flex: 1;
  min-width: 300px;
  max-width: 480px;
  margin: 10px;
}

.left-panel h2 {
  margin-bottom: 20px;
  color: var(--brand-dark);
  font-size: 2rem;
  text-align: center;
}

.right-panel {
  background-color: #ffffff;
  text-align: left;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.input-group label {
  width: 160px;
  font-weight: 600;
}

.input-group input[type="number"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.slider-group {
  margin-bottom: 18px;
}

.slider-group input[type="range"] {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: var(--light-bg);
}

button {
  background-color: var(--brand-dark);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 10px;
  width: 100%;
}

button:hover {
  background-color: #172c71;
}

.right-panel h3 {
  color: var(--primary);
  margin-bottom: 16px;
}

.right-panel p {
  margin: 12px 0;
  font-size: 1rem;
}

.surplus-positive {
  color: green;
}

.surplus-negative {
  color: red;
}

.corpus-years {
  color: #1e3a8a;
  font-weight: 600;
}

/* ==========================
   🔷 Footer
========================== */
footer {
  background-color: var(--brand-dark);
  color: white;
  padding: 40px 20px;
  text-align: center;
    border-radius: 20px 20px 0 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-follow,
.footer-links {
  width: 45%;
}

.social-icon .x-icon {
  fill: white;
  width: 15px;
  height: 15px;
  transition: fill 0.3s ease;
  margin-right: 8px;
}

.social-icon:hover .x-icon {
  fill: #FF4500;
}

.social-icon:hover {
  outline: none;
  color: #FF4500;
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  margin-bottom: 10px;
}

ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

ul li a:hover {
  color: var(--primary);
}

.footer-disclaimer,
.footer-copyright {
  font-size: 14px;
  margin-top: 10px;
}