$ma-accent: #4338ca;
$ma-ink: #1e293b;
$ma-ink-muted: #64748b;
$ma-border: #e2e8f0;
$ma-surface: #ffffff;
$ma-surface-muted: #f8fafc;
$ma-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

.myactivity-root {
  position: relative;
  display: inline-block;
}

.myactivity-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: inherit;

  &:hover {
    background: rgba(0, 0, 0, 0.05);
  }
}

.myactivity-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: #dc2626;
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: $ma-font;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.myactivity-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 420px;
  overflow-y: auto;
  background: $ma-surface;
  border: 1px solid $ma-border;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  z-index: 200;
  font-family: $ma-font;
  color: $ma-ink;
}

.myactivity-panel-head {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid $ma-border;
}

.myactivity-section {
  padding: 12px 16px;
  border-bottom: 1px solid $ma-border;

  &:last-child {
    border-bottom: none;
  }
}

.myactivity-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: $ma-ink-muted;
  margin-bottom: 8px;
}

.myactivity-viewall {
  font-size: 11px;
  font-weight: 600;
  color: $ma-ink-muted;
  text-transform: none;
  letter-spacing: 0;
  cursor: help;
  border-bottom: 1px dotted $ma-ink-muted;
}

.myactivity-loading,
.myactivity-empty {
  font-size: 12.5px;
  color: $ma-ink-muted;
  margin: 0;
  padding: 4px 0;
}

.myactivity-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

.myactivity-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  mat-icon {
    font-size: 17px;
    width: 17px;
    height: 17px;
  }

  &.approvals {
    background: #e0e7ff;
    color: $ma-accent;
  }

  &.mentions {
    background: #f3e8ff;
    color: #7e22ce;
  }
}

.myactivity-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.myactivity-item-title {
  font-size: 13px;
  font-weight: 600;
  color: $ma-ink;
}

.myactivity-item-sub {
  font-size: 11.5px;
  color: $ma-ink-muted;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
