* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Roboto", sans-serif;
}

.ci-calculator {
  background: #16213e;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 650px;
  color: #e0e0e0;
}

h1 {
  text-align: center;
  font-size: 2rem;
  color: #00d4ff;
  margin-bottom: 2rem;
  font-weight: 500;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #e0e0e0;
  font-weight: 500;
}

input[type="number"] {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #2e3951;
  border-radius: 6px;
  background: #0f1626;
  color: #fff;
  transition: all 0.3s ease;
}

input[type="number"]:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
  outline: none;
}

.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

button {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

#calculate {
  background: #00d4ff;
  color: #16213e;
}

#calculate:hover {
  background: #00b8d9;
  transform: translateY(-2px);
}

#clear {
  background: #e94560;
  color: #fff;
}

#clear:hover {
  background: #d32f49;
  transform: translateY(-2px);
}

.results {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #0f1626;
  border-radius: 6px;
  line-height: 1.8;
  border: 1px solid #2e3951;
}

.results span {
  color: #00d4ff;
  font-weight: 600;
}

.error-bar-container {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #0f1626;
  border-radius: 6px;
  border: 1px solid #2e3951;
}

.error-bar-label {
  color: #e0e0e0;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.error-bar-wrapper {
  background: #2e3951;
  height: 20px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}

.error-bar {
  height: 100%;
  background: #00d4ff;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.error-bar-markers {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.error-bar-markers::before,
.error-bar-markers::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 150%;
  background: #e94560;
  top: 50%;
  transform: translateY(-50%);
}

.error-message {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #e94560;
  color: #fff;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}
.navbar {
  background-color: #000;
  width: calc(100% - 2rem); /* w-96 equivalent */
  color: #fff;
  margin: 1rem; /* m-4 equivalent */
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
  border-radius: 7px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ddd;
}

.nav-link.active {
  color: #379f51; /* Gold color for active link */
  font-weight: bold;
}

/* Optional: Style for your calculator cards if you want to keep them consistent */
.calculator-selection {
  margin: 1rem;
}
