/* Ajustes finos estilo Stripe/Vercel */
body { -webkit-font-smoothing: antialiased; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #4b5563;
  cursor: pointer; transition: all .12s ease;
}
.nav-item:hover { background: #f3f4f6; color: #111827; }
.nav-item.active { background: #f2f1ff; color: #635bff; font-weight: 600; }
.nav-item i { width: 18px; text-align: center; font-size: 14px; }

.card {
  background: #fff; border: 1px solid #ececec; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
}

.stat-card { padding: 20px; }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.stat-label { font-size: 13px; color: #6b7280; font-weight: 500; margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .12s ease; border: 1px solid transparent;
}
.btn-primary { background: #635bff; color: #fff; }
.btn-primary:hover { background: #5148e0; }
.btn-ghost { background: #fff; color: #374151; border-color: #e5e7eb; }
.btn-ghost:hover { background: #f9fafb; }
.btn-danger { background: #fff; color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-bom { background: #f0fdf4; color: #16a34a; }
.badge-regular { background: #fffbeb; color: #d97706; }
.badge-ruim { background: #fef2f2; color: #dc2626; }
.badge-gray { background: #f3f4f6; color: #6b7280; }

.pill-state { background:#eef2ff; color:#4f46e5; padding:2px 8px; border-radius:6px; font-size:11px; font-weight:700; }

input, select {
  width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 9px;
  font-size: 14px; background: #fff; transition: border .12s, box-shadow .12s; outline: none;
}
input:focus, select:focus { border-color: #635bff; box-shadow: 0 0 0 3px #635bff22; }
label { display:block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid #f5f5f5; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafafa; }

.bar-track { height: 8px; background:#f1f1f4; border-radius: 999px; overflow: hidden; }
.bar-seg { height: 100%; float: left; }

.skeleton { background: linear-gradient(90deg,#f0f0f0 25%,#f7f7f7 50%,#f0f0f0 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.toast { background:#0f172a; color:#fff; padding:12px 18px; border-radius:10px; font-size:14px; box-shadow:0 8px 24px rgba(0,0,0,.18); animation: slideIn .25s ease; }
.toast.err { background:#dc2626; }
.toast.ok { background:#16a34a; }
@keyframes slideIn { from{transform:translateX(20px);opacity:0} to{transform:translateX(0);opacity:1} }

.modal-overlay { position:fixed; inset:0; background:rgba(15,23,42,.4); z-index:55; display:flex; align-items:center; justify-content:center; padding:16px; animation: fade .15s ease; }
.modal { background:#fff; border-radius:16px; width:100%; max-width:460px; max-height:90vh; overflow-y:auto; animation: pop .18s ease; }
.modal-lg { max-width:640px; }
@keyframes fade { from{opacity:0} to{opacity:1} }
@keyframes pop { from{transform:scale(.96);opacity:0} to{transform:scale(1);opacity:1} }
