body {
  background-color: #13121b;
  color: #e4e1ee;
  scroll-behavior: smooth;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-card {
  background: rgba(31, 31, 40, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(70, 69, 85, 0.5);
}

.hero-gradient {
  background: radial-gradient(circle at 50% 50%, rgba(135, 129, 255, 0.15) 0%, rgba(19, 18, 27, 0) 70%);
}

.toolpath-line {
  background: linear-gradient(90deg, transparent, #8781ff, transparent);
  height: 1px;
  width: 100%;
}

.store-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.3);
}

.store-btn-download {
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.store-btn-download:hover {
  border-color: rgba(196, 192, 255, 0.7) !important;
  box-shadow: 0 0 24px rgba(135, 129, 255, 0.2);
  transform: translateY(-1px);
}

.step-connector {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background: linear-gradient(180deg, #8781ff 0%, rgba(135, 129, 255, 0.08) 100%);
  margin-left: calc(1.75rem - 1px);
}

.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }

#mobile-nav {
  display: none;
}

#mobile-nav.open {
  display: flex;
}

/* ── Form styles ── */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #c7c4d8;
  font-family: 'Inter', sans-serif;
}

/* !important garante precedência sobre o reset do plugin Tailwind forms */
.form-input {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  background-color: #2a2933 !important;
  border: 1px solid rgba(196, 192, 255, 0.25) !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c4c0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  padding-right: 2.5rem !important;
  cursor: pointer;
}

.form-input:focus {
  outline: none !important;
  border-color: #c4c0ff !important;
  box-shadow: 0 0 0 3px rgba(196, 192, 255, 0.2) !important;
}

.form-input::placeholder {
  color: rgba(199, 196, 216, 0.35) !important;
}

.form-input option,
.form-input optgroup {
  background-color: #1b1b24;
  color: #e4e1ee;
}

/* ── City autocomplete suggestions ── */
#city-suggestions {
  background-color: #2a2933;
  border-color: rgba(196, 192, 255, 0.25);
}

.city-suggestion-item {
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: #e4e1ee;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.city-suggestion-item:hover,
.city-suggestion-item[aria-selected="true"] {
  background: rgba(196, 192, 255, 0.1);
}

/* ── CONHEÇA SEU ARQUIVO PAGE ──────────────────────── */

code {
  background: rgba(196, 192, 255, 0.12);
  color: #c4c0ff;
  padding: 0.1em 0.45em;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'Courier New', monospace;
}

.drop-zone {
  width: 100%;
  max-width: 580px;
  margin-top: 0.25rem;
  padding: 2.75rem 2rem;
  border: 2px dashed rgba(196, 192, 255, 0.2);
  border-radius: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  text-align: center;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: rgba(196, 192, 255, 0.55);
  background: rgba(135, 129, 255, 0.07);
}

.drop-zone.dragging { transform: scale(1.01); }

.drop-icon {
  font-size: 40px;
  color: #8781ff;
  display: block;
  margin: 0 auto 0.85rem;
}

.drop-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #e4e1ee;
  margin-bottom: 0.35rem;
}

.drop-sub {
  font-size: 13px;
  color: #918fa1;
  margin-bottom: 0.65rem;
}

.drop-link {
  background: none;
  border: none;
  color: #c4c0ff;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
  padding: 0;
}

.drop-hint {
  font-size: 11px;
  color: #35343e;
  letter-spacing: 0.01em;
}

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #464555;
  margin-bottom: -0.75rem;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  color: #918fa1;
  background: rgba(41, 40, 51, 0.8);
  border: 1px solid rgba(70, 69, 85, 0.5);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  align-self: flex-start;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.875rem;
}

.summary-card {
  background: rgba(31, 31, 40, 0.7);
  border: 1px solid rgba(70, 69, 85, 0.5);
  border-radius: 0.875rem;
  padding: 1.25rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s;
}

.summary-card:hover { border-color: rgba(196, 192, 255, 0.2); }

.s-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #918fa1;
}

.s-label .material-symbols-outlined { font-size: 15px; color: #8781ff; }

.s-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: #e4e1ee;
  line-height: 1.2;
}

.s-sub { font-size: 11px; color: #464555; }

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #e4e1ee;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.section-title .material-symbols-outlined { font-size: 20px; color: #8781ff; }

.warn-title { color: #ffb4ab !important; }
.warn-title .material-symbols-outlined { color: #ffb4ab !important; }

.filament-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.filament-card {
  background: rgba(31, 31, 40, 0.7);
  border: 1px solid rgba(70, 69, 85, 0.5);
  border-radius: 0.875rem;
  padding: 1.125rem 1.375rem;
  display: flex;
  align-items: center;
  gap: 1.125rem;
  transition: border-color 0.2s, background 0.2s;
}

.filament-card:hover {
  border-color: rgba(196, 192, 255, 0.18);
  background: rgba(31, 31, 40, 0.9);
}

.filament-card.unused { opacity: 0.4; filter: grayscale(0.45); }

.fil-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.1);
}

.fil-body { flex: 1; min-width: 0; }

.fil-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.fil-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8781ff;
  background: rgba(135, 129, 255, 0.14);
  padding: 0.1em 0.55em;
  border-radius: 999px;
}

.fil-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #e4e1ee;
}

.fil-hex { font-size: 11px; color: #464555; font-family: 'Courier New', monospace; }

.fil-type {
  font-size: 11px;
  font-weight: 600;
  color: #c4c0ff;
  background: rgba(196, 192, 255, 0.1);
  padding: 0.1em 0.55em;
  border-radius: 4px;
}

.fil-meta {
  font-size: 12px;
  color: #464555;
  margin-bottom: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fil-bar-wrap { display: flex; align-items: center; gap: 0.75rem; }

.fil-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(70, 69, 85, 0.55);
  border-radius: 999px;
  overflow: hidden;
}

.fil-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8781ff, #c4c0ff);
  min-width: 3px;
}

.fil-usage {
  font-size: 12px;
  color: #918fa1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fil-unused-label { font-size: 11px; color: #35343e; font-style: italic; margin-top: 0.15rem; }

.chart-card { padding: 1.75rem 1.5rem; }

#donutChart { max-height: 280px; }

.warnings-list {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.warning-item {
  font-size: 13px;
  color: #ffb4ab;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.warning-item::before { content: "•"; flex-shrink: 0; margin-top: 1px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid rgba(196, 192, 255, 0.28);
  color: #c4c0ff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}

.btn-secondary:hover {
  background: rgba(196, 192, 255, 0.08);
  border-color: rgba(196, 192, 255, 0.5);
}

.btn-secondary .material-symbols-outlined { font-size: 17px; }

.upload-again { text-align: center; padding-top: 0.5rem; }
