@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --header-bg: #1a1a2e;
  --header-overlay: rgba(0, 0, 0, 0.52);
  --accent: #1f6f78;
  --accent-dark: #0b3a42;
}

.site-header {
  background:
    linear-gradient(var(--header-overlay), var(--header-overlay)),
    var(--header-bg) center / cover no-repeat;
  position: relative;
}

.site-header .top-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 55px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header .logo {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header .tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  flex: 1;
  letter-spacing: 0.3px;
}

.site-header nav {
  background: #0b3a42;
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.site-header nav ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
}

.site-header nav a {
  font-family: 'Poppins', sans-serif;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  padding: 11px 15px 9px;   /* 2px a menos no bottom para compensar o border */
  display: block;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.site-header nav a:hover {
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.05);
}

.site-header nav a.active {
  color: #fff;
  font-weight: 700;
  border-bottom-color: #fff;
}


.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 4px 14px 4px 4px;
  cursor: default;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}

.user-chip:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f8c6e 0%, #1f6f78 50%, #2471a3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.user-chip-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-family: 'Poppins', sans-serif;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  letter-spacing: 0.2px;
}

.btn-logout:hover {
  background: rgba(231,76,60,0.18);
  color: #ff8a80;
  border-color: rgba(231,76,60,0.35);
}

@media (max-width: 700px) {
  .site-header .top-bar {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 8px;
  }
  .site-header .tagline { display: none; }
  .site-header nav ul  { padding: 0 12px; }
  .user-chip-name { max-width: 80px; }
}
/* ══════════════════════════════════════════
   NOTIFICAÇÕES (SINO E DROPDOWN)
   ══════════════════════════════════════════ */
.notif-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-btn {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.notif-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #1a1a2e; /* Mesma cor base do header */
}

.notif-badge.hidden {
  display: none;
}

/* O Segredo do Menu Flutuante */
.notif-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.notif-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notif-header {
  background: #0b3a42;
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
}

.notif-list {
  max-height: 320px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f4f5;
  transition: background 0.15s;
}

.notif-item:hover {
  background: #f8fafa;
}

.notif-icon, .notif-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1f6f78, #1a8c6e);
  flex-shrink: 0;
}

.notif-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-text {
  font-size: 13px;
  line-height: 1.4;
  color: #444;
}

.notif-sub {
  font-size: 11px;
  color: #1f6f78;
  font-weight: 600;
}

.notif-loading, .notif-empty {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: #888;
}