* { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.fade-in { animation: fadeIn .25s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.spinner {
  border: 3px solid rgba(0,0,0,.08);
  border-top-color: #1ec263;
  border-radius: 50%;
  width: 22px; height: 22px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tab-active {
  color: #117d42;
  border-bottom: 3px solid #1ec263;
  font-weight: 700;
}

.field-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: white;
}
.field-input:focus { border-color: #1ec263; box-shadow: 0 0 0 3px rgba(30,194,99,.15); }

.btn-primary {
  background: linear-gradient(135deg, #1ec263, #129e4f);
  color: white;
  font-weight: 600;
  border-radius: 0.65rem;
  padding: 0.6rem 1.1rem;
  transition: transform .1s, box-shadow .15s, opacity .15s;
  box-shadow: 0 2px 8px rgba(18,158,79,.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(18,158,79,.35); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: white;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 600;
  border-radius: 0.65rem;
  padding: 0.6rem 1.1rem;
  transition: all .15s;
}
.btn-secondary:hover { border-color: #94a3b8; background: #f8fafc; }

.btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-weight: 600;
  border-radius: 0.65rem;
  padding: 0.5rem 0.9rem;
  transition: all .15s;
}
.btn-danger:hover { background: #fee2e2; }

.card {
  background: white;
  border: 1px solid #eef1f4;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .01em;
}
