/* ===== RESET E BASE ===== */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f9fafb;
  color: #111827;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ===== NAVBAR VIDRO+GRADIENTE ===== */
.nav-glass {
  background: linear-gradient(90deg, rgba(15,23,42,.9), rgba(16,185,129,.08), rgba(14,165,233,.08));
  backdrop-filter: saturate(140%) blur(6px);
  box-shadow: 0 6px 18px rgba(2,6,23,.12);
}
.nav-glass .navbar-brand { font-weight: 700; letter-spacing: .2px; }
.nav-glass .btn { margin-left: .25rem; }

/* ===== SIDEBAR ===== */
.sidebar { background:#0f172a !important; color:#cbd5e1; }
.sidebar .nav-link {
  display:flex; align-items:center; gap:.55rem;
  color:#cbd5e1; border-radius:12px; margin:.25rem .4rem; padding:.55rem .7rem;
  position:relative; overflow:hidden;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.sidebar .nav-link .bi { font-size:1.05rem; opacity:.95; transition: transform .15s ease; }
.sidebar .nav-link span { flex:1; }

.sidebar .nav-link:after {
  content:""; position:absolute; left:50%; top:50%;
  width:0; height:0; background:rgba(255,255,255,.15);
  transform:translate(-50%,-50%); border-radius:50%;
  transition: width .45s ease, height .45s ease, opacity .6s;
  opacity:0; pointer-events:none;
}
.sidebar .nav-link:active:after { width:260px; height:260px; opacity:1; }

.sidebar .nav-link:hover {
  background: rgba(255,255,255,.06);
  transform: translateX(2px);
}
.sidebar .nav-link:hover .bi { transform: translateX(2px) scale(1.03); }

.sidebar .nav-link.active {
  color:#fff;
  background: linear-gradient(90deg, rgba(109,40,217,.35), rgba(14,165,233,.35));
  box-shadow: 0 6px 18px rgba(14,165,233,.18), inset 0 0 0 1px rgba(255,255,255,.10);
}
.sidebar .nav-link.active::before {
  content:""; position:absolute; left:-6px; top:50%; transform:translateY(-50%);
  width:6px; height:60%; border-radius:8px;
  background: linear-gradient(180deg, #6d28d9, #0ea5e9);
  box-shadow: 0 0 16px rgba(14,165,233,.45);
}

/* ===== BOTÕES ===== */
.btn-gradient {
  background: linear-gradient(90deg,#6d28d9,#0ea5e9);
  border:none; color:#fff;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14,165,233,.35);
}

.btn-soft-primary {
  background: rgba(14,165,233,.12); color:#0ea5e9; border:1px solid rgba(14,165,233,.3);
}
.btn-soft-primary:hover { background: rgba(14,165,233,.2); }

.btn-soft-secondary {
  background: rgba(107,114,128,.12); color:#374151; border:1px solid rgba(107,114,128,.3);
}
.btn-soft-secondary:hover { background: rgba(107,114,128,.2); }

.btn-soft-danger {
  background: rgba(239,68,68,.12); color:#dc2626; border:1px solid rgba(239,68,68,.3);
}
.btn-soft-danger:hover { background: rgba(239,68,68,.2); }

.btn-elevate { border-radius: .65rem; font-weight: 500; }

/* ===== BADGES ===== */
.badge-soft {
  background: rgba(107,114,128,.12);
  color:#374151;
  border:1px solid rgba(107,114,128,.25);
  border-radius: 999px;
  padding:.35em .75em;
  font-weight:500;
}

/* ===== CARDS ===== */
.card-hover {
  transition: transform .2s ease, box-shadow .25s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15,23,42,.12);
}

/* ===== TITULOS ===== */
.brand-gradient {
  background: linear-gradient(90deg,#6d28d9,#0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* ===== TABLES ===== */
.table-modern thead th {
  color:#475569; font-weight:600; font-size:.9rem;
  border-bottom:2px solid #e2e8f0;
}
.table-modern tbody td { font-size:.92rem; }
.table-modern tbody tr:hover { background:#f8fafc; }

/* ===== DROPDOWN ===== */
.dropdown-menu {
  border-radius: .75rem;
  border:1px solid rgba(0,0,0,.08);
}
.dropdown-item { border-radius:.5rem; }
.dropdown-item:hover { background:rgba(14,165,233,.1); }

/* ===== DASHBOARD TILES (opcional) ===== */
.menu-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap:12px;
}
.menu-tile{
  background:#0f172a; color:#e2e8f0; border-radius:16px;
  padding:16px; text-decoration:none; display:flex; align-items:center; gap:12px;
  border:1px solid rgba(255,255,255,.06);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.menu-tile .bi{
  font-size:1.35rem; padding:10px; border-radius:12px;
  background: linear-gradient(135deg, rgba(109,40,217,.25), rgba(14,165,233,.25));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.menu-tile strong{ color:#fff; font-size:.98rem; }
.menu-tile small{ color:#94a3b8; display:block; margin-top:2px; }
.menu-tile:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(15,23,42,1), rgba(14,165,233,.05));
  box-shadow: 0 12px 24px rgba(2,6,23,.25);
}

/* === Correção de cor do nome do usuário no topo === */
.nav-glass .nav-link .lh-sm strong {
  color: #4F50DE !important;  /* azul solicitado */
}

/* (opcional) deixa o subtítulo (perfil) com bom contraste */
.nav-glass .nav-link .lh-sm span {
  color: rgba(255,255,255,.8);
}

