/* Smooth scrolling for in-page anchors */
html {
  scroll-behavior: smooth;
}


a {
  color: #40cfff; /* Brighter, more readable on dark backgrounds */
  text-decoration: underline;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: var(--accent-color); /* Uses your existing accent color for hover */
}

/* Dark theme color variables */
:root {
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --accent-color: #bb86fc;
  --input-bg: #1e1e1e;
  --input-border: #333;
  --button-bg: #3700b3;
  --button-hover-bg: #4d00bf;
  --button-text-color: #ffffff;
  --box-bg: #1e1e1e;
}

/* Adjust the overall body to prevent content from being hidden */
body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 10px 10px 80px; /* extra bottom padding to avoid footer overlap */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Navigation styling */
.tab-nav {
  background-color: var(--box-bg);
  width: 100%;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tab-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.tab-nav li {
  margin: 0 10px;
}

.tab-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.2em;
}

.tab-nav a:hover {
  color: var(--accent-color);
}

/* Calculator wrapper box (the whole calculator area) */
.calc-box {
  background-color: var(--box-bg);
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  max-width: 900px;
  width: 90%;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

/* On smaller screens, stack columns vertically */
@media (max-width: 800px) {
  .calc-box {
    flex-direction: column;
  }
}

/* Left column: description */
.calc-description {
  flex: 1;
  text-align: left;
}

/* Right column: form and result */
.calc-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title inside description */
.calc-description h1 {
  margin-top: 0;
}

/* Each input field container (vertical layout) */
.field-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  width: 100%;
  max-width: 300px;
}

.field-container label {
  margin-bottom: 5px;
  text-align: left;
}

.field-container input {
  width: 100%;
  padding: 10px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  color: var(--text-color);
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.field-container input:focus {
  outline: none;
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
}

/* Button bubble container */
.bubble {
  background-color: var(--box-bg);
  border-radius: 16px;
  padding: 20px;
  margin: 10px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 220px;
}

/* Button styling */
.bubble button {
  width: 100%;
  padding: 12px 20px;
  font-size: 1.2em;
  cursor: pointer;
  background-color: var(--button-bg);
  color: var(--button-text-color);
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.bubble button:hover {
  background-color: var(--button-hover-bg);
  transform: translateY(-2px);
}

/* Result box styling */
.result-box {
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* Footer / Contact Info styling with fixed positioning */
footer {
  width: 100%;
  background-color: var(--box-bg);
  color: var(--text-color);
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  border-top: 2px solid var(--accent-color);
}

/* Ensure the contact info content is centered and constrained if needed */
footer .contact-info {
  max-width: 900px;
  margin: 0 auto;
}
