/* ==========================
   🔷 CSS Variables
========================== */
:root {
  --primary: #f97316;
  --secondary: #f43f5e;
  --text-dark: #1e293b;
  --brand-dark: #1e3a8a;
  --light-bg: #f1f5f9;
  --story-bg: #ffedd5;
  --story-section-bg: #fff7ed;
}

/* ==========================
   🔷 Base Reset
========================== */
* {
  box-sizing: border-box;
}

a:focus,
a:active,
button:focus,
button:active,
input:focus,
input:active {
  outline: none !important;
  box-shadow: none !important;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #333;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3 {
  margin: 0;
}

/* ==========================
   🔷 Container
========================== */
.container {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================
   🔷 Header & Navbar
========================== */
.header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 10px 0;
  border-radius: 0 0 20px 20px;
}

.logo {
  font-size: 25px;
  font-weight: bold;
}

.navbar .logo a {
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffeb3b;
}

.nav-links .btn-primary,
.nav-links .btn-secondary {
  margin-left: 12px;
}

.hamburger {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* ==========================
   🔷 Buttons
========================== */
.btn-primary {
  background-color: var(--brand-dark);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
    margin-left: 40px;
  margin-right: 20px;
}

.btn-secondary {
  background-color: white;
  color: var(--brand-dark);
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-left: 40px;
  margin-right: 20px;
}

/* ==========================
   🔷 EMI Calculator Panels
========================== */
.calculator-page {
  display: flex;
  justify-content: space-around;
  padding: 40px 20px;
  flex-wrap: wrap;
}

.left-panel,
.right-panel {
  flex: 1;
  min-width: 300px;
  max-width: 480px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.left-panel {
  background-color: #f9f9f9;
  padding: 1.5rem;
}

.right-panel {
  background-color: #fff;
  padding: 25px;
  text-align: center;
}

/* ==========================
   🔷 Input Group
========================== */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

.input-group-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.left-panel label {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0;
  color: #333;
}

.left-panel input[type="number"],
.left-panel input[type="range"] {
  width: 100%;
  padding: 0.6rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

.left-panel input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #f1f5f9;
  height: 8px;
  border-radius: 4px;
}

.left-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.left-panel input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.left-panel button {
  background-color: var(--brand-dark);
  color: white;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

/* ==========================
   🔷 Chart Section
========================== */
.chart-container {
  width: 90%;
  margin: auto;
}

/* ==========================
   🔷 EMI Table Styling
========================== */
.emi-table-container {
  max-height: 400px;
  overflow-y: auto;
  width: 100%;
  margin: 0 auto;
}

.emi-table {
  width: 80%;
  margin: 20px auto;
  border-collapse: collapse;
  background-color: #fff;
}

.emi-table th {
  background-color: var(--brand-dark);
  color: #fff;
  padding: 12px;
  text-align: center;
}

.emi-table td {
  padding: 12px;
  text-align: center;
  border: 1px solid #ddd;
}

.emi-table tr:nth-child(odd) {
  background-color: #f2f2f2;
}

.emi-table tr:nth-child(even) {
  background-color: #fff;
}

/* ==========================
   🔷 Footer
========================== */
footer {
  background-color: var(--brand-dark);
  color: white;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  border-radius: 20px 20px 0 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-follow,
.footer-links {
  width: 45%;
}

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;
}

/* ==========================
   🔷 Responsive Styles
========================== */
@media (max-width: 768px) {
  .container.navbar {
    padding: 20px 20px;
  }

  .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: 20px 0;
  }



  .hamburger {
    display: block;
  }

  .calculator-page {
    flex-direction: column;
    padding: 1rem;
  }

  .left-panel,
  .right-panel {
    padding: 1rem;
    width: 1000%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .emi-title {
    font-size: 2rem;
  }

  .input-group label,
  .left-panel input,
  .left-panel button,
  .results p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .emi-title {
    font-size: 1.8rem;
  }

  .left-panel input,
  .left-panel button,
  .results p {
    font-size: 0.8rem;
  }

  .left-panel button {
    padding: 0.5rem;
    min-height: 40px;
  }

  .result-heading {
    font-size: 1.1rem;
  }
}


