/* ==========================================================================
   PADRONIZAÇÃO GLOBAL DA TOPBAR E AVATAR
   ========================================================================== */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  /* border-bottom: 1px solid #cbd5e1; */
  border: 1px solid #000000;
  min-height: 70px;
  width: 100%;
  box-sizing: border-box;
}

.topbar-title h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
}

.breadcrumb {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Trava a foto do usuário para não estourar a tela */
.user-avatar-img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #004b84 !important;
  flex-shrink: 0 !important;
}

/* Avatar com inicial do nome (caso não tenha foto) */
.user-avatar {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background-color: #004b84 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 1.3rem !important;
  flex-shrink: 0 !important;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info strong {
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.2;
}

.user-info small {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-logout {
  color: #dc2626;
  font-size: 1.2rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.btn-logout:hover {
  transform: scale(1.1);
}