/* Container dos ícones */
.icon-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

/* Ícone do sino */
.notification {
  position: relative;
  width: 35px;
  height: 37px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.notification svg {
  width: 100%;
  height: 100%;
  display: block;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background-color: #E74C3C;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
  display: none;
}

/* DROPDOWN NOTIFICAÇÃO */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-width: 320px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transform-origin: top right;
  display: none;
  z-index: 10000;
  border: 1px solid rgba(0,0,0,0.04);
}

.notification .notification-dropdown[aria-hidden="false"],
.notification.is-open .notification-dropdown {
  display: block !important;
}

.notification-dropdown .dropdown-arrow {
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  border-left: 1px solid rgba(0,0,0,0.03);
  border-top: 1px solid rgba(0,0,0,0.03);
  border-radius: 2px;
}

.notification-dropdown .dropdown-content {
  padding: 14px !important;
}

.notification-dropdown .empty {
  margin: 0;
  padding: 8px 6px !important;
  color: #6b6b6b;
  font-size: 14px;
  text-align: center;
}

/* ÍCONE AVATAR */
.avatar {
  position: relative;
  width: 37px;
  height: 37px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* DROPDOWN AVATAR */
.avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-width: 280px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transform-origin: top right;
  display: none;
  z-index: 10000;
  border: 1px solid rgba(0,0,0,0.04);
}

.avatar .avatar-dropdown[aria-hidden="false"],
.avatar.is-open .avatar-dropdown {
  display: block !important;
}

.avatar-dropdown .dropdown-arrow {
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  border-left: 1px solid rgba(0,0,0,0.03);
  border-top: 1px solid rgba(0,0,0,0.03);
  border-radius: 2px;
}

.avatar-dropdown .dropdown-content {
  padding: 16px !important;
}

.user-info {
  margin-bottom: 12px;
}

.user-name {
  display: block;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-bottom: 4px;
}

.user-email {
  display: block;
  color: #666;
  font-size: 12px;
}

.dropdown-divider {
  height: 1px;
  background-color: #e1e5e9;
  margin: 12px 0;
}

.logout-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px !important;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #d32f2f;
  transition: background-color 0.2s ease;
  text-align: left;
}

.logout-button:hover {
  background-color: #ffebee;
}

.logout-button:focus {
  outline: 2px solid #d32f2f;
  outline-offset: 2px;
}

.logout-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* FOCO VISÍVEL (ACESSIBILIDADE) */
.notification:focus,
.avatar:focus {
  box-shadow: 0 0 0 3px rgba(50,115,220,0.12);
  border-radius: 6px;
}

/* RESPONSIVIDADE */
@media (max-width: 420px) {
  .notification-dropdown,
  .avatar-dropdown {
    right: -8px;
    min-width: 200px;
  }

  .icon-container {
    gap: 15px;
  }
}
