/* Topbar global compartilhada entre Bootcamp e Workplace */

:root {
  --topbar-accent: #14b8a6;
  --topbar-accent-dark: #0f9488;
  --topbar-text: #1f2937;
  --topbar-muted: #6b7280;
  --topbar-border: #e5e7eb;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--topbar-border);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 500;
}

.topbar-inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--topbar-text);
}

.topbar-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--topbar-accent), #0d9488);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -1px;
}

.topbar-title {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-nav {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 100%;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  text-decoration: none;
  color: var(--topbar-muted);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: color 0.15s;
}

.topbar-link:hover {
  color: var(--topbar-text);
}

.topbar-link--active {
  color: var(--topbar-accent-dark);
  border-bottom-color: var(--topbar-accent);
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-bell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--topbar-muted);
  cursor: default;
}

.topbar-bell svg {
  width: 20px;
  height: 20px;
}

.topbar-bell::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--topbar-accent);
  border: 1.5px solid #ffffff;
}

.topbar-avatar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.topbar-avatar__circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6f7f5;
  color: var(--topbar-accent-dark);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-avatar__chevron {
  color: var(--topbar-muted);
  font-size: 11px;
}

.topbar-sair {
  border: 1px solid var(--topbar-border);
  background: #ffffff;
  color: var(--topbar-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.topbar-sair:hover {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

.topbar-link.hidden {
  display: none;
}

@media (max-width: 640px) {
  .topbar-inner {
    gap: 16px;
    padding: 0 14px;
  }

  .topbar-title {
    display: none;
  }
}
