/* NetToNest global styles
   - Colors / fonts come from Tailwind config (see tailwind.config script in HTML)
   - This file focuses on component styles and fine-tuning
*/

body {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Panels and cards */

.panel {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
    rgba(11, 16, 32, 0.98);
  border-radius: 1.25rem; /* rounded-card */
  border: 1px solid rgba(249, 250, 251, 0.06); /* border-white/5 equivalent */
  padding: 1.25rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85); /* shadow-card */
}

@media (min-width: 768px) {
  .panel {
    padding: 1.5rem 1.75rem;
  }
}

.results-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(249, 250, 251, 0.06);
  background-color: rgba(11, 16, 32, 0.98);
  padding: 0.95rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-subtitle {
  font-size: 0.8rem;
  color: rgb(156, 163, 175); /* textMuted */
}

/* Inputs & buttons */

.input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background-color: rgba(11, 16, 32, 0.98);
  color: rgb(249, 250, 251); /* textMain */
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease,
    transform 0.06s ease;
}

.input::placeholder {
  color: rgb(156, 163, 175); /* textMuted */
}

.input:focus {
  outline: none;
  border-color: #3b82f6; /* primary */
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45);
  background-color: rgba(11, 16, 32, 1);
  transform: translateY(-0.5px);
}

.btn-primary {
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  background: linear-gradient(135deg, #3b82f6, #22c55e);
  color: #050816; /* background */
  border: none;
  box-shadow: 0 14px 35px rgba(59, 130, 246, 0.55);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.1s ease;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(59, 130, 246, 0.7);
}

.btn-primary:active {
  transform: translateY(0.5px);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(249, 250, 251, 0.08);
  background: linear-gradient(135deg, rgba(11, 16, 32, 0.95), rgba(11, 16, 32, 0.99));
  color: rgb(249, 250, 251);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease,
    transform 0.06s ease;
}

.btn-secondary:hover {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.8);
}

.btn-secondary:active {
  transform: translateY(0.5px);
}

/* Range slider for savings capacity */

.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.45), rgba(34, 197, 94, 0.8));
  outline: none;
  cursor: pointer;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #f9fafb;
  box-shadow: 0 0 0 2px rgba(5, 8, 22, 0.9);
  border: 2px solid rgba(59, 130, 246, 0.95);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.range-input::-moz-range-thumb {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #f9fafb;
  box-shadow: 0 0 0 2px rgba(5, 8, 22, 0.9);
  border: 2px solid rgba(59, 130, 246, 0.95);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.range-input:hover::-webkit-slider-thumb,
.range-input:hover::-moz-range-thumb {
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35);
}

/* Nav & footer */

.nav-link {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #9ca3af; /* textMuted */
  font-weight: 500;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.12s ease, color 0.12s ease, background-color 0.12s ease;
}

.nav-link:hover {
  color: #f9fafb;
  border-color: rgba(249, 250, 251, 0.18);
}

.nav-link-active {
  border-color: rgba(59, 130, 246, 0.9);
  color: #f9fafb;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.35), transparent 55%);
}

.footer {
  border-top: 1px solid rgba(249, 250, 251, 0.05);
  background-color: rgba(5, 8, 22, 0.98);
  font-size: 11px;
  color: #9ca3af;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Labels & links */

.label-sm {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.label-xs {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
  color: #9ca3af;
}

.link-inline {
  color: #3b82f6;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.link-inline:hover {
  text-decoration-style: solid;
}

/* Investment mode tabs */

.invest-mode-tab {
  padding: 0.4rem 0.75rem;
  border-right: 1px solid rgba(31, 41, 55, 0.8);
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.75rem;
  background: radial-gradient(circle at top, rgba(11, 16, 32, 0.98), rgba(11, 16, 32, 1));
  transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.invest-mode-tab:last-child {
  border-right: none;
}

.invest-mode-tab.tab-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(34, 197, 94, 0.9));
  color: #050816;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

/* Preset helper buttons (if re-used later) */

.preset-btn {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.12);
  background-color: rgba(11, 16, 32, 0.98);
  color: #9ca3af;
  font-size: 0.7rem;
}

.preset-btn:hover {
  border-color: rgba(59, 130, 246, 0.85);
  color: #f9fafb;
}
