/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background-color: #000000;
  color: #FFFFFF;
}

/* Site Header Styles */
.site-header {
  background-color: #000000;
  padding: 12px 0;
  border-bottom: 1px solid #1a1a1a;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  text-transform: uppercase;
  text-decoration: none; /* This is fine, but does not affect links inside h1 */
}

/* Make sure any <a> tag inside .logo (like wrapping MAK Tools) looks right */
.logo a {
  color: #FFD700;
  text-decoration: none;
}

/* Prevent link color from changing when visited or hovered */
.logo a:visited,
.logo a:active,
.logo a:hover {
  color: #FFD700;
  text-decoration: none;
}

}

.header-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Handle hover, visited, and active states */
.header-button:hover,
.header-button:active,
.header-button:visited {
  color: #FFD700;
  border-color: #FFD700;
  text-decoration: none;
}


@media (max-width: 480px) {
  .logo h1 {
    font-size: 20px;
  }
  
  .header-button {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Container Styles */
.calculator-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 32px;
  margin-bottom: 8px;
  color: #FFD700;
}

.header p {
  color: #CCCCCC;
}

/* Tab Navigation */
.tabs {
  display: flex;
  border-bottom: 1px solid #444;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  background-color: #FFFFFF;
  color: #000000;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab:hover {
  opacity: 0.9;
}

.tab.active {
  background-color: #FFD700;
  color: #000000;
  position: relative;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #FFD700;
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Calculator Layout */
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .calculator-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* Input Column */
.inputs-column {
  background-color: #111111;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.inputs-column h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #FFD700;
}

/* Input Groups */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #DDDDDD;
}

/* Currency Select */
.currency-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  background-color: #FFFFFF;
  color: #000000;
  border-radius: 4px;
  font-size: 16px;
}

/* Input with Icon */
.input-with-icon {
  position: relative;
  margin-bottom: 8px;
}

.currency-symbol {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}

.percent-symbol {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}

.input-with-icon input {
  width: 100%;
  padding: 10px;
  padding-left: 30px;
  border: 1px solid #444;
  background-color: #FFFFFF;
  color: #000000;
  border-radius: 4px;
  font-size: 16px;
}

.input-with-icon.right-icon input {
  padding-left: 10px;
  padding-right: 30px;
}

input:focus {
  border-color: #FFD700;
  outline: none;
}

/* Range Sliders */
input[type="range"] {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFD700;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFD700;
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* Tenure Inputs */
.tenure-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tenure-inputs input {
  width: 80px;
  padding: 10px;
  border: 1px solid #444;
  background-color: #FFFFFF;
  color: #000000;
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
}

.tenure-toggle {
  display: flex;
  background-color: #333;
  border-radius: 4px;
  overflow: hidden;
}

.tenure-button {
  padding: 8px 16px;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 14px;
}

.tenure-button.active {
  background-color: #FFD700;
  color: #000000;
  font-weight: 600;
}

/* Results Column */
.results-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.results-card, .chart-card {
  background-color: #111111;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.results-card h3, .chart-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #FFD700;
}

/* Results Boxes */
.result-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 500px) {
  .result-boxes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.result-box {
  background-color: #222;
  padding: 16px;
  border-radius: 6px;
  text-align: center;
}

.result-label {
  font-size: 12px;
  color: #AAAAAA;
  margin-bottom: 4px;
}

.result-value {
  font-size: 20px;
  font-weight: 700;
  color: #FFD700;
}

/* Chart Styles */
.chart-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 8px;
}

.principal-color {
  background-color: #FFD700;
}

.interest-color {
  background-color: #FFFFFF;
}

.legend-text {
  font-size: 14px;
}

/* SEO Content Styles */
.seo-content {
  margin-top: 60px;
  background-color: #111111;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.seo-content h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #FFD700;
  text-align: center;
}

.content-section {
  margin-bottom: 30px;
}

.content-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #FFD700;
}

.formula {
  background-color: #222;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  margin: 15px 0;
  font-weight: 600;
  letter-spacing: 1px;
}

.loan-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .loan-types {
    grid-template-columns: repeat(3, 1fr);
  }
}

.loan-type {
  background-color: #222;
  padding: 16px;
  border-radius: 6px;
}

.loan-type h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #FFD700;
}

.faq {
  margin-top: 20px;
}

.faq-item {
  background-color: #222;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #FFD700;
}

/* Lists */
ul, ol {
  padding-left: 25px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 8px;
}